:doc:`CloudTrail <../../cloudtrail>` / Paginator / ListImportFailures

******************
ListImportFailures
******************



.. py:class:: CloudTrail.Paginator.ListImportFailures

  ::

    
    paginator = client.get_paginator('list_import_failures')

  
  

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

    Creates an iterator that will paginate through responses from :py:meth:`CloudTrail.Client.list_import_failures`.

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


    **Request Syntax**
    ::

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

      The ID of the import.

      

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

      
      ::

        {
            'Failures': [
                {
                    'Location': 'string',
                    'Status': 'FAILED'|'RETRY'|'SUCCEEDED',
                    'ErrorType': 'string',
                    'ErrorMessage': 'string',
                    'LastUpdatedTime': datetime(2015, 1, 1)
                },
            ],
            
        }
        
      **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.

              
        
      
    