[−][src]Struct rusoto_autoscaling::PutScalingPolicyType
Fields
adjustment_type: Option<String>
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.
auto_scaling_group_name: String
The name of the Auto Scaling group.
cooldown: Option<i64>
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.
estimated_instance_warmup: Option<i64>
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
.
metric_aggregation_type: Option<String>
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
.
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
.
This parameter is supported if the policy type is SimpleScaling
or StepScaling
.
min_adjustment_step: Option<i64>
Available for backward compatibility. Use MinAdjustmentMagnitude
instead.
policy_name: String
The name of the policy.
policy_type: Option<String>
The policy type. The valid values are SimpleScaling
, StepScaling
, and TargetTrackingScaling
. If the policy type is null, the value is treated as SimpleScaling
.
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.
This parameter is required if the policy type is SimpleScaling
and not supported otherwise.
step_adjustments: Option<Vec<StepAdjustment>>
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.
target_tracking_configuration: Option<TargetTrackingConfiguration>
A target tracking policy.
This parameter is required if the policy type is TargetTrackingScaling
and not supported otherwise.
Trait Implementations
impl Clone for PutScalingPolicyType
[src]
impl Clone for PutScalingPolicyType
fn clone(&self) -> PutScalingPolicyType
[src]
fn clone(&self) -> PutScalingPolicyType
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Default for PutScalingPolicyType
[src]
impl Default for PutScalingPolicyType
fn default() -> PutScalingPolicyType
[src]
fn default() -> PutScalingPolicyType
impl PartialEq<PutScalingPolicyType> for PutScalingPolicyType
[src]
impl PartialEq<PutScalingPolicyType> for PutScalingPolicyType
fn eq(&self, other: &PutScalingPolicyType) -> bool
[src]
fn eq(&self, other: &PutScalingPolicyType) -> bool
fn ne(&self, other: &PutScalingPolicyType) -> bool
[src]
fn ne(&self, other: &PutScalingPolicyType) -> bool
impl Debug for PutScalingPolicyType
[src]
impl Debug for PutScalingPolicyType
Auto Trait Implementations
impl Send for PutScalingPolicyType
impl Send for PutScalingPolicyType
impl Sync for PutScalingPolicyType
impl Sync for PutScalingPolicyType
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
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]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
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]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T> Erased for T