Class: ScalingPolicy

AutoScaling.ScalingPolicy

new ScalingPolicy()

Properties:
Name Type Description
AdjustmentType String Required: Yes. Specifies whether the ScalingAdjustment is an absolute number or a percentage of the current capacity. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.Update requires: No interruption
AutoScalingGroupName String Required: Yes. The name or Amazon Resource Name (ARN) of the Auto Scaling Group that you want to attach the policy to.Update requires: No interruption
Cooldown String Required: No. The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.Do not specify this property if you are using the StepScaling policy type.Update requires: No interruption
EstimatedInstanceWarmup Number Required: No. The estimated time, in seconds, until a newly launched instance can send metrics to CloudWatch. By default, Auto Scaling uses the cooldown period, as specified in the Cooldown property.Do not specify this property if you are using the SimpleScaling policy type.Update requires: No interruption
MetricAggregationType String Required: No. The aggregation type for the CloudWatch metrics. You can specify Minimum, Maximum, or Average. By default, AWS CloudFormation specifies Average.Do not specify this property if you are using the SimpleScaling policy type.Update requires: No interruption
MinAdjustmentMagnitude Number Required: No. For the PercentChangeInCapacity adjustment type, the minimum number of instances to scale. The scaling policy changes the desired capacity of the Auto Scaling group by a minimum of this many instances. This property replaces the MinAdjustmentStep property.Update requires: No interruption
PolicyType String Required: No. An Auto Scaling policy type. You can specify SimpleScaling or StepScaling. By default, AWS CloudFormation specifies SimpleScaling. For more information, see Scaling Policy Types in the Auto Scaling User Guide.Update requires: No interruption
ScalingAdjustment Number Required: Conditional. The number of instances by which to scale. The AdjustmentType property determines whether AWS CloudFormation interprets this number as an absolute number (when the ExactCapacityvalue is specified) or as a percentage of the existing Auto Scaling group size (when the PercentChangeInCapacity value is specified). A positive value adds to the current capacity and a negative value subtracts from the current capacity.Update requires: No interruption
StepAdjustments AutoScalingScalingPolicyStepAdjustments Required: Conditional. A set of adjustments that enable you to scale based on the size of the alarm breach.Update requires: No interruption
Source:

Extends

  • WKResource

AutoScaling.ScalingPolicy

new ScalingPolicy()

Properties:
Name Type Description
AdjustmentType String Required: Yes. Specifies whether the ScalingAdjustment is an absolute number or a percentage of the current capacity. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.Update requires: No interruption
AutoScalingGroupName String Required: Yes. The name or Amazon Resource Name (ARN) of the Auto Scaling Group that you want to attach the policy to.Update requires: No interruption
Cooldown String Required: No. The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.Do not specify this property if you are using the StepScaling policy type.Update requires: No interruption
EstimatedInstanceWarmup Number Required: No. The estimated time, in seconds, until a newly launched instance can send metrics to CloudWatch. By default, Auto Scaling uses the cooldown period, as specified in the Cooldown property.Do not specify this property if you are using the SimpleScaling policy type.Update requires: No interruption
MetricAggregationType String Required: No. The aggregation type for the CloudWatch metrics. You can specify Minimum, Maximum, or Average. By default, AWS CloudFormation specifies Average.Do not specify this property if you are using the SimpleScaling policy type.Update requires: No interruption
MinAdjustmentMagnitude Number Required: No. For the PercentChangeInCapacity adjustment type, the minimum number of instances to scale. The scaling policy changes the desired capacity of the Auto Scaling group by a minimum of this many instances. This property replaces the MinAdjustmentStep property.Update requires: No interruption
PolicyType String Required: No. An Auto Scaling policy type. You can specify SimpleScaling or StepScaling. By default, AWS CloudFormation specifies SimpleScaling. For more information, see Scaling Policy Types in the Auto Scaling User Guide.Update requires: No interruption
ScalingAdjustment Number Required: Conditional. The number of instances by which to scale. The AdjustmentType property determines whether AWS CloudFormation interprets this number as an absolute number (when the ExactCapacityvalue is specified) or as a percentage of the existing Auto Scaling group size (when the PercentChangeInCapacity value is specified). A positive value adds to the current capacity and a negative value subtracts from the current capacity.Update requires: No interruption
StepAdjustments AutoScalingScalingPolicyStepAdjustments Required: Conditional. A set of adjustments that enable you to scale based on the size of the alarm breach.Update requires: No interruption
Source:

Extends

  • WKResource