Struct rusoto_autoscaling::ScalingPolicy
[−]
[src]
pub struct ScalingPolicy { pub adjustment_type: Option<XmlStringMaxLen255>, pub alarms: Option<Alarms>, pub auto_scaling_group_name: Option<XmlStringMaxLen255>, pub cooldown: Option<Cooldown>, pub estimated_instance_warmup: Option<EstimatedInstanceWarmup>, pub metric_aggregation_type: Option<XmlStringMaxLen32>, pub min_adjustment_magnitude: Option<MinAdjustmentMagnitude>, pub min_adjustment_step: Option<MinAdjustmentStep>, pub policy_arn: Option<ResourceName>, pub policy_name: Option<XmlStringMaxLen255>, pub policy_type: Option<XmlStringMaxLen64>, pub scaling_adjustment: Option<PolicyIncrement>, pub step_adjustments: Option<StepAdjustments>, }
Describes a scaling policy.
Fields
adjustment_type: Option<XmlStringMaxLen255>
The adjustment type, which specifies how ScalingAdjustment
is interpreted. Valid values are ChangeInCapacity
, ExactCapacity
, and PercentChangeInCapacity
.
alarms: Option<Alarms>
The CloudWatch alarms related to the policy.
auto_scaling_group_name: Option<XmlStringMaxLen255>
The name of the Auto Scaling group associated with this scaling policy.
cooldown: Option<Cooldown>
The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities can start.
estimated_instance_warmup: Option<EstimatedInstanceWarmup>
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
metric_aggregation_type: Option<XmlStringMaxLen32>
The aggregation type for the CloudWatch metrics. Valid values are Minimum
, Maximum
, and Average
.
min_adjustment_magnitude: Option<MinAdjustmentMagnitude>
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
.
min_adjustment_step: Option<MinAdjustmentStep>
Available for backward compatibility. Use MinAdjustmentMagnitude
instead.
policy_arn: Option<ResourceName>
The Amazon Resource Name (ARN) of the policy.
policy_name: Option<XmlStringMaxLen255>
The name of the scaling policy.
policy_type: Option<XmlStringMaxLen64>
The policy type. Valid values are SimpleScaling
and StepScaling
.
scaling_adjustment: Option<PolicyIncrement>
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.
step_adjustments: Option<StepAdjustments>
A set of adjustments that enable you to scale based on the size of the alarm breach.
Trait Implementations
impl Default for ScalingPolicy
[src]
fn default() -> ScalingPolicy
Returns the "default value" for a type. Read more
impl Debug for ScalingPolicy
[src]
impl Clone for ScalingPolicy
[src]
fn clone(&self) -> ScalingPolicy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more