Skip to content

Commit

Permalink
fix: make locations for CheckGroup optional fixes #939 [sc-00]
Browse files Browse the repository at this point in the history
  • Loading branch information
tnolet committed Aug 15, 2024
1 parent 341a90c commit 0ac2211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/constructs/check-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface CheckGroupProps {
/**
* An array of one or more data center locations where to run the checks.
*/
locations: Array<keyof Region>
locations?: Array<keyof Region>
/**
* An array of one or more private locations where to run the checks.
*/
Expand Down Expand Up @@ -166,7 +166,7 @@ export class CheckGroup extends Construct {
this.doubleCheck = props.doubleCheck
this.tags = props.tags
this.runtimeId = props.runtimeId
this.locations = props.locations
this.locations = props.locations ?? []
this.privateLocations = props.privateLocations
this.concurrency = props.concurrency
// `frequency` is not a CheckGroup resource property. Not present in synthesize()
Expand Down

0 comments on commit 0ac2211

Please sign in to comment.