Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets information about the instance refreshes for the specified Auto Scaling group.
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, this operation returns information about the instance refreshes you previously initiated, including their status, 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.
The following are the possible statuses:
Pending
- The request was created, but the operation has not started.InProgress
- The operation is in progress.Successful
- The operation completed successfully.Failed
- The operation failed to complete. You can troubleshoot using the status reason and the scaling activities.Cancelling
- An ongoing operation is being cancelled. Cancellation does not roll back any replacements that have already been completed, but it prevents new replacements from being started.Cancelled
- The operation is cancelled.
Synopsis
- data DescribeInstanceRefreshes = DescribeInstanceRefreshes' {}
- newDescribeInstanceRefreshes :: Text -> DescribeInstanceRefreshes
- describeInstanceRefreshes_nextToken :: Lens' DescribeInstanceRefreshes (Maybe Text)
- describeInstanceRefreshes_maxRecords :: Lens' DescribeInstanceRefreshes (Maybe Int)
- describeInstanceRefreshes_instanceRefreshIds :: Lens' DescribeInstanceRefreshes (Maybe [Text])
- describeInstanceRefreshes_autoScalingGroupName :: Lens' DescribeInstanceRefreshes Text
- data DescribeInstanceRefreshesResponse = DescribeInstanceRefreshesResponse' {}
- newDescribeInstanceRefreshesResponse :: Int -> DescribeInstanceRefreshesResponse
- describeInstanceRefreshesResponse_nextToken :: Lens' DescribeInstanceRefreshesResponse (Maybe Text)
- describeInstanceRefreshesResponse_instanceRefreshes :: Lens' DescribeInstanceRefreshesResponse (Maybe [InstanceRefresh])
- describeInstanceRefreshesResponse_httpStatus :: Lens' DescribeInstanceRefreshesResponse Int
Creating a Request
data DescribeInstanceRefreshes Source #
See: newDescribeInstanceRefreshes
smart constructor.
DescribeInstanceRefreshes' | |
|
Instances
newDescribeInstanceRefreshes Source #
Create a value of DescribeInstanceRefreshes
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:DescribeInstanceRefreshes'
, describeInstanceRefreshes_nextToken
- The token for the next set of items to return. (You received this token
from a previous call.)
$sel:maxRecords:DescribeInstanceRefreshes'
, describeInstanceRefreshes_maxRecords
- The maximum number of items to return with this call. The default value
is 50
and the maximum value is 100
.
$sel:instanceRefreshIds:DescribeInstanceRefreshes'
, describeInstanceRefreshes_instanceRefreshIds
- One or more instance refresh IDs.
$sel:autoScalingGroupName:DescribeInstanceRefreshes'
, describeInstanceRefreshes_autoScalingGroupName
- The name of the Auto Scaling group.
Request Lenses
describeInstanceRefreshes_nextToken :: Lens' DescribeInstanceRefreshes (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
describeInstanceRefreshes_maxRecords :: Lens' DescribeInstanceRefreshes (Maybe Int) Source #
The maximum number of items to return with this call. The default value
is 50
and the maximum value is 100
.
describeInstanceRefreshes_instanceRefreshIds :: Lens' DescribeInstanceRefreshes (Maybe [Text]) Source #
One or more instance refresh IDs.
describeInstanceRefreshes_autoScalingGroupName :: Lens' DescribeInstanceRefreshes Text Source #
The name of the Auto Scaling group.
Destructuring the Response
data DescribeInstanceRefreshesResponse Source #
See: newDescribeInstanceRefreshesResponse
smart constructor.
DescribeInstanceRefreshesResponse' | |
|
Instances
newDescribeInstanceRefreshesResponse Source #
Create a value of DescribeInstanceRefreshesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:DescribeInstanceRefreshes'
, describeInstanceRefreshesResponse_nextToken
- A string that indicates that the response contains more items than can
be returned in a single response. To receive additional items, specify
this string for the NextToken
value when requesting the next set of
items. This value is null when there are no more items to return.
$sel:instanceRefreshes:DescribeInstanceRefreshesResponse'
, describeInstanceRefreshesResponse_instanceRefreshes
- The instance refreshes for the specified group.
$sel:httpStatus:DescribeInstanceRefreshesResponse'
, describeInstanceRefreshesResponse_httpStatus
- The response's http status code.
Response Lenses
describeInstanceRefreshesResponse_nextToken :: Lens' DescribeInstanceRefreshesResponse (Maybe Text) Source #
A string that indicates that the response contains more items than can
be returned in a single response. To receive additional items, specify
this string for the NextToken
value when requesting the next set of
items. This value is null when there are no more items to return.
describeInstanceRefreshesResponse_instanceRefreshes :: Lens' DescribeInstanceRefreshesResponse (Maybe [InstanceRefresh]) Source #
The instance refreshes for the specified group.
describeInstanceRefreshesResponse_httpStatus :: Lens' DescribeInstanceRefreshesResponse Int Source #
The response's http status code.