@aws-cdk_aws-synthetics-alpha.CodeConfig
interface CodeConfig
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Synthetics.Alpha.CodeConfig |
![]() | github.com/aws/aws-cdk-go/awscdksyntheticsalpha/v2#CodeConfig |
![]() | software.amazon.awscdk.services.synthetics.alpha.CodeConfig |
![]() | aws_cdk.aws_synthetics_alpha.CodeConfig |
![]() | @aws-cdk/aws-synthetics-alpha ยป 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_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
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
).