Skip to content
v2.276.0

WebFunctionCodeConfig Struct Added in v2.276.0 ​

WebFunction code configuration result.

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 webFunctionCodeConfig: lambda.WebFunctionCodeConfig = {
  s3Location: {
    bucketName: 'bucketName',
    objectKey: 'objectKey',

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

Properties ​

The S3 location of the code.