-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(AlarmFactory): add suppressor alarm props to AddCompositeAlarmPr…
…ops (#518) ### Description Closes #516 CloudWatch `CompositeAlarm` now supports specifying a suppressor alarm `actionsSuppressor` when initializing (see [CompositeAlarm API reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html)). However, this additional parameter is not present within `AddCompositeAlarmProps`, and thus, it is not possible to create a `CompositeAlarm` using `AlarmFactory.addCompositeAlarm(...)` while simultaneously specifying a suppressor alarm. This pull request adds this functionality, while being backwards-compatible, since all new props are optional. ### Testing - `yarn build` - Added suite of unit tests to test suppressor alarm prop behavior. --- _By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license_ Co-authored-by: Jonathan Luo <[email protected]>
- Loading branch information
1 parent
619690d
commit 736767e
Showing
4 changed files
with
429 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.