bot_versions
Creates, updates, deletes or gets a bot_version
resource or lists bot_versions
in a region
Overview
Name | bot_versions |
Type | Resource |
Description | A version is a numbered snapshot of your work that you can publish for use in different parts of your workflow, such as development, beta deployment, and production. |
Id | aws.lex.bot_versions |
Fields
Name | Datatype | Description |
---|---|---|
bot_id | string | Unique ID of resource |
bot_version | object | A version is a numbered snapshot of your work that you can publish for use in different parts of your workflow, such as development, beta deployment, and production. |
description | string | A description of the version. Use the description to help identify the version in lists. |
bot_version_locale_specification | array | Specifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | BotId, BotVersionLocaleSpecification, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all bot_versions
in a region.
SELECT
region,
bot_id,
bot_version,
description,
bot_version_locale_specification
FROM aws.lex.bot_versions
WHERE region = 'us-east-1';
Gets all properties from an individual bot_version
.
SELECT
region,
bot_id,
bot_version,
description,
bot_version_locale_specification
FROM aws.lex.bot_versions
WHERE region = 'us-east-1' AND data__Identifier = '<BotId>|<BotVersion>';
INSERT
example
Use the following StackQL query and manifest file to create a new bot_version
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.lex.bot_versions (
BotId,
BotVersionLocaleSpecification,
region
)
SELECT
'{{ BotId }}',
'{{ BotVersionLocaleSpecification }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.lex.bot_versions (
BotId,
Description,
BotVersionLocaleSpecification,
region
)
SELECT
'{{ BotId }}',
'{{ Description }}',
'{{ BotVersionLocaleSpecification }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: bot_version
props:
- name: BotId
value: '{{ BotId }}'
- name: Description
value: '{{ Description }}'
- name: BotVersionLocaleSpecification
value:
- LocaleId: '{{ LocaleId }}'
BotVersionLocaleDetails:
SourceBotVersion:
BotId: null
Description: null
BotVersionLocaleSpecification: null
DELETE
example
/*+ delete */
DELETE FROM aws.lex.bot_versions
WHERE data__Identifier = '<BotId|BotVersion>'
AND region = 'us-east-1';
Permissions
To operate on the bot_versions
resource, the following permissions are required:
Create
lex:CreateBotVersion,
lex:DescribeBotVersion,
lex:DescribeBot,
lex:DescribeBotLocale,
lex:BuildBotLocale
Read
lex:DescribeBotVersion
Delete
lex:DeleteBotVersion,
lex:DescribeBotVersion
List
lex:ListBotVersions