2025/09/09 - Auto Scaling - 1 updated api methods
Changes Added WaitForTransitioningInstances parameter to the CancelInstanceRefresh API, allowing the caller to cancel an instance refresh without waiting for on-going launches and terminations.
{'WaitForTransitioningInstances': 'boolean'}
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.
See also: AWS API Documentation
Request Syntax
client.cancel_instance_refresh( AutoScalingGroupName='string', WaitForTransitioningInstances=True|False )
string
[REQUIRED]
The name of the Auto Scaling group.
boolean
When cancelling an instance refresh, this indicates whether to wait for in-flight launches and terminations to complete. The default is true.
When set to false, Amazon EC2 Auto Scaling cancels the instance refresh without waiting for any pending launches or terminations to complete.
dict
Response Syntax
{ 'InstanceRefreshId': 'string' }
Response Structure
(dict) --
InstanceRefreshId (string) --
The instance refresh ID associated with the request. This is the unique ID assigned to the instance refresh when it was started.