StepScalingPolicyProps

class aws_cdk.aws_autoscaling.StepScalingPolicyProps(*, metric, scaling_steps, adjustment_type=None, cooldown=None, estimated_instance_warmup=None, min_adjustment_magnitude=None, auto_scaling_group)

Bases: aws_cdk.aws_autoscaling.BasicStepScalingPolicyProps

__init__(*, metric, scaling_steps, adjustment_type=None, cooldown=None, estimated_instance_warmup=None, min_adjustment_magnitude=None, auto_scaling_group)
Parameters
  • metric (IMetric) – Metric to scale on.

  • scaling_steps (List[ScalingInterval]) – The intervals for scaling. Maps a range of metric values to a particular scaling behavior.

  • adjustment_type (Optional[AdjustmentType]) – How the adjustment numbers inside ‘intervals’ are interpreted. Default: ChangeInCapacity

  • cooldown (Optional[Duration]) – Grace period after scaling activity. Default: Default cooldown period on your AutoScalingGroup

  • estimated_instance_warmup (Optional[Duration]) – Estimated time until a newly launched instance can send metrics to CloudWatch. Default: Same as the cooldown

  • min_adjustment_magnitude (Union[int, float, None]) – Minimum absolute number to adjust capacity with as result of percentage scaling. Only when using AdjustmentType = PercentChangeInCapacity, this number controls the minimum absolute effect size. Default: No minimum scaling effect

  • auto_scaling_group (IAutoScalingGroup) – The auto scaling group.

Attributes

adjustment_type

How the adjustment numbers inside ‘intervals’ are interpreted.

default :default: ChangeInCapacity

Return type

Optional[AdjustmentType]

auto_scaling_group

The auto scaling group.

Return type

IAutoScalingGroup

cooldown

Grace period after scaling activity.

default :default: Default cooldown period on your AutoScalingGroup

Return type

Optional[Duration]

estimated_instance_warmup

Estimated time until a newly launched instance can send metrics to CloudWatch.

default :default: Same as the cooldown

Return type

Optional[Duration]

metric

Metric to scale on.

Return type

IMetric

min_adjustment_magnitude

Minimum absolute number to adjust capacity with as result of percentage scaling.

Only when using AdjustmentType = PercentChangeInCapacity, this number controls the minimum absolute effect size.

default :default: No minimum scaling effect

Return type

Union[int, float, None]

scaling_steps

The intervals for scaling.

Maps a range of metric values to a particular scaling behavior.

Return type

List[ScalingInterval]