Skip to main content

bots

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

Overview

Namebots
TypeResource
Idaws.chime.bots

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bot_emailstringThe bot email address.
bot_idstringThe bot ID.
bot_typestringThe bot type. (ChatBot)
created_timestampstring (date-time)The bot creation timestamp, in ISO 8601 format.
disabledbooleanWhen true, the bot is stopped from running in your account.
display_namestringThe bot display name.
security_tokenstringThe security token used to authenticate Amazon Chime with the outgoing event endpoint.
updated_timestampstring (date-time)The updated bot timestamp, in ISO 8601 format.
user_idstringThe unique ID for the bot user.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_botselectaccount_id, bot_id, regionRetrieves details for the specified bot, such as bot email address, bot type, status, and display name.
list_botsselectaccount_id, regionmax-results, next-tokenLists the bots associated with the administrator's Amazon Chime Enterprise account ID.
create_botinsertaccount_id, region, DisplayNameCreates a bot for an Amazon Chime Enterprise account.
update_botupdateaccount_id, bot_id, regionUpdates the status of the specified bot, such as starting or stopping the bot from running in your Amazon Chime Enterprise account.

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
account_idstringThe Amazon Chime account ID.
bot_idstringThe bot ID.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of results to return in a single call. The default is 10.
next-tokenstringThe token to use to retrieve the next page of results.

SELECT examples

Retrieves details for the specified bot, such as bot email address, bot type, status, and display name.

SELECT
bot_email,
bot_id,
bot_type,
created_timestamp,
disabled,
display_name,
security_token,
updated_timestamp,
user_id
FROM aws.chime.bots
WHERE account_id = '{{ account_id }}' -- required
AND bot_id = '{{ bot_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a bot for an Amazon Chime Enterprise account.

INSERT INTO aws.chime.bots (
DisplayName,
Domain,
account_id,
region
)
SELECT
'{{ DisplayName }}' /* required */,
'{{ Domain }}',
'{{ account_id }}',
'{{ region }}'
RETURNING
bot
;

UPDATE examples

Updates the status of the specified bot, such as starting or stopping the bot from running in your Amazon Chime Enterprise account.

UPDATE aws.chime.bots
SET
Disabled = {{ Disabled }}
WHERE
account_id = '{{ account_id }}' --required
AND bot_id = '{{ bot_id }}' --required
AND region = '{{ region }}' --required
RETURNING
bot;