interface CustomTestOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Synthetics.CustomTestOptions |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awssynthetics#CustomTestOptions |
![]() | software.amazon.awscdk.services.synthetics.CustomTestOptions |
![]() | aws_cdk.aws_synthetics.CustomTestOptions |
![]() | aws-cdk-lib » aws_synthetics » CustomTestOptions |
Properties for specifying a test.
Example
import * as cdk from "aws-cdk-lib";
const canary = new synthetics.Canary(this, 'MyCanary', {
schedule: synthetics.Schedule.rate(Duration.minutes(5)),
test: synthetics.Test.custom({
code: synthetics.Code.fromAsset(path.join(__dirname, 'canary')),
handler: 'index.handler',
}),
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2,
memory: cdk.Size.mebibytes(1024), // 1024 MiB
});
Properties
Name | Type | Description |
---|---|---|
code | Code | The code of the canary script. |
handler | string | The handler for the code. |
code
Type:
Code
The code of the canary script.
handler
Type:
string
The handler for the code.
Must end with .handler
.