updateChimeWebhookConfiguration method
Updates a Amazon Chime webhook configuration.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw UpdateChimeWebhookConfigurationException.
Parameter chatConfigurationArn :
The Amazon Resource Name (ARN) of the ChimeWebhookConfiguration to update.
Parameter iamRoleArn :
A 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.
Parameter loggingLevel :
Logging levels include ERROR, INFO, or
NONE.
Parameter snsTopicArns :
The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
Parameter webhookDescription :
A 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.
Parameter webhookUrl :
The URL for the Amazon Chime webhook.
Implementation
Future<UpdateChimeWebhookConfigurationResult>
updateChimeWebhookConfiguration({
required String chatConfigurationArn,
String? iamRoleArn,
String? loggingLevel,
List<String>? snsTopicArns,
String? webhookDescription,
String? webhookUrl,
}) async {
final $payload = <String, dynamic>{
'ChatConfigurationArn': chatConfigurationArn,
if (iamRoleArn != null) 'IamRoleArn': iamRoleArn,
if (loggingLevel != null) 'LoggingLevel': loggingLevel,
if (snsTopicArns != null) 'SnsTopicArns': snsTopicArns,
if (webhookDescription != null) 'WebhookDescription': webhookDescription,
if (webhookUrl != null) 'WebhookUrl': webhookUrl,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/update-chime-webhook-configuration',
exceptionFnMap: _exceptionFns,
);
return UpdateChimeWebhookConfigurationResult.fromJson(response);
}