cdklabs / cdk-monitoring-constructs

Easy-to-use CDK constructs for monitoring your AWS infrastructure
https://constructs.dev/packages/cdk-monitoring-constructs
Apache License 2.0
443 stars 55 forks source link

feat(AlarmFactory): add suppressor alarm props to AddCompositeAlarmProps #518

Closed jonathan-luo closed 1 month ago

jonathan-luo commented 1 month ago

Description

Closes #516

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


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license