:doc:`MigrationHubStrategyRecommendations <../../migrationhubstrategy>` / Client / list_import_file_task

*********************
list_import_file_task
*********************



.. py:method:: MigrationHubStrategyRecommendations.Client.list_import_file_task(**kwargs)

  

  Retrieves a list of all the imports performed.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/ListImportFileTask>`_  


  **Request Syntax**
  ::

    response = client.list_import_file_task(
        maxResults=123,
        nextToken='string'
    )
    
  :type maxResults: integer
  :param maxResults: 

    The total number of items to return. The maximum value is 100.

    

  
  :type nextToken: string
  :param nextToken: 

    The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set ``maxResults`` to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.

    

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

    
    ::

      {
          'nextToken': 'string',
          'taskInfos': [
              {
                  'completionTime': datetime(2015, 1, 1),
                  'id': 'string',
                  'importName': 'string',
                  'inputS3Bucket': 'string',
                  'inputS3Key': 'string',
                  'numberOfRecordsFailed': 123,
                  'numberOfRecordsSuccess': 123,
                  'startTime': datetime(2015, 1, 1),
                  'status': 'ImportInProgress'|'ImportFailed'|'ImportPartialSuccess'|'ImportSuccess'|'DeleteInProgress'|'DeleteFailed'|'DeletePartialSuccess'|'DeleteSuccess',
                  'statusReportS3Bucket': 'string',
                  'statusReportS3Key': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        The token you use to retrieve the next set of results, or null if there are no more results.

        
      

      - **taskInfos** *(list) --* 

        Lists information about the files you import.

        
        

        - *(dict) --* 

          Information about the import file tasks you request.

          
          

          - **completionTime** *(datetime) --* 

            The time that the import task completes.

            
          

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

            The ID of the import file task.

            
          

          - **importName** *(string) --* 

            The name of the import task given in ``StartImportFileTask``.

            
          

          - **inputS3Bucket** *(string) --* 

            The S3 bucket where the import file is located.

            
          

          - **inputS3Key** *(string) --* 

            The Amazon S3 key name of the import file.

            
          

          - **numberOfRecordsFailed** *(integer) --* 

            The number of records that failed to be imported.

            
          

          - **numberOfRecordsSuccess** *(integer) --* 

            The number of records successfully imported.

            
          

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

            Start time of the import task.

            
          

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

            Status of import file task.

            
          

          - **statusReportS3Bucket** *(string) --* 

            The S3 bucket name for status report of import task.

            
          

          - **statusReportS3Key** *(string) --* 

            The Amazon S3 key name for status report of import task. The report contains details about whether each record imported successfully or why it did not.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException`

  
  *   :py:class:`MigrationHubStrategyRecommendations.Client.exceptions.ValidationException`

  
  *   :py:class:`MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException`

  