ContentProperty Struct
A ZIP archive that contains the contents of an Lambda layer .
| Source | |
|---|---|
| Type last changed |
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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_
content_property = lambda.CfnLayerVersion.ContentProperty(
s3_bucket="s3Bucket",
s3_key="s3Key",
# the properties below are optional
s3_object_storage_mode="s3ObjectStorageMode",
s3_object_version="s3ObjectVersion"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
ContentProperty contentProperty = ContentProperty.builder()
.s3Bucket("s3Bucket")
.s3Key("s3Key")
// the properties below are optional
.s3ObjectStorageMode("s3ObjectStorageMode")
.s3ObjectVersion("s3ObjectVersion")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
var contentProperty = new ContentProperty {
S3Bucket = "s3Bucket",
S3Key = "s3Key",
// the properties below are optional
S3ObjectStorageMode = "s3ObjectStorageMode",
S3ObjectVersion = "s3ObjectVersion"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
contentProperty := &ContentProperty{
S3Bucket: jsii.String("s3Bucket"),
S3Key: jsii.String("s3Key"),
// the properties below are optional
S3ObjectStorageMode: jsii.String("s3ObjectStorageMode"),
S3ObjectVersion: jsii.String("s3ObjectVersion"),
}
Properties
The Amazon S3 bucket of the layer archive.
The Amazon S3 key of the layer archive.
s3ObjectStorageModeoptionalstrings3_object_storage_modeoptionalstrs3ObjectStorageModeoptionalStringS3ObjectStorageModeoptionalstringS3ObjectStorageModeoptional*string #Specifies whether Lambda should copy the deployment package to its internal storage (COPY) or reference it directly from your S3 bucket (REFERENCE).
s3ObjectVersionoptionalstrings3_object_versionoptionalstrs3ObjectVersionoptionalStringS3ObjectVersionoptionalstringS3ObjectVersionoptional*string #For versioned objects, the version of the layer archive object to use.