:doc:`SESV2 <../../sesv2>` / Client / list_export_jobs

****************
list_export_jobs
****************



.. py:method:: SESV2.Client.list_export_jobs(**kwargs)

  

  Lists all of the export jobs.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/ListExportJobs>`_  


  **Request Syntax**
  ::

    response = client.list_export_jobs(
        NextToken='string',
        PageSize=123,
        ExportSourceType='METRICS_DATA'|'MESSAGE_INSIGHTS',
        JobStatus='CREATED'|'PROCESSING'|'COMPLETED'|'FAILED'|'CANCELLED'
    )
    
  :type NextToken: string
  :param NextToken: 

    The pagination token returned from a previous call to ``ListExportJobs`` to indicate the position in the list of export jobs.

    

  
  :type PageSize: integer
  :param PageSize: 

    Maximum number of export jobs to return at once. Use this parameter to paginate results. If additional export jobs exist beyond the specified limit, the ``NextToken`` element is sent in the response. Use the ``NextToken`` value in subsequent calls to ``ListExportJobs`` to retrieve additional export jobs.

    

  
  :type ExportSourceType: string
  :param ExportSourceType: 

    A value used to list export jobs that have a certain ``ExportSourceType``.

    

  
  :type JobStatus: string
  :param JobStatus: 

    A value used to list export jobs that have a certain ``JobStatus``.

    

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

    
    ::

      {
          'ExportJobs': [
              {
                  'JobId': 'string',
                  'ExportSourceType': 'METRICS_DATA'|'MESSAGE_INSIGHTS',
                  'JobStatus': 'CREATED'|'PROCESSING'|'COMPLETED'|'FAILED'|'CANCELLED',
                  'CreatedTimestamp': datetime(2015, 1, 1),
                  'CompletedTimestamp': datetime(2015, 1, 1)
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      An HTTP 200 response if the request succeeds, or an error message if the request fails.

      
      

      - **ExportJobs** *(list) --* 

        A list of the export job summaries.

        
        

        - *(dict) --* 

          A summary of the export job.

          
          

          - **JobId** *(string) --* 

            The export job ID.

            
          

          - **ExportSourceType** *(string) --* 

            The source type of the export job.

            
          

          - **JobStatus** *(string) --* 

            The status of the export job.

            
          

          - **CreatedTimestamp** *(datetime) --* 

            The timestamp of when the export job was created.

            
          

          - **CompletedTimestamp** *(datetime) --* 

            The timestamp of when the export job was completed.

            
      
    
      

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

        A string token indicating that there might be additional export jobs available to be listed. Use this token to a subsequent call to ``ListExportJobs`` with the same parameters to retrieve the next page of export jobs.

        
  
  **Exceptions**
  
  *   :py:class:`SESV2.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`SESV2.Client.exceptions.BadRequestException`

  