:doc:`CodeDeploy <../../codedeploy>` / Paginator / ListDeploymentTargets

*********************
ListDeploymentTargets
*********************



.. py:class:: CodeDeploy.Paginator.ListDeploymentTargets

  ::

    
    paginator = client.get_paginator('list_deployment_targets')

  
  

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

    Creates an iterator that will paginate through responses from :py:meth:`CodeDeploy.Client.list_deployment_targets`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentTargets>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          deploymentId='string',
          targetFilters={
              'string': [
                  'string',
              ]
          },
          PaginationConfig={
              'MaxItems': 123,
              'StartingToken': 'string'
          }
      )
      
    :type deploymentId: string
    :param deploymentId: **[REQUIRED]** 

      The unique ID of a deployment.

      

    
    :type targetFilters: dict
    :param targetFilters: 

      A key used to filter the returned targets. The two valid values are:

       

      
      * ``TargetStatus`` - A ``TargetStatus`` filter string can be ``Failed``, ``InProgress``, ``Pending``, ``Ready``, ``Skipped``, ``Succeeded``, or ``Unknown``.
       
      * ``ServerInstanceLabel`` - A ``ServerInstanceLabel`` filter string can be ``Blue`` or ``Green``.
      

      

    
      - *(string) --* 

      
        - *(list) --* 

        
          - *(string) --* 

          
      
  

    :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.

        

      
      - **StartingToken** *(string) --* 

        A token to specify where to start paginating. This is the ``NextToken`` from a previous response.

        

      
    
    
    :rtype: dict
    :returns: 
      
      **Response Syntax**

      
      ::

        {
            'targetIds': [
                'string',
            ],
            'NextToken': 'string'
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **targetIds** *(list) --* 

          The unique IDs of deployment targets.

          
          

          - *(string) --* 
      
        

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

          A token to resume pagination.

          
    