interface CodeConfig
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.Synthetics.CodeConfig | 
|  Java | software.amazon.awscdk.services.synthetics.CodeConfig | 
|  Python | aws_cdk.aws_synthetics.CodeConfig | 
|  TypeScript (source) | @aws-cdk/aws-synthetics»CodeConfig | 
Obtainable from
Asset.bind(), Code.bind(), Inline.bind(), S3.bind()
Configuration of the code class.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as synthetics from '@aws-cdk/aws-synthetics';
const codeConfig: synthetics.CodeConfig = {
  inlineCode: 'inlineCode',
  s3Location: {
    bucketName: 'bucketName',
    objectKey: 'objectKey',
    // the properties below are optional
    objectVersion: 'objectVersion',
  },
};
Properties
| Name | Type | Description | 
|---|---|---|
| inline | string | Inline code (mutually exclusive with s3Location). | 
| s3 | Location | The location of the code in S3 (mutually exclusive with inlineCode). | 
inlineCode?
Type:
string
(optional, default: none)
Inline code (mutually exclusive with s3Location).
s3Location?
Type:
Location
(optional, default: none)
The location of the code in S3 (mutually exclusive with inlineCode).
