class Aws::AutoScaling::Types::ScalingPolicy

Describes a scaling policy.

@!attribute [rw] auto_scaling_group_name

The name of the Auto Scaling group.
@return [String]

@!attribute [rw] policy_name

The name of the scaling policy.
@return [String]

@!attribute [rw] policy_arn

The Amazon Resource Name (ARN) of the policy.
@return [String]

@!attribute [rw] policy_type

One of the following policy types:

* `TargetTrackingScaling`

* `StepScaling`

* `SimpleScaling` (default)

* `PredictiveScaling`

For more information, see [Target tracking scaling policies][1] and
[Step and simple scaling policies][2] in the *Amazon EC2 Auto
Scaling User Guide*.

[1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html
[2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html
@return [String]

@!attribute [rw] adjustment_type

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

@!attribute [rw] min_adjustment_step

Available for backward compatibility. Use `MinAdjustmentMagnitude`
instead.
@return [Integer]

@!attribute [rw] min_adjustment_magnitude

The minimum value to scale by when the adjustment type is
`PercentChangeInCapacity`.
@return [Integer]

@!attribute [rw] scaling_adjustment

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.
@return [Integer]

@!attribute [rw] cooldown

The duration of the policy's cooldown period, in seconds.
@return [Integer]

@!attribute [rw] step_adjustments

A set of adjustments that enable you to scale based on the size of
the alarm breach.
@return [Array<Types::StepAdjustment>]

@!attribute [rw] metric_aggregation_type

The aggregation type for the CloudWatch metrics. The valid values
are `Minimum`, `Maximum`, and `Average`.
@return [String]

@!attribute [rw] estimated_instance_warmup

The estimated time, in seconds, until a newly launched instance can
contribute to the CloudWatch metrics.
@return [Integer]

@!attribute [rw] alarms

The CloudWatch alarms related to the policy.
@return [Array<Types::Alarm>]

@!attribute [rw] target_tracking_configuration

A target tracking scaling policy.
@return [Types::TargetTrackingConfiguration]

@!attribute [rw] enabled

Indicates whether the policy is enabled (`true`) or disabled
(`false`).
@return [Boolean]

@!attribute [rw] predictive_scaling_configuration

A predictive scaling policy.
@return [Types::PredictiveScalingConfiguration]

@see docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScalingPolicy AWS API Documentation

Constants

SENSITIVE