Skip to main content

bot_aliases

Creates, updates, deletes or gets a bot_alias resource or lists bot_aliases in a region

Overview

Namebot_aliases
TypeResource
DescriptionA Bot Alias enables you to change the version of a bot without updating applications that use the bot
Idaws.lex.bot_aliases

Fields

NameDatatypeDescription
bot_alias_idstringUnique ID of resource
bot_idstringUnique ID of resource
arnstring
bot_alias_statusstring
bot_alias_locale_settingsarrayA list of bot alias locale settings to add to the bot alias.
bot_alias_namestringA unique identifier for a 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.
conversation_log_settingsobjectContains information about code hooks that Amazon Lex calls during a conversation.
descriptionstringA description of the version. Use the description to help identify the version in lists.
sentiment_analysis_settingsobjectDetermines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
bot_alias_tagsarrayA list of tags to add to the bot alias.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTBotId, BotAliasName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all bot_aliases in a region.

SELECT
region,
bot_alias_id,
bot_id,
arn,
bot_alias_status,
bot_alias_locale_settings,
bot_alias_name,
bot_version,
conversation_log_settings,
description,
sentiment_analysis_settings,
bot_alias_tags
FROM aws.lex.bot_aliases
WHERE region = 'us-east-1';

Gets all properties from an individual bot_alias.

SELECT
region,
bot_alias_id,
bot_id,
arn,
bot_alias_status,
bot_alias_locale_settings,
bot_alias_name,
bot_version,
conversation_log_settings,
description,
sentiment_analysis_settings,
bot_alias_tags
FROM aws.lex.bot_aliases
WHERE region = 'us-east-1' AND data__Identifier = '<BotAliasId>|<BotId>';

INSERT example

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

/*+ create */
INSERT INTO aws.lex.bot_aliases (
BotId,
BotAliasName,
region
)
SELECT
'{{ BotId }}',
'{{ BotAliasName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.lex.bot_aliases
WHERE data__Identifier = '<BotAliasId|BotId>'
AND region = 'us-east-1';

Permissions

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

Create

lex:CreateBotAlias,
lex:DescribeBot

Update

lex:UpdateBotAlias,
lex:DescribeBotAlias,
lex:ListTagsForResource,
lex:TagResource,
lex:UntagResource

Read

lex:DescribeBotAlias

Delete

lex:DeleteBotAlias

List

lex:ListBotAliases