Skip to main content

bot_channel_associations

Creates, updates, deletes, gets or lists a bot_channel_associations resource.

Overview

Namebot_channel_associations
TypeResource
Idaws.lex_models.bot_channel_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the association between the bot and the channel. (pattern: <code>^([A-Za-z]_?)+$</code>)
bot_aliasstringAn alias pointing to the specific version of the Amazon Lex bot to which this association is being made. (pattern: <code>^([A-Za-z]_?)+$</code>)
bot_configurationobjectProvides information that the messaging platform needs to communicate with the Amazon Lex bot.
bot_namestringThe name of the Amazon Lex bot. (pattern: <code>^([A-Za-z]_?)+$</code>)
created_datestring (date-time)The date that the association between the bot and the channel was created.
descriptionstringA description of the association between the bot and the channel.
failure_reasonstringIf status is FAILED, Amazon Lex provides the reason that it failed to create the association.
statusstringThe status of the bot channel. CREATED - The channel has been created and is ready for use. IN_PROGRESS - Channel creation is in progress. FAILED - There was an error creating the channel. For information about the reason for the failure, see the failureReason field. (IN_PROGRESS, CREATED, FAILED)
type_stringThe type of the messaging platform. (Facebook, Slack, Twilio-Sms, Kik)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_bot_channel_associationselectname, bot_name, alias_name, regionReturns information about the association between an Amazon Lex bot and a messaging platform. This operation requires permissions for the lex:GetBotChannelAssociation action.
get_bot_channel_associationsselectbot_name, alias_name, regionnextToken, maxResults, nameContainsReturns a list of all of the channels associated with the specified bot. The GetBotChannelAssociations operation requires permissions for the lex:GetBotChannelAssociations action.
delete_bot_channel_associationdeletename, bot_name, alias_name, regionDeletes the association between an Amazon Lex bot and a messaging platform. This operation requires permission for the lex:DeleteBotChannelAssociation action.

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
alias_namestringAn alias that points to the specific version of the Amazon Lex bot to which this association is being made.
bot_namestringThe name of the Amazon Lex bot.
namestringThe name of the association. The name is case sensitive.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of associations to return in the response. The default is 50.
nameContainsstringSubstring to match in channel association names. An association will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz." To return all bot channel associations, use a hyphen ("-") as the nameContains parameter.
nextTokenstringA pagination token for fetching the next page of associations. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of associations, specify the pagination token in the next request.

SELECT examples

Returns information about the association between an Amazon Lex bot and a messaging platform. This operation requires permissions for the lex:GetBotChannelAssociation action.

SELECT
name,
bot_alias,
bot_configuration,
bot_name,
created_date,
description,
failure_reason,
status,
type_
FROM aws.lex_models.bot_channel_associations
WHERE name = '{{ name }}' -- required
AND bot_name = '{{ bot_name }}' -- required
AND alias_name = '{{ alias_name }}' -- required
AND region = '{{ region }}' -- required
;

DELETE examples

Deletes the association between an Amazon Lex bot and a messaging platform. This operation requires permission for the lex:DeleteBotChannelAssociation action.

DELETE FROM aws.lex_models.bot_channel_associations
WHERE name = '{{ name }}' --required
AND bot_name = '{{ bot_name }}' --required
AND alias_name = '{{ alias_name }}' --required
AND region = '{{ region }}' --required
;