Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 2.43 KB

sam-property-layerversion-layercontent.md

File metadata and controls

50 lines (36 loc) · 2.43 KB

LayerContent

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

Syntax

To declare this entity in your AWS Serverless Application Model (AWS SAM) template, use the following syntax.

YAML

  [Bucket](#sam-layerversion-layercontent-bucket): String
  [Key](#sam-layerversion-layercontent-key): String
  [Version](#sam-layerversion-layercontent-version): String

Properties

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.

Examples

LayerContent

Layer Content example

YAML

LayerContent:
  Bucket: mybucket-name
  Key: mykey-name
  Version: 121212