1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateTopic`](crate::operation::create_topic::builders::CreateTopicFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`aws_account_id(impl Into<String>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::aws_account_id) / [`set_aws_account_id(Option<String>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::set_aws_account_id):<br>required: **true**<br><p>The ID of the Amazon Web Services account that you want to create a topic in.</p><br>
    ///   - [`topic_id(impl Into<String>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::topic_id) / [`set_topic_id(Option<String>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::set_topic_id):<br>required: **true**<br><p>The ID for the topic that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.</p><br>
    ///   - [`topic(TopicDetails)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::topic) / [`set_topic(Option<TopicDetails>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::set_topic):<br>required: **true**<br><p>The definition of a topic to create.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::set_tags):<br>required: **false**<br><p>Contains a map of the key-value pairs for the resource tag or tags that are assigned to the dataset.</p><br>
    /// - On success, responds with [`CreateTopicOutput`](crate::operation::create_topic::CreateTopicOutput) with field(s):
    ///   - [`arn(Option<String>)`](crate::operation::create_topic::CreateTopicOutput::arn): <p>The Amazon Resource Name (ARN) of the topic.</p>
    ///   - [`topic_id(Option<String>)`](crate::operation::create_topic::CreateTopicOutput::topic_id): <p>The ID for the topic that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.</p>
    ///   - [`refresh_arn(Option<String>)`](crate::operation::create_topic::CreateTopicOutput::refresh_arn): <p>The Amazon Resource Name (ARN) of the topic refresh.</p>
    ///   - [`request_id(Option<String>)`](crate::operation::create_topic::CreateTopicOutput::request_id): <p>The Amazon Web Services request ID for this operation.</p>
    ///   - [`status(i32)`](crate::operation::create_topic::CreateTopicOutput::status): <p>The HTTP status of the request.</p>
    /// - On failure, responds with [`SdkError<CreateTopicError>`](crate::operation::create_topic::CreateTopicError)
    pub fn create_topic(&self) -> crate::operation::create_topic::builders::CreateTopicFluentBuilder {
        crate::operation::create_topic::builders::CreateTopicFluentBuilder::new(self.handle.clone())
    }
}