Skip to main content

imports

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

Overview

Nameimports
TypeResource
Idaws.lex_models.imports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name given to the import job. (pattern: <code>[a-zA-Z_]+</code>)
created_datestring (date-time)A timestamp for the date and time that the import job was created.
failure_reasonarrayA string that describes why an import job failed to complete.
import_idstringThe identifier for the specific import job.
import_statusstringThe status of the import job. If the status is FAILED, you can get the reason for the failure from the failureReason field. (IN_PROGRESS, COMPLETE, FAILED)
merge_strategystringThe action taken when there was a conflict between an existing resource and a resource in the import file. (OVERWRITE_LATEST, FAIL_ON_CONFLICT)
resource_typestringThe type of resource imported. (BOT, INTENT, SLOT_TYPE)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_importselectimport_id, regionGets information about an import job started with the StartImport operation.

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
import_idstringThe identifier of the import job information to return.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets information about an import job started with the StartImport operation.

SELECT
name,
created_date,
failure_reason,
import_id,
import_status,
merge_strategy,
resource_type
FROM aws.lex_models.imports
WHERE import_id = '{{ import_id }}' -- required
AND region = '{{ region }}' -- required
;