imports
Creates, updates, deletes, gets or lists an imports resource.
Overview
| Name | imports |
| Type | Resource |
| Id | aws.lex_models.imports |
Fields
The following fields are returned by SELECT queries:
- get_import
| Name | Datatype | Description |
|---|---|---|
name | string | The name given to the import job. (pattern: <code>[a-zA-Z_]+</code>) |
created_date | string (date-time) | A timestamp for the date and time that the import job was created. |
failure_reason | array | A string that describes why an import job failed to complete. |
import_id | string | The identifier for the specific import job. |
import_status | string | The 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_strategy | string | The action taken when there was a conflict between an existing resource and a resource in the import file. (OVERWRITE_LATEST, FAIL_ON_CONFLICT) |
resource_type | string | The type of resource imported. (BOT, INTENT, SLOT_TYPE) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_import | select | import_id, region | Gets 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.
| Name | Datatype | Description |
|---|---|---|
import_id | string | The identifier of the import job information to return. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_import
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
;