aws_sdk_chatbot/client/create_chime_webhook_configuration.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreateChimeWebhookConfiguration`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`webhook_description(impl Into<String>)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::webhook_description) / [`set_webhook_description(Option<String>)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::set_webhook_description):<br>required: **true**<br><p>A description of the webhook. We recommend using the convention <code>RoomName/WebhookName</code>.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/chatbot/latest/adminguide/chime-setup.html">Tutorial: Get started with Amazon Chime</a> in the <i> AWS Chatbot Administrator Guide</i>.</p><br>
7 /// - [`webhook_url(impl Into<String>)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::webhook_url) / [`set_webhook_url(Option<String>)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::set_webhook_url):<br>required: **true**<br><p>The URL for the Amazon Chime webhook.</p><br>
8 /// - [`sns_topic_arns(impl Into<String>)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::sns_topic_arns) / [`set_sns_topic_arns(Option<Vec::<String>>)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::set_sns_topic_arns):<br>required: **true**<br><p>The Amazon Resource Names (ARNs) of the SNS topics that deliver notifications to AWS Chatbot.</p><br>
9 /// - [`iam_role_arn(impl Into<String>)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::iam_role_arn) / [`set_iam_role_arn(Option<String>)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::set_iam_role_arn):<br>required: **true**<br><p>A user-defined role that AWS Chatbot assumes. This is not the service-linked role.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-iam-policies.html">IAM policies for AWS Chatbot</a> in the <i> AWS Chatbot Administrator Guide</i>.</p><br>
10 /// - [`configuration_name(impl Into<String>)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::configuration_name) / [`set_configuration_name(Option<String>)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::set_configuration_name):<br>required: **true**<br><p>The name of the configuration.</p><br>
11 /// - [`logging_level(impl Into<String>)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::logging_level) / [`set_logging_level(Option<String>)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::set_logging_level):<br>required: **false**<br><p>Logging levels include <code>ERROR</code>, <code>INFO</code>, or <code>NONE</code>.</p><br>
12 /// - [`tags(Tag)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::set_tags):<br>required: **false**<br><p>A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.</p><br>
13 /// - On success, responds with [`CreateChimeWebhookConfigurationOutput`](crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationOutput) with field(s):
14 /// - [`webhook_configuration(Option<ChimeWebhookConfiguration>)`](crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationOutput::webhook_configuration): <p>An Amazon Chime webhook configuration.</p>
15 /// - On failure, responds with [`SdkError<CreateChimeWebhookConfigurationError>`](crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError)
16 pub fn create_chime_webhook_configuration(
17 &self,
18 ) -> crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder {
19 crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationFluentBuilder::new(self.handle.clone())
20 }
21}