[][src]Struct rusoto_autoscaling::ScalingPolicy

pub struct ScalingPolicy {
    pub adjustment_type: Option<String>,
    pub alarms: Option<Vec<Alarm>>,
    pub auto_scaling_group_name: Option<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_arn: Option<String>,
    pub policy_name: Option<String>,
    pub policy_type: Option<String>,
    pub scaling_adjustment: Option<i64>,
    pub step_adjustments: Option<Vec<StepAdjustment>>,
    pub target_tracking_configuration: Option<TargetTrackingConfiguration>,
}

Describes a scaling policy.

Fields

The adjustment type, which specifies how ScalingAdjustment is interpreted. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.

The CloudWatch alarms related to the policy.

The name of the Auto Scaling group.

The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities can start.

The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.

The aggregation type for the CloudWatch metrics. Valid values are Minimum, Maximum, and Average.

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.

Available for backward compatibility. Use MinAdjustmentMagnitude instead.

The Amazon Resource Name (ARN) of the policy.

The name of the scaling policy.

The policy type. Valid values are SimpleScaling and StepScaling.

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.

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

A target tracking policy.

Trait Implementations

impl Clone for ScalingPolicy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for ScalingPolicy
[src]

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

impl PartialEq<ScalingPolicy> for ScalingPolicy
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for ScalingPolicy
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Same for T

Should always be Self

impl<T> Erased for T