aws-sdk-kafka 1.126.0

AWS SDK for Managed Streaming for Kafka
Documentation
// 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:
    ///   - [`cluster_arn(impl Into<String>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::cluster_arn) / [`set_cluster_arn(Option<String>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::set_cluster_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) that uniquely identifies the cluster.</p><br>
    ///   - [`topic_name(impl Into<String>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::topic_name) / [`set_topic_name(Option<String>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::set_topic_name):<br>required: **true**<br><p>The name of the topic to create.</p><br>
    ///   - [`partition_count(i32)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::partition_count) / [`set_partition_count(Option<i32>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::set_partition_count):<br>required: **true**<br><p>The number of partitions for the topic.</p><br>
    ///   - [`replication_factor(i32)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::replication_factor) / [`set_replication_factor(Option<i32>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::set_replication_factor):<br>required: **true**<br><p>The replication factor for the topic.</p><br>
    ///   - [`configs(impl Into<String>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::configs) / [`set_configs(Option<String>)`](crate::operation::create_topic::builders::CreateTopicFluentBuilder::set_configs):<br>required: **false**<br><p>Topic configurations encoded as a Base64 string.</p><br>
    /// - On success, responds with [`CreateTopicOutput`](crate::operation::create_topic::CreateTopicOutput) with field(s):
    ///   - [`topic_arn(Option<String>)`](crate::operation::create_topic::CreateTopicOutput::topic_arn): <p>The Amazon Resource Name (ARN) of the topic.</p>
    ///   - [`topic_name(Option<String>)`](crate::operation::create_topic::CreateTopicOutput::topic_name): <p>The name of the topic that was created.</p>
    ///   - [`status(Option<TopicState>)`](crate::operation::create_topic::CreateTopicOutput::status): <p>The status of the topic creation.</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())
    }
}