#[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 ==
.impl StructuralPartialEq for DynamicScalingConfiguration
Auto Trait Implementations§
impl Freeze for DynamicScalingConfiguration
impl RefUnwindSafe for DynamicScalingConfiguration
impl Send for DynamicScalingConfiguration
impl Sync for DynamicScalingConfiguration
impl Unpin for DynamicScalingConfiguration
impl UnwindSafe for DynamicScalingConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more