ScalingPolicy
¶
Source code in docs_src/capo_auto_scaling/types/scaling_policy.py
adjustment_type
instance-attribute
¶
adjustment_type: NotRequired[XmlStringMaxLen255]
Specifies how the scaling adjustment is interpreted (for example, an absolute number or a percentage). The valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.
alarms
instance-attribute
¶
alarms: NotRequired[Alarms]
The CloudWatch alarms related to the policy.
auto_scaling_group_name
instance-attribute
¶
auto_scaling_group_name: NotRequired[XmlStringMaxLen255]
The name of the Auto Scaling group.
cooldown
instance-attribute
¶
cooldown: NotRequired[Cooldown]
The duration of the policy's cooldown period, in seconds.
enabled
instance-attribute
¶
enabled: NotRequired[ScalingPolicyEnabled]
Indicates whether the policy is enabled (true) or disabled (false).
estimated_instance_warmup
instance-attribute
¶
estimated_instance_warmup: NotRequired[EstimatedInstanceWarmup]
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
metric_aggregation_type
instance-attribute
¶
metric_aggregation_type: NotRequired[XmlStringMaxLen32]
The aggregation type for the CloudWatch metrics. The valid values are Minimum, Maximum, and Average.
min_adjustment_magnitude
instance-attribute
¶
min_adjustment_magnitude: NotRequired[MinAdjustmentMagnitude]
The minimum value to scale by when the adjustment type is PercentChangeInCapacity.
min_adjustment_step
instance-attribute
¶
min_adjustment_step: NotRequired[MinAdjustmentStep]
Available for backward compatibility. Use MinAdjustmentMagnitude instead.
policy_arn
instance-attribute
¶
policy_arn: NotRequired[ResourceName]
The Amazon Resource Name (ARN) of the policy.
policy_name
instance-attribute
¶
policy_name: NotRequired[XmlStringMaxLen255]
The name of the scaling policy.
policy_type
instance-attribute
¶
policy_type: NotRequired[XmlStringMaxLen64]
One of the following policy types:
-
TargetTrackingScaling -
StepScaling -
SimpleScaling(default) -
PredictiveScaling
For more information, see Target tracking scaling policies and Step and simple scaling policies in the Amazon EC2 Auto Scaling User Guide.
predictive_scaling_configuration
instance-attribute
¶
predictive_scaling_configuration: NotRequired[PredictiveScalingConfiguration]
A predictive scaling policy.
scaling_adjustment
instance-attribute
¶
scaling_adjustment: NotRequired[PolicyIncrement]
The amount by which to scale, based on the specified adjustment type. A positive value adds to the current capacity while a negative number removes from the current capacity.
step_adjustments
instance-attribute
¶
step_adjustments: NotRequired[StepAdjustments]
A set of adjustments that enable you to scale based on the size of the alarm breach.
target_tracking_configuration
instance-attribute
¶
target_tracking_configuration: NotRequired[TargetTrackingConfiguration]
A target tracking scaling policy.