AWS::Lambda::LayerVersion Content - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::Lambda::LayerVersion Content

A ZIP archive that contains the contents of an Lambda layer.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "S3Bucket" : String, "S3Key" : String, "S3ObjectStorageMode" : String, "S3ObjectVersion" : String }

YAML

S3Bucket: String S3Key: String S3ObjectStorageMode: String S3ObjectVersion: String

Properties

S3Bucket

The Amazon S3 bucket of the layer archive.

Required: Yes

Type: String

Pattern: [0-9A-Za-z\.\-_]*(?<!\.)

Minimum: 3

Maximum: 63

Update requires: Replacement

S3Key

The Amazon S3 key of the layer archive.

Required: Yes

Type: String

Minimum: 1

Maximum: 1024

Update requires: Replacement

S3ObjectStorageMode

Specifies the storage mode for the layer archive. Use COPY to store the archive in AWS Lambda-managed storage. Use REFERENCE to read the archive directly from the Amazon S3 bucket. If omitted, the default is COPY.

Required: No

Type: String

Allowed values: COPY | REFERENCE

Update requires: Replacement

S3ObjectVersion

For versioned objects, the version of the layer archive object to use.

Required: No

Type: String

Minimum: 1

Maximum: 1024

Update requires: Replacement

Examples

Layer Content

The location of a layer archive in Amazon S3.

JSON

"Content": { "S3Bucket": "amzn-s3-demo-bucket", "S3Key": "layer.zip" }

YAML

Content: S3Bucket: amzn-s3-demo-bucket S3Key: layer.zip