Builder

class Builder

Properties

Link copied to clipboard

Specifies how the scaling adjustment is interpreted (for example, an absolute number or a percentage). The valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.

Link copied to clipboard

The name of the Auto Scaling group.

Link copied to clipboard

A cooldown period, in seconds, that applies to a specific simple scaling policy. When a cooldown period is specified here, it overrides the default cooldown.

Link copied to clipboard

Indicates whether the scaling policy is enabled or disabled. The default is enabled. For more information, see Disabling a scaling policy for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

Link copied to clipboard

Not needed if the default instance warmup is defined for the group.

Link copied to clipboard

The aggregation type for the CloudWatch metrics. The valid values are Minimum, Maximum, and Average. If the aggregation type is null, the value is treated as Average.

Link copied to clipboard

The minimum value to scale by when the adjustment type is PercentChangeInCapacity. For example, suppose that you create a step scaling policy to scale out an Auto Scaling group by 25 percent and you specify a MinAdjustmentMagnitude of 2. If the group has 4 instances and the scaling policy is performed, 25 percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude of 2, Amazon EC2 Auto Scaling scales out the group by 2 instances.

Link copied to clipboard

Available for backward compatibility. Use MinAdjustmentMagnitude instead.

Link copied to clipboard

The name of the policy.

Link copied to clipboard

One of the following policy types:

Link copied to clipboard

A predictive scaling policy. Provides support for predefined and custom metrics.

Link copied to clipboard

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. For exact capacity, you must specify a non-negative value.

Link copied to clipboard

A set of adjustments that enable you to scale based on the size of the alarm breach.

Link copied to clipboard

A target tracking scaling policy. Provides support for predefined or custom metrics.