aws_sdk_kafka/client/delete_cluster.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 [`DeleteCluster`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`cluster_arn(impl Into<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::cluster_arn) / [`set_cluster_arn(Option<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::set_cluster_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) that uniquely identifies the cluster.</p><br>
7 /// - [`current_version(impl Into<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::current_version) / [`set_current_version(Option<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::set_current_version):<br>required: **false**<br><p>The current version of the MSK cluster.</p><br>
8 /// - On success, responds with [`DeleteClusterOutput`](crate::operation::delete_cluster::DeleteClusterOutput) with field(s):
9 /// - [`cluster_arn(Option<String>)`](crate::operation::delete_cluster::DeleteClusterOutput::cluster_arn): <p>The Amazon Resource Name (ARN) of the cluster.</p>
10 /// - [`state(Option<ClusterState>)`](crate::operation::delete_cluster::DeleteClusterOutput::state): <p>The state of the cluster. The possible states are ACTIVE, CREATING, DELETING, FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and UPDATING.</p>
11 /// - On failure, responds with [`SdkError<DeleteClusterError>`](crate::operation::delete_cluster::DeleteClusterError)
12 pub fn delete_cluster(&self) -> crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder {
13 crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::new(self.handle.clone())
14 }
15}