Struct aws_sdk_opsworks::operation::set_load_based_auto_scaling::SetLoadBasedAutoScalingInput
source · #[non_exhaustive]pub struct SetLoadBasedAutoScalingInput {
pub layer_id: Option<String>,
pub enable: Option<bool>,
pub up_scaling: Option<AutoScalingThresholds>,
pub down_scaling: Option<AutoScalingThresholds>,
}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.layer_id: Option<String>The layer ID.
enable: Option<bool>Enables load-based auto scaling for the layer.
up_scaling: Option<AutoScalingThresholds>An AutoScalingThresholds object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks Stacks starts a specified number of instances.
down_scaling: Option<AutoScalingThresholds>An AutoScalingThresholds object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks Stacks stops a specified number of instances.
Implementations§
source§impl SetLoadBasedAutoScalingInput
impl SetLoadBasedAutoScalingInput
sourcepub fn up_scaling(&self) -> Option<&AutoScalingThresholds>
pub fn up_scaling(&self) -> Option<&AutoScalingThresholds>
An AutoScalingThresholds object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks Stacks starts a specified number of instances.
sourcepub fn down_scaling(&self) -> Option<&AutoScalingThresholds>
pub fn down_scaling(&self) -> Option<&AutoScalingThresholds>
An AutoScalingThresholds object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks Stacks stops a specified number of instances.
source§impl SetLoadBasedAutoScalingInput
impl SetLoadBasedAutoScalingInput
sourcepub fn builder() -> SetLoadBasedAutoScalingInputBuilder
pub fn builder() -> SetLoadBasedAutoScalingInputBuilder
Creates a new builder-style object to manufacture SetLoadBasedAutoScalingInput.
Trait Implementations§
source§impl Clone for SetLoadBasedAutoScalingInput
impl Clone for SetLoadBasedAutoScalingInput
source§fn clone(&self) -> SetLoadBasedAutoScalingInput
fn clone(&self) -> SetLoadBasedAutoScalingInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SetLoadBasedAutoScalingInput
impl Debug for SetLoadBasedAutoScalingInput
source§impl PartialEq for SetLoadBasedAutoScalingInput
impl PartialEq for SetLoadBasedAutoScalingInput
source§fn eq(&self, other: &SetLoadBasedAutoScalingInput) -> bool
fn eq(&self, other: &SetLoadBasedAutoScalingInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SetLoadBasedAutoScalingInput
Auto Trait Implementations§
impl Freeze for SetLoadBasedAutoScalingInput
impl RefUnwindSafe for SetLoadBasedAutoScalingInput
impl Send for SetLoadBasedAutoScalingInput
impl Sync for SetLoadBasedAutoScalingInput
impl Unpin for SetLoadBasedAutoScalingInput
impl UnwindSafe for SetLoadBasedAutoScalingInput
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