@aws-cdk_aws-synthetics-alpha.CodeConfig

interface CodeConfig ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Synthetics.Alpha.CodeConfig
Gogithub.com/aws/aws-cdk-go/awscdksyntheticsalpha/v2#CodeConfig
Javasoftware.amazon.awscdk.services.synthetics.alpha.CodeConfig
Pythonaws_cdk.aws_synthetics_alpha.CodeConfig
TypeScript (source)@aws-cdk/aws-synthetics-alpha ยป CodeConfig

Obtainable from AssetCode.bind(), Code.bind(), InlineCode.bind(), S3Code.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_alpha from '@aws-cdk/aws-synthetics-alpha';
const codeConfig: synthetics_alpha.CodeConfig = {
  inlineCode: 'inlineCode',
  s3Location: {
    bucketName: 'bucketName',
    objectKey: 'objectKey',

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

Properties

NameTypeDescription
inlineCode?๐Ÿ”นstringInline code (mutually exclusive with s3Location).
s3Location?๐Ÿ”นLocationThe 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).