CloudWatch CompositeAlarm now supports specifying a suppressor alarm actionsSuppressor when initializing (see CompositeAlarm API reference). 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
Description
Closes #516
CloudWatch
CompositeAlarm
now supports specifying a suppressor alarmactionsSuppressor
when initializing (see CompositeAlarm API reference). However, this additional parameter is not present withinAddCompositeAlarmProps
, and thus, it is not possible to create aCompositeAlarm
usingAlarmFactory.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
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license