[−][src]Struct rusoto_autoscaling::ScalingPolicy
Describes a scaling policy.
Fields
adjustment_type: Option<String>
The adjustment type, which specifies how ScalingAdjustment
is interpreted. The valid values are ChangeInCapacity
, ExactCapacity
, and PercentChangeInCapacity
.
alarms: Option<Vec<Alarm>>
The CloudWatch alarms related to the policy.
auto_scaling_group_name: Option<String>
The name of the Auto Scaling group.
cooldown: Option<i64>
The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities can start.
estimated_instance_warmup: Option<i64>
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
metric_aggregation_type: Option<String>
The aggregation type for the CloudWatch metrics. The valid values are Minimum
, Maximum
, and Average
.
min_adjustment_magnitude: Option<i64>
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<i64>
Available for backward compatibility. Use MinAdjustmentMagnitude
instead.
policy_arn: Option<String>
The Amazon Resource Name (ARN) of the policy.
policy_name: Option<String>
The name of the scaling policy.
policy_type: Option<String>
The policy type. The valid values are SimpleScaling
and StepScaling
.
scaling_adjustment: Option<i64>
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<Vec<StepAdjustment>>
A set of adjustments that enable you to scale based on the size of the alarm breach.
target_tracking_configuration: Option<TargetTrackingConfiguration>
A target tracking scaling policy.
Trait Implementations
impl PartialEq<ScalingPolicy> for ScalingPolicy
[src]
fn eq(&self, other: &ScalingPolicy) -> bool
[src]
fn ne(&self, other: &ScalingPolicy) -> bool
[src]
impl Default for ScalingPolicy
[src]
fn default() -> ScalingPolicy
[src]
impl Clone for ScalingPolicy
[src]
fn clone(&self) -> ScalingPolicy
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ScalingPolicy
[src]
Auto Trait Implementations
impl Send for ScalingPolicy
impl Sync for ScalingPolicy
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self