Struct rusoto_autoscaling::PutScalingPolicyType [] [src]

pub struct PutScalingPolicyType {
    pub adjustment_type: Option<String>,
    pub auto_scaling_group_name: String,
    pub cooldown: Option<i64>,
    pub estimated_instance_warmup: Option<i64>,
    pub metric_aggregation_type: Option<String>,
    pub min_adjustment_magnitude: Option<i64>,
    pub min_adjustment_step: Option<i64>,
    pub policy_name: String,
    pub policy_type: Option<String>,
    pub scaling_adjustment: Option<i64>,
    pub step_adjustments: Option<Vec<StepAdjustment>>,
    pub target_tracking_configuration: Option<TargetTrackingConfiguration>,
}

Contains the parameters for PutScalingPolicy.

Fields

The adjustment type. The valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.

This parameter is supported if the policy type is SimpleScaling or StepScaling.

For more information, see Dynamic Scaling in the Auto Scaling User Guide.

The name or ARN of the group.

The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.

This parameter is supported if the policy type is SimpleScaling.

For more information, see Auto Scaling Cooldowns in the Auto Scaling User Guide.

The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. The default is to use the value specified for the default cooldown period for the group.

This parameter is supported if the policy type is StepScaling or TargetTrackingScaling.

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.

This parameter is supported if the policy type is StepScaling.

The minimum number of instances to scale. If the value of AdjustmentType is PercentChangeInCapacity, the scaling policy changes the DesiredCapacity of the Auto Scaling group by at least this many instances. Otherwise, the error is ValidationError.

This parameter is supported if the policy type is SimpleScaling or StepScaling.

Available for backward compatibility. Use MinAdjustmentMagnitude instead.

The name of the policy.

The policy type. The valid values are SimpleScaling, StepScaling, and TargetTrackingScaling. If the policy type is null, the value is treated as SimpleScaling.

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.

This parameter is required if the policy type is SimpleScaling and not supported otherwise.

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

This parameter is required if the policy type is StepScaling and not supported otherwise.

The configuration of a target tracking policy.

This parameter is required if the policy type is TargetTrackingScaling and not supported otherwise.

Trait Implementations

impl Default for PutScalingPolicyType
[src]

[src]

Returns the "default value" for a type. Read more

impl Debug for PutScalingPolicyType
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for PutScalingPolicyType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations