Struct aws_sdk_opsworks::input::SetLoadBasedAutoScalingInput [−][src]
#[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
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetLoadBasedAutoScaling, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetLoadBasedAutoScaling, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<SetLoadBasedAutoScaling
>
Creates a new builder-style object to manufacture SetLoadBasedAutoScalingInput
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.
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.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for SetLoadBasedAutoScalingInput
impl Sync for SetLoadBasedAutoScalingInput
impl Unpin for SetLoadBasedAutoScalingInput
impl UnwindSafe for SetLoadBasedAutoScalingInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more