:doc:`ECS <../../ecs>` / Paginator / ListTaskDefinitions

*******************
ListTaskDefinitions
*******************



.. py:class:: ECS.Paginator.ListTaskDefinitions

  ::

    
    paginator = client.get_paginator('list_task_definitions')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`ECS.Client.list_task_definitions`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTaskDefinitions>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          familyPrefix='string',
          status='ACTIVE'|'INACTIVE'|'DELETE_IN_PROGRESS',
          sort='ASC'|'DESC',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type familyPrefix: string
    :param familyPrefix: 

      The full family name to filter the ``ListTaskDefinitions`` results with. Specifying a ``familyPrefix`` limits the listed task definitions to task definition revisions that belong to that family.

      

    
    :type status: string
    :param status: 

      The task definition status to filter the ``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.

      

    
    :type sort: string
    :param sort: 

      The order to sort the results in. Valid values are ``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.

      

    
    :type PaginationConfig: dict
    :param PaginationConfig: 

      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 ``NextToken`` will 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 ``NextToken`` from a previous response.

        

      
    
    
    :rtype: 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 ``ListTaskDefinitions`` request.

          
          

          - *(string) --* 
      
        

        - **NextToken** *(string) --* 

          A token to resume pagination.

          
    