A ZIP archive that contains the contents of an AWS Lambda layer.
To declare this entity in your AWS Serverless Application Model (AWS SAM) template, use the following syntax.
[Bucket](#sam-layerversion-layercontent-bucket): String
[Key](#sam-layerversion-layercontent-key): String
[Version](#sam-layerversion-layercontent-version): String
Bucket
The Amazon S3 bucket of the layer archive.
Type: String
Required: Yes
AWS CloudFormation compatibility: This property is passed directly to the [S3Bucket](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-layerversion-content.html#cfn-lambda-layerversion-content-s3bucket)
property of the AWS::Lambda::LayerVersion
Content
data type.
Key
The Amazon S3 key of the layer archive.
Type: String
Required: Yes
AWS CloudFormation compatibility: This property is passed directly to the [S3Key](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-layerversion-content.html#cfn-lambda-layerversion-content-s3key)
property of the AWS::Lambda::LayerVersion
Content
data type.
Version
For versioned objects, the version of the layer archive object to use.
Type: String
Required: No
AWS CloudFormation compatibility: This property is passed directly to the [S3ObjectVersion](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-layerversion-content.html#cfn-lambda-layerversion-content-s3objectversion)
property of the AWS::Lambda::LayerVersion
Content
data type.
Layer Content example
LayerContent:
Bucket: mybucket-name
Key: mykey-name
Version: 121212