exports
Creates, updates, deletes, gets or lists an exports resource.
Overview
| Name | exports |
| Type | Resource |
| Id | aws.lex_models.exports |
Fields
The following fields are returned by SELECT queries:
- get_export
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the bot being exported. (pattern: <code>[a-zA-Z_]+</code>) |
export_status | string | The 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_type | string | The format of the exported data. (ALEXA_SKILLS_KIT, LEX) |
failure_reason | string | If status is FAILED, Amazon Lex provides the reason that it failed to export the resource. |
resource_type | string | The type of the exported resource. (BOT, INTENT, SLOT_TYPE) |
url | string | An 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. |
version | string | The version of the bot being exported. (pattern: <code>[0-9]+</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_export | select | name, version, resourceType, exportType, region | Exports 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.
| Name | Datatype | Description |
|---|---|---|
exportType | string | The format of the exported data. |
name | string | The name of the bot to export. |
region | string | AWS region (default: us-east-1) |
resourceType | string | The type of resource to export. |
version | string | The version of the bot to export. |
SELECT examples
- get_export
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
;