Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 2.38 KB

sam-specification-resource-attributes.md

File metadata and controls

23 lines (16 loc) · 2.38 KB

Resource attributes

Resource attributes are attributes that you can add to a resource to control additional behaviors and relationships. For more information about resource attributes, see Resource Attribute Reference in the AWS CloudFormation User Guide.

AWS SAM resources support a subset of resource attributes that are supported by AWS CloudFormation resources. To see which AWS SAM resources support which resource attributes, see the following table.

Resource Type CreationPolicy DeletionPolicy DependsOn Metadata UpdatePolicy UpdateReplacePolicy
AWS::Serverless::Api
AWS::Serverless::Application
AWS::Serverless::Function *
AWS::Serverless::HttpApi
AWS::Serverless::LayerVersion **
AWS::Serverless::SimpleTable
AWS::Serverless::StateMachine

Notes:

* For more information about using the Metadata resource attribute with the AWS::Serverless::Function resource type, see Building custom runtimes.

** For more information about using the Metadata resource attribute with the AWS::Serverless::LayerVersion resource type, see Building layers.