Struct aws_sdk_autoscaling::operation::rollback_instance_refresh::builders::RollbackInstanceRefreshFluentBuilder
source · pub struct RollbackInstanceRefreshFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to RollbackInstanceRefresh.
Cancels an instance refresh that is in progress and rolls back any changes that it made. Amazon EC2 Auto Scaling replaces any instances that were replaced during the instance refresh. This restores your Auto Scaling group to the configuration that it was using before the start of the instance refresh.
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.
A rollback is not supported in the following situations:
-
There is no desired configuration specified for the instance refresh.
-
The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter instead of an AMI ID for the
ImageIdproperty. -
The Auto Scaling group uses the launch template's
$Latestor$Defaultversion.
When you receive a successful response from this operation, Amazon EC2 Auto Scaling immediately begins replacing instances. You can check the status of this operation through the DescribeInstanceRefreshes API operation.
Implementations§
source§impl RollbackInstanceRefreshFluentBuilder
impl RollbackInstanceRefreshFluentBuilder
sourcepub fn as_input(&self) -> &RollbackInstanceRefreshInputBuilder
pub fn as_input(&self) -> &RollbackInstanceRefreshInputBuilder
Access the RollbackInstanceRefresh as a reference.
sourcepub async fn send(
self
) -> Result<RollbackInstanceRefreshOutput, SdkError<RollbackInstanceRefreshError, HttpResponse>>
pub async fn send( self ) -> Result<RollbackInstanceRefreshOutput, SdkError<RollbackInstanceRefreshError, 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<RollbackInstanceRefreshOutput, RollbackInstanceRefreshError, Self>
pub fn customize( self ) -> CustomizableOperation<RollbackInstanceRefreshOutput, RollbackInstanceRefreshError, 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 RollbackInstanceRefreshFluentBuilder
impl Clone for RollbackInstanceRefreshFluentBuilder
source§fn clone(&self) -> RollbackInstanceRefreshFluentBuilder
fn clone(&self) -> RollbackInstanceRefreshFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more