#[non_exhaustive]pub struct ScalableTargetAction {
pub min_capacity: Option<i32>,
pub max_capacity: Option<i32>,
}
Expand description
Represents the minimum and maximum capacity for a scheduled action.
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 minimum capacity.
When the scheduled action runs, the resource will have at least this much capacity, but it might have more depending on other settings, such as the target utilization level of a target tracking scaling policy.
max_capacity: Option<i32>
The maximum capacity.
Although you can specify a large maximum capacity, note that service quotas may impose lower limits. Each service has its own default quotas for the maximum capacity of the resource. If you want to specify a higher limit, you can request an increase. For more information, consult the documentation for that service. For information about the default quotas for each service, see Service endpoints and quotas in the Amazon Web Services General Reference.
Implementations§
source§impl ScalableTargetAction
impl ScalableTargetAction
sourcepub fn min_capacity(&self) -> Option<i32>
pub fn min_capacity(&self) -> Option<i32>
The minimum capacity.
When the scheduled action runs, the resource will have at least this much capacity, but it might have more depending on other settings, such as the target utilization level of a target tracking scaling policy.
sourcepub fn max_capacity(&self) -> Option<i32>
pub fn max_capacity(&self) -> Option<i32>
The maximum capacity.
Although you can specify a large maximum capacity, note that service quotas may impose lower limits. Each service has its own default quotas for the maximum capacity of the resource. If you want to specify a higher limit, you can request an increase. For more information, consult the documentation for that service. For information about the default quotas for each service, see Service endpoints and quotas in the Amazon Web Services General Reference.
source§impl ScalableTargetAction
impl ScalableTargetAction
sourcepub fn builder() -> ScalableTargetActionBuilder
pub fn builder() -> ScalableTargetActionBuilder
Creates a new builder-style object to manufacture ScalableTargetAction
.
Trait Implementations§
source§impl Clone for ScalableTargetAction
impl Clone for ScalableTargetAction
source§fn clone(&self) -> ScalableTargetAction
fn clone(&self) -> ScalableTargetAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScalableTargetAction
impl Debug for ScalableTargetAction
source§impl PartialEq for ScalableTargetAction
impl PartialEq for ScalableTargetAction
source§fn eq(&self, other: &ScalableTargetAction) -> bool
fn eq(&self, other: &ScalableTargetAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScalableTargetAction
Auto Trait Implementations§
impl Freeze for ScalableTargetAction
impl RefUnwindSafe for ScalableTargetAction
impl Send for ScalableTargetAction
impl Sync for ScalableTargetAction
impl Unpin for ScalableTargetAction
impl UnwindSafe for ScalableTargetAction
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