Skip to main content

imports

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

Overview

Nameimports
TypeResource
Idaws.lexv2_models.imports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_date_timestring (date-time)The date and time that the import was created.
failure_reasonsarrayIf the importStatus field is Failed, this provides one or more reasons for the failure.
import_idstringThe unique identifier of the described import. (pattern: <code>^[0-9a-zA-Z]+$</code>)
import_statusstringThe status of the import process. When the status is Completed the resource is imported and ready for use. (InProgress, Completed, Failed, Deleting)
imported_resource_idstringThe unique identifier that Amazon Lex assigned to the resource created by the import. (pattern: <code>^([0-9a-zA-Z_])+$</code>)
imported_resource_namestringThe name of the imported resource. (pattern: <code>^([0-9a-zA-Z][_-]?){1,100}$</code>)
last_updated_date_timestring (date-time)The date and time that the import was last updated.
merge_strategystringThe strategy used when there was a name conflict between the imported resource and an existing resource. When the merge strategy is FailOnConflict existing resources are not overwritten and the import fails. (Overwrite, FailOnConflict, Append)
resource_specificationobjectThe specifications of the imported bot, bot locale, or custom vocabulary.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_importselectimport_id, regionGets information about a specific import.
list_importsselectregionLists the imports for a bot, bot locale, or custom vocabulary. Imports are kept in the list for 7 days.
delete_importdeleteimport_id, regionRemoves a previous import and the associated file stored in an S3 bucket.
start_importexecregion, importId, resourceSpecification, mergeStrategyStarts importing a bot, bot locale, or custom vocabulary from a zip archive that you uploaded to an S3 bucket.

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 unique identifier of the import to delete.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets information about a specific import.

SELECT
creation_date_time,
failure_reasons,
import_id,
import_status,
imported_resource_id,
imported_resource_name,
last_updated_date_time,
merge_strategy,
resource_specification
FROM aws.lexv2_models.imports
WHERE import_id = '{{ import_id }}' -- required
AND region = '{{ region }}' -- required
;

DELETE examples

Removes a previous import and the associated file stored in an S3 bucket.

DELETE FROM aws.lexv2_models.imports
WHERE import_id = '{{ import_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Starts importing a bot, bot locale, or custom vocabulary from a zip archive that you uploaded to an S3 bucket.

EXEC aws.lexv2_models.imports.start_import
@region='{{ region }}' --required
@@json=
'{
"importId": "{{ importId }}",
"resourceSpecification": "{{ resourceSpecification }}",
"mergeStrategy": "{{ mergeStrategy }}",
"filePassword": "{{ filePassword }}"
}'
;