:doc:`CloudTrail <../../cloudtrail>` / Client / list_imports

************
list_imports
************



.. py:method:: CloudTrail.Client.list_imports(**kwargs)

  

  Returns information on all imports, or a select set of imports by ``ImportStatus`` or ``Destination``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListImports>`_  


  **Request Syntax**
  ::

    response = client.list_imports(
        MaxResults=123,
        Destination='string',
        ImportStatus='INITIALIZING'|'IN_PROGRESS'|'FAILED'|'STOPPED'|'COMPLETED',
        NextToken='string'
    )
    
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of imports to display on a single page.

    

  
  :type Destination: string
  :param Destination: 

    The ARN of the destination event data store.

    

  
  :type ImportStatus: string
  :param ImportStatus: 

    The status of the import.

    

  
  :type NextToken: string
  :param NextToken: 

    A token you can use to get the next page of import results.

    

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

    
    ::

      {
          'Imports': [
              {
                  'ImportId': 'string',
                  'ImportStatus': 'INITIALIZING'|'IN_PROGRESS'|'FAILED'|'STOPPED'|'COMPLETED',
                  'Destinations': [
                      'string',
                  ],
                  'CreatedTimestamp': datetime(2015, 1, 1),
                  'UpdatedTimestamp': datetime(2015, 1, 1)
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Imports** *(list) --* 

        The list of returned imports.

        
        

        - *(dict) --* 

          Contains information about an import that was returned by a lookup request.

          
          

          - **ImportId** *(string) --* 

            The ID of the import.

            
          

          - **ImportStatus** *(string) --* 

            The status of the import.

            
          

          - **Destinations** *(list) --* 

            The ARN of the destination event data store.

            
            

            - *(string) --* 
        
          

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

            The timestamp of the import's creation.

            
          

          - **UpdatedTimestamp** *(datetime) --* 

            The timestamp of the import's last update.

            
      
    
      

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

        A token you can use to get the next page of import results.

        
  
  **Exceptions**
  
  *   :py:class:`CloudTrail.Client.exceptions.EventDataStoreARNInvalidException`

  
  *   :py:class:`CloudTrail.Client.exceptions.InvalidNextTokenException`

  
  *   :py:class:`CloudTrail.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`CloudTrail.Client.exceptions.OperationNotPermittedException`

  
  *   :py:class:`CloudTrail.Client.exceptions.UnsupportedOperationException`

  