Skip to content

Commit

Permalink
fix: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mazyu36 committed Jun 15, 2024
1 parent a40be25 commit af745ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/aws-cdk-lib/aws-synthetics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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({
Expand Down

0 comments on commit af745ad

Please sign in to comment.