Skip to main content

lex_bots

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

Overview

Namelex_bots
TypeResource
Idaws.connect.lex_bots

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
lex_regionstringThe Amazon Web Services Region where the Amazon Lex bot was created.
namestringThe name of the Amazon Lex bot.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_lex_botsselectinstance_id, regionnextToken, maxResultsThis API is in preview release for Connect Customer and is subject to change. Returns a paginated list of all the Amazon Lex V1 bots currently associated with the instance. To return both Amazon Lex V1 and V2 bots, use the ListBots API.
disassociate_lex_botupdateinstance_id, botName, lexRegion, regionclientTokenThis API is in preview release for Connect Customer and is subject to change. Revokes authorization from the specified instance to access the specified Amazon Lex bot.
associate_lex_botupdateinstance_id, region, LexBotThis API is in preview release for Connect Customer and is subject to change. Allows the specified Connect Customer instance to access the specified Amazon Lex V1 bot. This API only supports the association of Amazon Lex V1 bots.

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
botNamestringThe name of the Amazon Lex bot. Maximum character limit of 50.
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
lexRegionstringThe Amazon Web Services Region in which the Amazon Lex bot has been created.
regionstringAWS region (default: us-east-1)
clientTokenstringA unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
maxResultsintegerThe maximum number of results to return per page. If no value is specified, the default is 10.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

This API is in preview release for Connect Customer and is subject to change. Returns a paginated list of all the Amazon Lex V1 bots currently associated with the instance. To return both Amazon Lex V1 and V2 bots, use the ListBots API.

SELECT
lex_region,
name
FROM aws.connect.lex_bots
WHERE instance_id = '{{ instance_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;

UPDATE examples

This API is in preview release for Connect Customer and is subject to change. Revokes authorization from the specified instance to access the specified Amazon Lex bot.

UPDATE aws.connect.lex_bots
SET
-- No updatable properties
WHERE
instance_id = '{{ instance_id }}' --required
AND botName = '{{ botName }}' --required
AND lexRegion = '{{ lexRegion }}' --required
AND region = '{{ region }}' --required
AND clientToken = '{{ clientToken}}';