#[non_exhaustive]pub struct SetDesiredCapacityInput { /* private fields */ }Implementations§
source§impl SetDesiredCapacityInput
impl SetDesiredCapacityInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetDesiredCapacity, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetDesiredCapacity, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<SetDesiredCapacity>
Examples found in repository?
src/client.rs (line 7393)
7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::SetDesiredCapacity,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::SetDesiredCapacityError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SetDesiredCapacityOutput,
aws_smithy_http::result::SdkError<crate::error::SetDesiredCapacityError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SetDesiredCapacityInput.
source§impl SetDesiredCapacityInput
impl SetDesiredCapacityInput
sourcepub fn auto_scaling_group_name(&self) -> Option<&str>
pub fn auto_scaling_group_name(&self) -> Option<&str>
The name of the Auto Scaling group.
sourcepub fn desired_capacity(&self) -> Option<i32>
pub fn desired_capacity(&self) -> Option<i32>
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) -> Option<bool>
pub fn honor_cooldown(&self) -> Option<bool>
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 SetDesiredCapacityInput
impl Clone for SetDesiredCapacityInput
source§fn clone(&self) -> SetDesiredCapacityInput
fn clone(&self) -> SetDesiredCapacityInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more