aws-cdk-lib.aws_lambda.CfnLayerVersion.ContentProperty

interface ContentProperty

LanguageType name
.NETAmazon.CDK.AWS.Lambda.CfnLayerVersion.ContentProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslambda#CfnLayerVersion_ContentProperty
Javasoftware.amazon.awscdk.services.lambda.CfnLayerVersion.ContentProperty
Pythonaws_cdk.aws_lambda.CfnLayerVersion.ContentProperty
TypeScript aws-cdk-lib » aws_lambda » CfnLayerVersion » ContentProperty

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

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const contentProperty: lambda.CfnLayerVersion.ContentProperty = {
  s3Bucket: 's3Bucket',
  s3Key: 's3Key',

  // the properties below are optional
  s3ObjectVersion: 's3ObjectVersion',
};

Properties

NameTypeDescription
s3BucketstringThe Amazon S3 bucket of the layer archive.
s3KeystringThe Amazon S3 key of the layer archive.
s3ObjectVersion?stringFor versioned objects, the version of the layer archive object to use.

s3Bucket

Type: string

The Amazon S3 bucket of the layer archive.


s3Key

Type: string

The Amazon S3 key of the layer archive.


s3ObjectVersion?

Type: string (optional)

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