Struct aws_sdk_autoscaling::operation::cancel_instance_refresh::builders::CancelInstanceRefreshFluentBuilder
source · pub struct CancelInstanceRefreshFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to CancelInstanceRefresh.
Cancels an instance refresh or rollback that is in progress. If an instance refresh or rollback is not in progress, an ActiveInstanceRefreshNotFound error occurs.
This operation is part of the instance refresh feature in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group after you make configuration changes.
When you cancel an instance refresh, this does not roll back any changes that it made. Use the RollbackInstanceRefresh API to roll back instead.
Implementations§
source§impl CancelInstanceRefreshFluentBuilder
impl CancelInstanceRefreshFluentBuilder
sourcepub fn as_input(&self) -> &CancelInstanceRefreshInputBuilder
pub fn as_input(&self) -> &CancelInstanceRefreshInputBuilder
Access the CancelInstanceRefresh as a reference.
sourcepub async fn send(
self
) -> Result<CancelInstanceRefreshOutput, SdkError<CancelInstanceRefreshError, HttpResponse>>
pub async fn send( self ) -> Result<CancelInstanceRefreshOutput, SdkError<CancelInstanceRefreshError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<CancelInstanceRefreshOutput, CancelInstanceRefreshError, Self>
pub fn customize( self ) -> CustomizableOperation<CancelInstanceRefreshOutput, CancelInstanceRefreshError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_auto_scaling_group_name(&self) -> &Option<String>
pub fn get_auto_scaling_group_name(&self) -> &Option<String>
The name of the Auto Scaling group.
Trait Implementations§
source§impl Clone for CancelInstanceRefreshFluentBuilder
impl Clone for CancelInstanceRefreshFluentBuilder
source§fn clone(&self) -> CancelInstanceRefreshFluentBuilder
fn clone(&self) -> CancelInstanceRefreshFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more