ECS.Paginator.
ListContainerInstances
¶paginator = client.get_paginator('list_container_instances')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from ECS.Client.list_container_instances()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
cluster='string',
filter='string',
status='ACTIVE'|'DRAINING'|'REGISTERING'|'DEREGISTERING'|'REGISTRATION_FAILED',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
ListContainerInstances
operation with cluster query language statements. For more information, see Cluster Query Language in the Amazon Elastic Container Service Developer Guide .DRAINING
status, the results include only container instances that have been set to DRAINING
using UpdateContainerInstancesState. If you don't specify this parameter, the default is to include container instances set to all states other than INACTIVE
.A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'containerInstanceArns': [
'string',
],
'NextToken': 'string'
}
Response Structure
(dict) --
containerInstanceArns (list) --
The list of container instances with full ARN entries for each container instance associated with the specified cluster.
NextToken (string) --
A token to resume pagination.