ECS / Paginator / ListTaskDefinitions
ListTaskDefinitions¶
- class 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' } ) - Parameters:
- familyPrefix (string) – The full family name to filter the - ListTaskDefinitionsresults with. Specifying a- familyPrefixlimits the listed task definitions to task definition revisions that belong to that family.
- status (string) – The task definition status to filter the - ListTaskDefinitionsresults with. By default, only- ACTIVEtask definitions are listed. By setting this parameter to- INACTIVE, you can view task definitions that are- INACTIVEas long as an active task or service still references them. If you paginate the resulting output, be sure to keep the- statusvalue constant in each subsequent request.
- sort (string) – The order to sort the results in. Valid values are - ASCand- 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- DESCreverses the sort order on family name and revision. This is so that the newest task definitions in a family are listed first.
- PaginationConfig (dict) – - A dictionary that provides parameters to control pagination. - MaxItems (integer) – - 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 - NextTokenwill be provided in the output that you can use to resume pagination.
- PageSize (integer) – - The size of each page. 
- StartingToken (string) – - A token to specify where to start paginating. This is the - NextTokenfrom a previous response.
 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'taskDefinitionArns': [ 'string', ], 'NextToken': 'string' } - Response Structure- (dict) – - taskDefinitionArns (list) – - The list of task definition Amazon Resource Name (ARN) entries for the - ListTaskDefinitionsrequest.- (string) – 
 
- NextToken (string) – - A token to resume pagination.