:doc:`CodeCatalyst <../../codecatalyst>` / Paginator / ListWorkflowRuns

****************
ListWorkflowRuns
****************



.. py:class:: CodeCatalyst.Paginator.ListWorkflowRuns

  ::

    
    paginator = client.get_paginator('list_workflow_runs')

  
  

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

    Creates an iterator that will paginate through responses from :py:meth:`CodeCatalyst.Client.list_workflow_runs`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/ListWorkflowRuns>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          spaceName='string',
          workflowId='string',
          projectName='string',
          sortBy=[
              {}
              ,
          ],
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type spaceName: string
    :param spaceName: **[REQUIRED]** 

      The name of the space.

      

    
    :type workflowId: string
    :param workflowId: 

      The ID of the workflow. To retrieve a list of workflow IDs, use  ListWorkflows.

      

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

      The name of the project in the space.

      

    
    :type sortBy: list
    :param sortBy: 

      Information used to sort the items in the returned list.

      

    
      - *(dict) --* 

        Information used to sort workflow runs in the returned list.

        

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

      
      ::

        {
            'items': [
                {
                    'id': 'string',
                    'workflowId': 'string',
                    'workflowName': 'string',
                    'status': 'SUCCEEDED'|'FAILED'|'STOPPED'|'SUPERSEDED'|'CANCELLED'|'NOT_RUN'|'VALIDATING'|'PROVISIONING'|'IN_PROGRESS'|'STOPPING'|'ABANDONED',
                    'statusReasons': [
                        {},
                    ],
                    'startTime': datetime(2015, 1, 1),
                    'endTime': datetime(2015, 1, 1),
                    'lastUpdatedTime': datetime(2015, 1, 1)
                },
            ],
            'NextToken': 'string'
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **items** *(list) --* 

          Information about the runs of a workflow.

          
          

          - *(dict) --* 

            Information about a workflow run.

            
            

            - **id** *(string) --* 

              The system-generated unique ID of the workflow run.

              
            

            - **workflowId** *(string) --* 

              The system-generated unique ID of the workflow.

              
            

            - **workflowName** *(string) --* 

              The name of the workflow.

              
            

            - **status** *(string) --* 

              The status of the workflow run.

              
            

            - **statusReasons** *(list) --* 

              The reasons for the workflow run status.

              
              

              - *(dict) --* 

                Information about the status of a workflow run.

                
            
          
            

            - **startTime** *(datetime) --* 

              The date and time the workflow run began, in coordinated universal time (UTC) timestamp format as specified in `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339#section-5.6>`__.

              
            

            - **endTime** *(datetime) --* 

              The date and time the workflow run ended, in coordinated universal time (UTC) timestamp format as specified in `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339#section-5.6>`__

              
            

            - **lastUpdatedTime** *(datetime) --* 

              The date and time the workflow was last updated, in coordinated universal time (UTC) timestamp format as specified in `RFC 3339 <https://www.rfc-editor.org/rfc/rfc3339#section-5.6>`__

              
        
      
        

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

          A token to resume pagination.

          
    