Skip to main content

events_configurations

Creates, updates, deletes, gets or lists an events_configurations resource.

Overview

Nameevents_configurations
TypeResource
Idaws.chime.events_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bot_idstringThe bot ID.
lambda_function_arnstringLambda function ARN that allows a bot to receive outgoing events.
outbound_events_https_endpointstringHTTPS endpoint that allows a bot to receive outgoing events.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_events_configurationselectaccount_id, bot_id, regionGets details for an events configuration that allows a bot to receive outgoing events, such as an HTTPS endpoint or Lambda function ARN.
put_events_configurationreplaceaccount_id, bot_id, regionCreates an events configuration that allows a bot to receive outgoing events sent by Amazon Chime. Choose either an HTTPS endpoint or a Lambda function ARN. For more information, see Bot.
delete_events_configurationdeleteaccount_id, bot_id, regionDeletes the events configuration that allows a bot to receive outgoing events.

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)

SELECT examples

Gets details for an events configuration that allows a bot to receive outgoing events, such as an HTTPS endpoint or Lambda function ARN.

SELECT
bot_id,
lambda_function_arn,
outbound_events_https_endpoint
FROM aws.chime.events_configurations
WHERE account_id = '{{ account_id }}' -- required
AND bot_id = '{{ bot_id }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Creates an events configuration that allows a bot to receive outgoing events sent by Amazon Chime. Choose either an HTTPS endpoint or a Lambda function ARN. For more information, see Bot.

REPLACE aws.chime.events_configurations
SET
OutboundEventsHTTPSEndpoint = '{{ OutboundEventsHTTPSEndpoint }}',
LambdaFunctionArn = '{{ LambdaFunctionArn }}'
WHERE
account_id = '{{ account_id }}' --required
AND bot_id = '{{ bot_id }}' --required
AND region = '{{ region }}' --required
RETURNING
events_configuration;

DELETE examples

Deletes the events configuration that allows a bot to receive outgoing events.

DELETE FROM aws.chime.events_configurations
WHERE account_id = '{{ account_id }}' --required
AND bot_id = '{{ bot_id }}' --required
AND region = '{{ region }}' --required
;