#[non_exhaustive]pub struct SuspendedState {
pub dynamic_scaling_in_suspended: Option<bool>,
pub dynamic_scaling_out_suspended: Option<bool>,
pub scheduled_scaling_suspended: Option<bool>,
}
Expand description
Specifies whether the scaling activities for a scalable target are in a suspended state.
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.dynamic_scaling_in_suspended: Option<bool>
Whether scale in by a target tracking scaling policy or a step scaling policy is suspended. Set the value to true
if you don't want Application Auto Scaling to remove capacity when a scaling policy is triggered. The default is false
.
dynamic_scaling_out_suspended: Option<bool>
Whether scale out by a target tracking scaling policy or a step scaling policy is suspended. Set the value to true
if you don't want Application Auto Scaling to add capacity when a scaling policy is triggered. The default is false
.
scheduled_scaling_suspended: Option<bool>
Whether scheduled scaling is suspended. Set the value to true
if you don't want Application Auto Scaling to add or remove capacity by initiating scheduled actions. The default is false
.
Implementations§
source§impl SuspendedState
impl SuspendedState
sourcepub fn dynamic_scaling_in_suspended(&self) -> Option<bool>
pub fn dynamic_scaling_in_suspended(&self) -> Option<bool>
Whether scale in by a target tracking scaling policy or a step scaling policy is suspended. Set the value to true
if you don't want Application Auto Scaling to remove capacity when a scaling policy is triggered. The default is false
.
sourcepub fn dynamic_scaling_out_suspended(&self) -> Option<bool>
pub fn dynamic_scaling_out_suspended(&self) -> Option<bool>
Whether scale out by a target tracking scaling policy or a step scaling policy is suspended. Set the value to true
if you don't want Application Auto Scaling to add capacity when a scaling policy is triggered. The default is false
.
sourcepub fn scheduled_scaling_suspended(&self) -> Option<bool>
pub fn scheduled_scaling_suspended(&self) -> Option<bool>
Whether scheduled scaling is suspended. Set the value to true
if you don't want Application Auto Scaling to add or remove capacity by initiating scheduled actions. The default is false
.
source§impl SuspendedState
impl SuspendedState
sourcepub fn builder() -> SuspendedStateBuilder
pub fn builder() -> SuspendedStateBuilder
Creates a new builder-style object to manufacture SuspendedState
.
Trait Implementations§
source§impl Clone for SuspendedState
impl Clone for SuspendedState
source§fn clone(&self) -> SuspendedState
fn clone(&self) -> SuspendedState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SuspendedState
impl Debug for SuspendedState
source§impl PartialEq for SuspendedState
impl PartialEq for SuspendedState
source§fn eq(&self, other: &SuspendedState) -> bool
fn eq(&self, other: &SuspendedState) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SuspendedState
Auto Trait Implementations§
impl Freeze for SuspendedState
impl RefUnwindSafe for SuspendedState
impl Send for SuspendedState
impl Sync for SuspendedState
impl Unpin for SuspendedState
impl UnwindSafe for SuspendedState
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> 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