Test
- class aws_cdk.aws_synthetics.Test(*args: Any, **kwargs)
Bases:
object
Specify a test that the canary should run.
- ExampleMetadata:
infused
Example:
import aws_cdk as cdk canary = synthetics.Canary(self, "MyCanary", schedule=synthetics.Schedule.rate(Duration.minutes(5)), test=synthetics.Test.custom( code=synthetics.Code.from_asset(path.join(__dirname, "canary")), handler="index.handler" ), runtime=synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2, memory=cdk.Size.mebibytes(1024) )
Attributes
- code
The code that the canary should run.
- handler
The handler of the canary.
Static Methods