[−][src]Struct rusoto_autoscaling::ScalingPolicy
Describes a scaling policy.
Fields
adjustment_type: Option<String>
Specifies how the scaling adjustment is interpreted (either an absolute number or a percentage). 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 duration of the policy's cooldown period, in seconds.
enabled: Option<bool>
Indicates whether the policy is enabled (true
) or disabled (false
).
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 value to scale by when the adjustment type is PercentChangeInCapacity
.
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>
One of the following policy types:
-
TargetTrackingScaling
-
StepScaling
-
SimpleScaling
(default)
For more information, see Target Tracking Scaling Policies and Step and Simple Scaling Policies in the Amazon EC2 Auto Scaling User Guide.
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 Clone for ScalingPolicy
[src]
pub fn clone(&self) -> ScalingPolicy
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ScalingPolicy
[src]
impl Default for ScalingPolicy
[src]
pub fn default() -> ScalingPolicy
[src]
impl PartialEq<ScalingPolicy> for ScalingPolicy
[src]
pub fn eq(&self, other: &ScalingPolicy) -> bool
[src]
pub fn ne(&self, other: &ScalingPolicy) -> bool
[src]
impl StructuralPartialEq for ScalingPolicy
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScalingPolicy
[src]
impl Send for ScalingPolicy
[src]
impl Sync for ScalingPolicy
[src]
impl Unpin for ScalingPolicy
[src]
impl UnwindSafe for ScalingPolicy
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,