ECS.Paginator.
ListTaskDefinitions
¶paginator = client.get_paginator('list_task_definitions')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from ECS.Client.list_task_definitions()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
familyPrefix='string',
status='ACTIVE'|'INACTIVE'|'DELETE_IN_PROGRESS',
sort='ASC'|'DESC',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
ListTaskDefinitions
results with. Specifying a familyPrefix
limits the listed task definitions to task definition revisions that belong to that family.ListTaskDefinitions
results with. By default, only ACTIVE
task definitions are listed. By setting this parameter to INACTIVE
, you can view task definitions that are INACTIVE
as long as an active task or service still references them. If you paginate the resulting output, be sure to keep the status
value constant in each subsequent request.ASC
and DESC
. By default, ( ASC
) task definitions are listed lexicographically by family name and in ascending numerical order by revision so that the newest task definitions in a family are listed last. Setting this parameter to DESC
reverses the sort order on family name and revision. This is so that the newest task definitions in a family are listed first.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
{
'taskDefinitionArns': [
'string',
],
'NextToken': 'string'
}
Response Structure
(dict) --
taskDefinitionArns (list) --
The list of task definition Amazon Resource Name (ARN) entries for the ListTaskDefinitions
request.
NextToken (string) --
A token to resume pagination.