ContentProperty Struct
A ZIP archive that contains the contents of an Lambda layer .
Example
ts
// 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
s3ObjectStorageMode: 's3ObjectStorageMode',
s3ObjectVersion: 's3ObjectVersion',
};
Properties
The Amazon S3 bucket of the layer archive.
The Amazon S3 key of the layer archive.
s3ObjectStorageModestrings3_object_storage_modestrs3ObjectStorageModeStringS3ObjectStorageModestringS3ObjectStorageMode*string#Specifies whether Lambda should copy the deployment package to its internal storage (COPY) or reference it directly from your S3 bucket (REFERENCE).
s3ObjectVersionstrings3_object_versionstrs3ObjectVersionStringS3ObjectVersionstringS3ObjectVersion*string#For versioned objects, the version of the layer archive object to use.