diff --git a/packages/aws-cdk-lib/aws-synthetics/README.md b/packages/aws-cdk-lib/aws-synthetics/README.md index 98d4315172f1f..46dc18c7753f0 100644 --- a/packages/aws-cdk-lib/aws-synthetics/README.md +++ b/packages/aws-cdk-lib/aws-synthetics/README.md @@ -112,6 +112,8 @@ const canary = new synthetics.Canary(this, 'MyCanary', { You can set the maximum amount of memory that the canary can use while running by setting `memory`. ```ts +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({ @@ -128,6 +130,8 @@ const canary = new synthetics.Canary(this, 'MyCanary', { You can set how long the canary is allowed to run before it must stop by setting `timeout`. ```ts +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({