MigrationHubStrategyRecommendations / Client / list_import_file_task
list_import_file_task#
- MigrationHubStrategyRecommendations.Client.list_import_file_task(**kwargs)#
Retrieves a list of all the imports performed.
See also: AWS API Documentation
Request Syntax
response = client.list_import_file_task( maxResults=123, nextToken='string' )
- Parameters:
maxResults (integer) – The total number of items to return. The maximum value is 100.
nextToken (string) – 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.
- Return type:
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
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException