Skip to main content

exports

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

Overview

Nameexports
TypeResource
Idaws.lex_models.exports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the bot being exported. (pattern: <code>[a-zA-Z_]+</code>)
export_statusstringThe status of the export. IN_PROGRESS - The export is in progress. READY - The export is complete. FAILED - The export could not be completed. (IN_PROGRESS, READY, FAILED)
export_typestringThe format of the exported data. (ALEXA_SKILLS_KIT, LEX)
failure_reasonstringIf status is FAILED, Amazon Lex provides the reason that it failed to export the resource.
resource_typestringThe type of the exported resource. (BOT, INTENT, SLOT_TYPE)
urlstringAn S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP archive that contains the exported resource in JSON format. The structure of the archive may change. Your code should not rely on the archive structure.
versionstringThe version of the bot being exported. (pattern: <code>[0-9]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_exportselectname, version, resourceType, exportType, regionExports the contents of a Amazon Lex resource in a specified format.

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
exportTypestringThe format of the exported data.
namestringThe name of the bot to export.
regionstringAWS region (default: us-east-1)
resourceTypestringThe type of resource to export.
versionstringThe version of the bot to export.

SELECT examples

Exports the contents of a Amazon Lex resource in a specified format.

SELECT
name,
export_status,
export_type,
failure_reason,
resource_type,
url,
version
FROM aws.lex_models.exports
WHERE name = '{{ name }}' -- required
AND version = '{{ version }}' -- required
AND resourceType = '{{ resourceType }}' -- required
AND exportType = '{{ exportType }}' -- required
AND region = '{{ region }}' -- required
;