aws_sdk_directory/client/register_event_topic.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 [`RegisterEventTopic`](crate::operation::register_event_topic::builders::RegisterEventTopicFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`directory_id(impl Into<String>)`](crate::operation::register_event_topic::builders::RegisterEventTopicFluentBuilder::directory_id) / [`set_directory_id(Option<String>)`](crate::operation::register_event_topic::builders::RegisterEventTopicFluentBuilder::set_directory_id):<br>required: **true**<br><p>The Directory ID that will publish status messages to the Amazon SNS topic.</p><br>
7 /// - [`topic_name(impl Into<String>)`](crate::operation::register_event_topic::builders::RegisterEventTopicFluentBuilder::topic_name) / [`set_topic_name(Option<String>)`](crate::operation::register_event_topic::builders::RegisterEventTopicFluentBuilder::set_topic_name):<br>required: **true**<br><p>The Amazon SNS topic name to which the directory will publish status messages. This Amazon SNS topic must be in the same region as the specified Directory ID.</p><br>
8 /// - On success, responds with [`RegisterEventTopicOutput`](crate::operation::register_event_topic::RegisterEventTopicOutput)
9 /// - On failure, responds with [`SdkError<RegisterEventTopicError>`](crate::operation::register_event_topic::RegisterEventTopicError)
10 pub fn register_event_topic(&self) -> crate::operation::register_event_topic::builders::RegisterEventTopicFluentBuilder {
11 crate::operation::register_event_topic::builders::RegisterEventTopicFluentBuilder::new(self.handle.clone())
12 }
13}