#[non_exhaustive]pub struct TerminateInstanceInAutoScalingGroupInput { /* private fields */ }Implementations§
source§impl TerminateInstanceInAutoScalingGroupInput
impl TerminateInstanceInAutoScalingGroupInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TerminateInstanceInAutoScalingGroup, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TerminateInstanceInAutoScalingGroup, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<TerminateInstanceInAutoScalingGroup>
Examples found in repository?
src/client.rs (line 7942)
7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::TerminateInstanceInAutoScalingGroup,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::TerminateInstanceInAutoScalingGroupError,
>,
> {
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::TerminateInstanceInAutoScalingGroupOutput,
aws_smithy_http::result::SdkError<
crate::error::TerminateInstanceInAutoScalingGroupError,
>,
> {
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 TerminateInstanceInAutoScalingGroupInput.
source§impl TerminateInstanceInAutoScalingGroupInput
impl TerminateInstanceInAutoScalingGroupInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance.
sourcepub fn should_decrement_desired_capacity(&self) -> Option<bool>
pub fn should_decrement_desired_capacity(&self) -> Option<bool>
Indicates whether terminating the instance also decrements the size of the Auto Scaling group.
Trait Implementations§
source§impl Clone for TerminateInstanceInAutoScalingGroupInput
impl Clone for TerminateInstanceInAutoScalingGroupInput
source§fn clone(&self) -> TerminateInstanceInAutoScalingGroupInput
fn clone(&self) -> TerminateInstanceInAutoScalingGroupInput
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