Describe the feature
Currently, the scale_on_metric method for the AutoScalingGroup construct does not support explicitly specifying the DatapointsToAlarm property but supports setting EvaluationPeriods. The scale_on_metric implements BasicStepScalingPolicyProps. Hence support DatapointsToAlarm in BasicStepScalingPolicyProps interface.
Use Case
This feature would be helpful instead of having to use the workaround of Escape Hatches to modify the underlying DatapointsToAlarm property in the CloudWatch alarm generated.
Proposed Solution
Add property DatapointsToAlarm property for BasicStepScalingPolicyProps construct.
Other Information
No response
Acknowledgements
CDK version used
2.114.1
Environment details (OS name and version, etc.)
Linux/Windows
Describe the feature
Currently, the scale_on_metric method for the AutoScalingGroup construct does not support explicitly specifying the
DatapointsToAlarmproperty but supports settingEvaluationPeriods. Thescale_on_metricimplementsBasicStepScalingPolicyProps. Hence supportDatapointsToAlarminBasicStepScalingPolicyPropsinterface.Use Case
This feature would be helpful instead of having to use the workaround of Escape Hatches to modify the underlying
DatapointsToAlarmproperty in the CloudWatch alarm generated.Proposed Solution
Add property
DatapointsToAlarmproperty forBasicStepScalingPolicyPropsconstruct.Other Information
No response
Acknowledgements
CDK version used
2.114.1
Environment details (OS name and version, etc.)
Linux/Windows