LayerContent
A ZIP archive that contains the contents of an Lambda layer.
Syntax
To declare this entity in your AWS Serverless Application Model (AWS SAM) template, use the following syntax.
Properties
-
Bucket -
The Amazon S3 bucket of the layer archive.
Type: String
Required: Yes
CloudFormation compatibility: This property is passed directly to the
S3Bucketproperty of theAWS::Lambda::LayerVersionContentdata type. -
Key -
The Amazon S3 key of the layer archive.
Type: String
Required: Yes
CloudFormation compatibility: This property is passed directly to the
S3Keyproperty of theAWS::Lambda::LayerVersionContentdata type. -
Version -
For versioned objects, the version of the layer archive object to use.
Type: String
Required: No
CloudFormation compatibility: This property is passed directly to the
S3ObjectVersionproperty of theAWS::Lambda::LayerVersionContentdata type.
Examples
LayerContent
Layer Content example
YAML
LayerContent: Bucket: amzn-s3-demo-bucket-name Key: mykey-name Version: 121212