Skip to content

AutoScalingGroup: DatapointsToAlarm property support for BasicStepScalingPolicyProps #28749

@Daniel-ZA

Description

@Daniel-ZA

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

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.114.1

Environment details (OS name and version, etc.)

Linux/Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-autoscalingRelated to Amazon EC2 Auto Scalingeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions