Skip to main content

chime_webhook_configurations

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

Overview

Namechime_webhook_configurations
TypeResource
Idaws.chatbot.chime_webhook_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
chat_configuration_arnstringThe Amazon Resource Name (ARN) of the ChimeWebhookConfiguration. (pattern: <code>arn:aws:(wheatley|chatbot):[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}</code>)
configuration_namestringThe name of the configuration. (pattern: <code>[A-Za-z0-9-_]+</code>)
iam_role_arnstringA user-defined role that AWS Chatbot assumes. This is not the service-linked role. For more information, see IAM policies for AWS Chatbot in the AWS Chatbot Administrator Guide. (pattern: <code>arn:aws:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}</code>)
logging_levelstringLogging levels include ERROR, INFO, or NONE. (pattern: <code>(ERROR|INFO|NONE)</code>)
sns_topic_arnsarrayThe Amazon Resource Names (ARNs) of the SNS topics that deliver notifications to AWS Chatbot.
statestringEither ENABLED or DISABLED. The resource returns DISABLED if the organization's AWS Chatbot policy has explicitly denied that configuration. For example, if Amazon Chime is disabled. (pattern: <code>(ENABLED|DISABLED)</code>)
state_reasonstringProvided if State is DISABLED. Provides context as to why the resource is disabled.
tagsarrayA map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.
webhook_descriptionstringA description of the webhook. We recommend using the convention RoomName/WebhookName. For more information, see Tutorial: Get started with Amazon Chime in the AWS Chatbot Administrator Guide.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_chime_webhook_configurationsselectregionLists Amazon Chime webhook configurations optionally filtered by ChatConfigurationArn
create_chime_webhook_configurationinsertregion, WebhookDescription, WebhookUrl, SnsTopicArns, IamRoleArn, ConfigurationNameCreates an AWS Chatbot configuration for Amazon Chime.
update_chime_webhook_configurationupdateregion, ChatConfigurationArnUpdates a Amazon Chime webhook configuration.
delete_chime_webhook_configurationdeleteregionDeletes a Amazon Chime webhook configuration for AWS Chatbot.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Lists Amazon Chime webhook configurations optionally filtered by ChatConfigurationArn

SELECT
chat_configuration_arn,
configuration_name,
iam_role_arn,
logging_level,
sns_topic_arns,
state,
state_reason,
tags,
webhook_description
FROM aws.chatbot.chime_webhook_configurations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an AWS Chatbot configuration for Amazon Chime.

INSERT INTO aws.chatbot.chime_webhook_configurations (
WebhookDescription,
WebhookUrl,
SnsTopicArns,
IamRoleArn,
ConfigurationName,
LoggingLevel,
Tags,
region
)
SELECT
'{{ WebhookDescription }}' /* required */,
'{{ WebhookUrl }}' /* required */,
'{{ SnsTopicArns }}' /* required */,
'{{ IamRoleArn }}' /* required */,
'{{ ConfigurationName }}' /* required */,
'{{ LoggingLevel }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
webhook_configuration
;

UPDATE examples

Updates a Amazon Chime webhook configuration.

UPDATE aws.chatbot.chime_webhook_configurations
SET
ChatConfigurationArn = '{{ ChatConfigurationArn }}',
WebhookDescription = '{{ WebhookDescription }}',
WebhookUrl = '{{ WebhookUrl }}',
SnsTopicArns = '{{ SnsTopicArns }}',
IamRoleArn = '{{ IamRoleArn }}',
LoggingLevel = '{{ LoggingLevel }}'
WHERE
region = '{{ region }}' --required
AND ChatConfigurationArn = '{{ ChatConfigurationArn }}' --required
RETURNING
webhook_configuration;

DELETE examples

Deletes a Amazon Chime webhook configuration for AWS Chatbot.

DELETE FROM aws.chatbot.chime_webhook_configurations
WHERE region = '{{ region }}' --required
;