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

********************
list_import_failures
********************



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

  

  Returns a list of failures for the specified import.

  

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


  **Request Syntax**
  ::

    response = client.list_import_failures(
        ImportId='string',
        MaxResults=123,
        NextToken='string'
    )
    
  :type ImportId: string
  :param ImportId: **[REQUIRED]** 

    The ID of the import.

    

  
  :type MaxResults: integer
  :param MaxResults: 

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

    

  
  :type NextToken: string
  :param NextToken: 

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

    

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

    
    ::

      {
          'Failures': [
              {
                  'Location': 'string',
                  'Status': 'FAILED'|'RETRY'|'SUCCEEDED',
                  'ErrorType': 'string',
                  'ErrorMessage': 'string',
                  'LastUpdatedTime': datetime(2015, 1, 1)
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Failures** *(list) --* 

        Contains information about the import failures.

        
        

        - *(dict) --* 

          Provides information about an import failure.

          
          

          - **Location** *(string) --* 

            The location of the failure in the S3 bucket.

            
          

          - **Status** *(string) --* 

            The status of the import.

            
          

          - **ErrorType** *(string) --* 

            The type of import error.

            
          

          - **ErrorMessage** *(string) --* 

            Provides the reason the import failed.

            
          

          - **LastUpdatedTime** *(datetime) --* 

            When the import was last updated.

            
      
    
      

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

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

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

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

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

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

  