Skip to main content

import_file_tasks

Creates, updates, deletes, gets or lists an import_file_tasks resource.

Overview

Nameimport_file_tasks
TypeResource
Idaws.migrationhubstrategy.import_file_tasks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe import file task id returned in the response of StartImportFileTask. (pattern: <code>.\S.</code>)
completion_timestring (date-time)The time that the import task completed.
import_namestringThe name of the import task given in StartImportFileTask. (pattern: <code>.\S.</code>)
input_s3_bucketstringThe S3 bucket where import file is located. (pattern: <code>[0-9a-z]+[0-9a-z.-]*[0-9a-z]+</code>)
input_s3_keystringThe Amazon S3 key name of the import file. (pattern: <code>.\S.</code>)
number_of_records_failedintegerThe number of records that failed to be imported.
number_of_records_successintegerThe number of records successfully imported.
start_timestring (date-time)Start time of the import task.
statusstringStatus of import file task. (ImportInProgress, ImportFailed, ImportPartialSuccess, ImportSuccess, DeleteInProgress, DeleteFailed, DeletePartialSuccess, DeleteSuccess)
status_report_s3_bucketstringThe S3 bucket name for status report of import task. (pattern: <code>[0-9a-z]+[0-9a-z.-]*[0-9a-z]+</code>)
status_report_s3_keystringThe 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. (pattern: <code>.\S.</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_import_file_taskselectid, regionRetrieves the details about a specific import task.
list_import_file_taskselectregionmaxResults, nextTokenRetrieves a list of all the imports performed.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe ID of the import file task. This ID is returned in the response of StartImportFileTask.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe total number of items to return. The maximum value is 100.
nextTokenstringThe 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.

SELECT examples

Retrieves the details about a specific import task.

SELECT
id,
completion_time,
import_name,
input_s3_bucket,
input_s3_key,
number_of_records_failed,
number_of_records_success,
start_time,
status,
status_report_s3_bucket,
status_report_s3_key
FROM aws.migrationhubstrategy.import_file_tasks
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;