pub struct SetDesiredCapacity { /* private fields */ }Expand description
Fluent builder constructing a request to SetDesiredCapacity.
Sets the size of the specified Auto Scaling group.
If a scale-in activity occurs as a result of a new DesiredCapacity value that is lower than the current size of the group, the Auto Scaling group uses its termination policy to determine which instances to terminate.
For more information, see Manual scaling in the Amazon EC2 Auto Scaling User Guide.
Implementations§
source§impl SetDesiredCapacity
impl SetDesiredCapacity
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<SetDesiredCapacity, AwsResponseRetryClassifier>, SdkError<SetDesiredCapacityError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<SetDesiredCapacity, AwsResponseRetryClassifier>, SdkError<SetDesiredCapacityError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<SetDesiredCapacityOutput, SdkError<SetDesiredCapacityError>>
pub async fn send(
self
) -> Result<SetDesiredCapacityOutput, SdkError<SetDesiredCapacityError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn auto_scaling_group_name(self, input: impl Into<String>) -> Self
pub fn auto_scaling_group_name(self, input: impl Into<String>) -> Self
The name of the Auto Scaling group.
sourcepub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
pub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
The name of the Auto Scaling group.
sourcepub fn desired_capacity(self, input: i32) -> Self
pub fn desired_capacity(self, input: i32) -> Self
The desired capacity is the initial capacity of the Auto Scaling group after this operation completes and the capacity it attempts to maintain.
sourcepub fn set_desired_capacity(self, input: Option<i32>) -> Self
pub fn set_desired_capacity(self, input: Option<i32>) -> Self
The desired capacity is the initial capacity of the Auto Scaling group after this operation completes and the capacity it attempts to maintain.
sourcepub fn honor_cooldown(self, input: bool) -> Self
pub fn honor_cooldown(self, input: bool) -> Self
Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete before initiating a scaling activity to set your Auto Scaling group to its new capacity. By default, Amazon EC2 Auto Scaling does not honor the cooldown period during manual scaling activities.
sourcepub fn set_honor_cooldown(self, input: Option<bool>) -> Self
pub fn set_honor_cooldown(self, input: Option<bool>) -> Self
Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete before initiating a scaling activity to set your Auto Scaling group to its new capacity. By default, Amazon EC2 Auto Scaling does not honor the cooldown period during manual scaling activities.
Trait Implementations§
source§impl Clone for SetDesiredCapacity
impl Clone for SetDesiredCapacity
source§fn clone(&self) -> SetDesiredCapacity
fn clone(&self) -> SetDesiredCapacity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more