#[non_exhaustive]pub struct DynamicScalingConfiguration {
pub min_capacity: Option<i32>,
pub max_capacity: Option<i32>,
pub scale_in_cooldown: Option<i32>,
pub scale_out_cooldown: Option<i32>,
pub scaling_policies: Option<Vec<ScalingPolicy>>,
}
Expand description
An object with the recommended values for you to specify when creating an autoscaling policy.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.min_capacity: Option<i32>
The recommended minimum capacity to specify for your autoscaling policy.
max_capacity: Option<i32>
The recommended maximum capacity to specify for your autoscaling policy.
scale_in_cooldown: Option<i32>
The recommended scale in cooldown time for your autoscaling policy.
scale_out_cooldown: Option<i32>
The recommended scale out cooldown time for your autoscaling policy.
scaling_policies: Option<Vec<ScalingPolicy>>
An object of the scaling policies for each metric.
Implementations§
source§impl DynamicScalingConfiguration
impl DynamicScalingConfiguration
sourcepub fn min_capacity(&self) -> Option<i32>
pub fn min_capacity(&self) -> Option<i32>
The recommended minimum capacity to specify for your autoscaling policy.
sourcepub fn max_capacity(&self) -> Option<i32>
pub fn max_capacity(&self) -> Option<i32>
The recommended maximum capacity to specify for your autoscaling policy.
sourcepub fn scale_in_cooldown(&self) -> Option<i32>
pub fn scale_in_cooldown(&self) -> Option<i32>
The recommended scale in cooldown time for your autoscaling policy.
sourcepub fn scale_out_cooldown(&self) -> Option<i32>
pub fn scale_out_cooldown(&self) -> Option<i32>
The recommended scale out cooldown time for your autoscaling policy.
sourcepub fn scaling_policies(&self) -> &[ScalingPolicy]
pub fn scaling_policies(&self) -> &[ScalingPolicy]
An object of the scaling policies for each metric.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .scaling_policies.is_none()
.
source§impl DynamicScalingConfiguration
impl DynamicScalingConfiguration
sourcepub fn builder() -> DynamicScalingConfigurationBuilder
pub fn builder() -> DynamicScalingConfigurationBuilder
Creates a new builder-style object to manufacture DynamicScalingConfiguration
.
Trait Implementations§
source§impl Clone for DynamicScalingConfiguration
impl Clone for DynamicScalingConfiguration
source§fn clone(&self) -> DynamicScalingConfiguration
fn clone(&self) -> DynamicScalingConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DynamicScalingConfiguration
impl Debug for DynamicScalingConfiguration
source§impl PartialEq for DynamicScalingConfiguration
impl PartialEq for DynamicScalingConfiguration
source§fn eq(&self, other: &DynamicScalingConfiguration) -> bool
fn eq(&self, other: &DynamicScalingConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.