From af745ad107175acc9ad8c9780324dcbc4d0be2d5 Mon Sep 17 00:00:00 2001 From: maz Date: Sun, 16 Jun 2024 00:21:35 +0900 Subject: [PATCH] fix: update README --- packages/aws-cdk-lib/aws-synthetics/README.md | 4 ++++ 1 file changed, 4 insertions(+) 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({