Define resource attributes with connectors in Amazon SAM - Amazon Serverless Application Model
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Define resource attributes with connectors in Amazon SAM

Resource attributes can be defined for resources to specify additional behaviors and relationships. To learn more about resource attributes, see Resource attribute reference in the Amazon CloudFormation User Guide.

You can add resource attributes to your embedded connector by defining them on the same level as your connector properties. When your Amazon SAM template is transformed at deployment, attributes will pass through to the generated resources.

AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 ... Resources: MyFunction: Type: AWS::Serverless::Function Connectors: MyConn: DeletionPolicy: Retain DependsOn: AnotherFunction Properties: ...

For more information on using connectors, refer to Amazon SAM connector reference.