StepScalingActionProps

class aws_cdk.aws_applicationautoscaling.StepScalingActionProps(*, scaling_target, adjustment_type=None, cooldown=None, metric_aggregation_type=None, min_adjustment_magnitude=None, policy_name=None)

Bases: object

__init__(*, scaling_target, adjustment_type=None, cooldown=None, metric_aggregation_type=None, min_adjustment_magnitude=None, policy_name=None)

Properties for a scaling policy.

Parameters
  • scaling_target (IScalableTarget) – The scalable target.

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

  • cooldown (Optional[Duration]) – Grace period after scaling activity. For scale out policies, multiple scale outs during the cooldown period are squashed so that only the biggest scale out happens. For scale in policies, subsequent scale ins during the cooldown period are ignored. Default: No cooldown period

  • metric_aggregation_type (Optional[MetricAggregationType]) – The aggregation type for the CloudWatch metrics. Default: Average

  • 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

  • policy_name (Optional[str]) – A name for the scaling policy. Default: Automatically generated name

Attributes

adjustment_type

How the adjustment numbers are interpreted.

default :default: ChangeInCapacity

Return type

Optional[AdjustmentType]

cooldown

Grace period after scaling activity.

For scale out policies, multiple scale outs during the cooldown period are squashed so that only the biggest scale out happens.

For scale in policies, 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_aggregation_type

The aggregation type for the CloudWatch metrics.

default :default: Average

Return type

Optional[MetricAggregationType]

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]

policy_name

A name for the scaling policy.

default :default: Automatically generated name

Return type

Optional[str]

scaling_target

The scalable target.

Return type

IScalableTarget