aws_cloudwatch: Alarm dimensions support #29068
Labels
@aws-cdk/aws-cloudwatch
Related to Amazon CloudWatch
feature-request
A feature should be added or improved.
p2
Describe the feature
It is currently not possible to add dimensions to the Alarm construct while it is possible to do so using CfnAlarm. Support for dimensions on the Alarm construct itself would be nice so we don't have to do some lower level magic with the Cfn construct.
Use Case
I have logic that depends on a specific dimension to exist on an alarm.
With alarms based on for example MetricFilters metrics, the metric's dimensions do not propagate to the alarm so I need to set them manually on the alarm. While it is possible with CfnAlarm, this makes it inconvenient because all other alarms are of the Alarm construct and have convenience methods like
addAlarmAction
, where both the fields are slightly different on CfnAlarm and it does not have these methods.Proposed Solution
Other Information
No response
Acknowledgements
CDK version used
latest
Environment details (OS name and version, etc.)
N/A
The text was updated successfully, but these errors were encountered: