StepScalingActionProps

class aws_cdk.aws_autoscaling.StepScalingActionProps(*, auto_scaling_group, adjustment_type=None, cooldown=None, estimated_instance_warmup=None, metric_aggregation_type=None, min_adjustment_magnitude=None)

Bases: object

__init__(*, auto_scaling_group, adjustment_type=None, cooldown=None, estimated_instance_warmup=None, metric_aggregation_type=None, min_adjustment_magnitude=None)

Properties for a scaling policy.

Parameters
  • auto_scaling_group (IAutoScalingGroup) – The auto scaling group.

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

  • cooldown (Optional[Duration]) – Period after a scaling completes before another scaling activity can start. Default: The default cooldown configured on the AutoScalingGroup

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

  • 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

Attributes

adjustment_type

How the adjustment numbers are interpreted.

default :default: ChangeInCapacity

Return type

Optional[AdjustmentType]

auto_scaling_group

The auto scaling group.

Return type

IAutoScalingGroup

cooldown

Period after a scaling completes before another scaling activity can start.

default :default: The default cooldown configured on the 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_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]