Skip to content
v2.274.0

S3ObjectProperty Struct ​

The S3 location of the function code.

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 s3ObjectProperty: lambda.CfnWebFunctionRevision.S3ObjectProperty = {
  bucket: 'bucket',
  key: 'key',

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

Properties ​

bucketstringbucketstrbucketStringBucketstringBucket*stringrequired#
The S3 bucket name.
keystringkeystrkeyStringKeystringKey*stringrequired#
The S3 object key.
versionIdstringversion_idstrversionIdStringVersionIdstringVersionId*string#
The S3 object version ID.