AWS::Lambda::LayerVersion Content - AWS CloudFormation

AWS::Lambda::LayerVersion Content

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

Syntax

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

JSON

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

YAML

S3Bucket: String S3Key: String S3ObjectVersion: String

Properties

S3Bucket

The Amazon S3 bucket of the layer archive.

Required: Yes

Type: String

Minimum: 3

Maximum: 63

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

Update requires: Replacement

S3Key

The Amazon S3 key of the layer archive.

Required: Yes

Type: String

Minimum: 1

Maximum: 1024

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": "my-bucket-us-west-2-123456789012", "S3Key": "layer.zip" }

YAML

Content: S3Bucket: my-bucket-us-west-2-123456789012 S3Key: layer.zip