Skip to content

Commit 0ac2211

Browse files
committed
fix: make locations for CheckGroup optional fixes #939 [sc-00]
1 parent 341a90c commit 0ac2211

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/cli/src/constructs/check-group.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export interface CheckGroupProps {
6969
/**
7070
* An array of one or more data center locations where to run the checks.
7171
*/
72-
locations: Array<keyof Region>
72+
locations?: Array<keyof Region>
7373
/**
7474
* An array of one or more private locations where to run the checks.
7575
*/
@@ -166,7 +166,7 @@ export class CheckGroup extends Construct {
166166
this.doubleCheck = props.doubleCheck
167167
this.tags = props.tags
168168
this.runtimeId = props.runtimeId
169-
this.locations = props.locations
169+
this.locations = props.locations ?? []
170170
this.privateLocations = props.privateLocations
171171
this.concurrency = props.concurrency
172172
// `frequency` is not a CheckGroup resource property. Not present in synthesize()

0 commit comments

Comments
 (0)