Skip to content
v2.274.0

CodeConfig Struct ​

Configuration of the code class.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_synthetics as synthetics } from 'aws-cdk-lib';
const codeConfig: synthetics.CodeConfig = {
  inlineCode: 'inlineCode',
  s3Location: {
    bucketName: 'bucketName',
    objectKey: 'objectKey',

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

Properties ​

inlineCodeoptionalstringinline_codeoptionalstrinlineCodeoptionalStringInlineCodeoptionalstringInlineCodeoptional*string= none#
Inline code (mutually exclusive with `s3Location`).
s3LocationoptionalLocations3_locationoptionalLocations3LocationoptionalLocationS3LocationoptionalLocationS3LocationoptionalLocation= none#
The location of the code in S3 (mutually exclusive with `inlineCode`).