BasicStepScalingPolicyProps

class aws_cdk.aws_applicationautoscaling.BasicStepScalingPolicyProps(*, metric, scaling_steps, adjustment_type=None, cooldown=None, min_adjustment_magnitude=None)

Bases: object

__init__(*, metric, scaling_steps, adjustment_type=None, cooldown=None, min_adjustment_magnitude=None)
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. Subsequent scale outs during the cooldown period are squashed so that only the biggest scale out happens. Subsequent scale ins during the cooldown period are ignored. Default: No cooldown period

  • 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

Attributes

adjustment_type

How the adjustment numbers inside ‘intervals’ are interpreted.

default :default: ChangeInCapacity

Return type

Optional[AdjustmentType]

cooldown

Grace period after scaling activity.

Subsequent scale outs during the cooldown period are squashed so that only the biggest scale out happens.

Subsequent scale ins during the cooldown period are ignored.

default :default: No cooldown period

see :see: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_StepScalingPolicyConfiguration.html

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]