AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Gets information about the instance refreshes for the specified Auto Scaling group from the previous six weeks.
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.
To help you determine the status of an instance refresh, Amazon EC2 Auto Scaling returns information about the instance refreshes you previously initiated, including their status, start time, end time, the percentage of the instance refresh that is complete, and the number of instances remaining to update before the instance refresh is complete. If a rollback is initiated while an instance refresh is in progress, Amazon EC2 Auto Scaling also returns information about the rollback of the instance refresh.
For .NET Core this operation is only available in asynchronous form. Please refer to DescribeInstanceRefreshesAsync.
Namespace: Amazon.AutoScaling
Assembly: AWSSDK.AutoScaling.dll
Version: 3.x.y.z
public virtual DescribeInstanceRefreshesResponse DescribeInstanceRefreshes( DescribeInstanceRefreshesRequest request )
Container for the necessary parameters to execute the DescribeInstanceRefreshes service method.
Exception | Condition |
---|---|
InvalidNextTokenException | The NextToken value is not valid. |
ResourceContentionException | You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer). |
This example describes the instance refreshes for the specified Auto Scaling group.
var client = new AmazonAutoScalingClient(); var response = client.DescribeInstanceRefreshes(new DescribeInstanceRefreshesRequest { AutoScalingGroupName = "my-auto-scaling-group" }); List<InstanceRefresh> instanceRefreshes = response.InstanceRefreshes;
.NET Framework:
Supported in: 4.5 and newer, 3.5