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 ==.