You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(AlarmFactory): add suppressor alarm props to AddCompositeAlarmProps (#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]>
0 commit comments