Skip to main content

bot_versions

Creates, updates, deletes or gets a bot_version resource or lists bot_versions in a region

Overview

Namebot_versions
TypeResource
DescriptionA 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.
Idawscc.lex.bot_versions

Fields

NameDatatypeDescription
bot_idstringUnique ID of resource
bot_versionobjectA 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.
descriptionstringA description of the version. Use the description to help identify the version in lists.
bot_version_locale_specificationarraySpecifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale.
regionstringAWS region.

For more information, see AWS::Lex::BotVersion.

Methods

NameResourceAccessible byRequired Params
create_resourcebot_versionsINSERTBotId, BotVersionLocaleSpecification, region
delete_resourcebot_versionsDELETEIdentifier, region
list_resourcesbot_versions_list_onlySELECTregion
get_resourcebot_versionsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual bot_version.

SELECT
region,
bot_id,
bot_version,
description,
bot_version_locale_specification
FROM awscc.lex.bot_versions
WHERE
region = 'us-east-1' AND
Identifier = '{{ bot_id }}|{{ bot_version }}';

INSERT example

Use the following StackQL query and manifest file to create a new bot_version resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.lex.bot_versions (
BotId,
BotVersionLocaleSpecification,
region
)
SELECT
'{{ bot_id }}',
'{{ bot_version_locale_specification }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.lex.bot_versions
WHERE
Identifier = '{{ bot_id }}|{{ bot_version }}' AND
region = 'us-east-1';

Permissions

To operate on the bot_versions resource, the following permissions are required:

lex:CreateBotVersion,
lex:DescribeBotVersion,
lex:DescribeBot,
lex:DescribeBotLocale,
lex:BuildBotLocale