:doc:`SnowDeviceManagement <../../snow-device-management>` / Paginator / ListExecutions

**************
ListExecutions
**************



.. py:class:: SnowDeviceManagement.Paginator.ListExecutions

  ::

    
    paginator = client.get_paginator('list_executions')

  
  

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

    Creates an iterator that will paginate through responses from :py:meth:`SnowDeviceManagement.Client.list_executions`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/snow-device-management-2021-08-04/ListExecutions>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          state='QUEUED'|'IN_PROGRESS'|'CANCELED'|'FAILED'|'SUCCEEDED'|'REJECTED'|'TIMED_OUT',
          taskId='string',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type state: string
    :param state: 

      A structure used to filter the tasks by their current state.

      

    
    :type taskId: string
    :param taskId: **[REQUIRED]** 

      The ID of the task.

      

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

      
      ::

        {
            'executions': [
                {
                    'executionId': 'string',
                    'managedDeviceId': 'string',
                    'state': 'QUEUED'|'IN_PROGRESS'|'CANCELED'|'FAILED'|'SUCCEEDED'|'REJECTED'|'TIMED_OUT',
                    'taskId': 'string'
                },
            ],
            'NextToken': 'string'
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **executions** *(list) --* 

          A list of executions. Each execution contains the task ID, the device that the task is executing on, the execution ID, and the status of the execution.

          
          

          - *(dict) --* 

            The summary of a task execution on a specified device.

            
            

            - **executionId** *(string) --* 

              The ID of the execution.

              
            

            - **managedDeviceId** *(string) --* 

              The ID of the managed device that the task is being executed on.

              
            

            - **state** *(string) --* 

              The state of the execution.

              
            

            - **taskId** *(string) --* 

              The ID of the task.

              
        
      
        

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

          A token to resume pagination.

          
    