aws_sdk_memorydb/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_name(impl Into<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::cluster_name) / [`set_cluster_name(Option<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::set_cluster_name):<br>required: **true**<br><p>The name of the cluster to be deleted</p><br>
7 /// - [`multi_region_cluster_name(impl Into<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::multi_region_cluster_name) / [`set_multi_region_cluster_name(Option<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::set_multi_region_cluster_name):<br>required: **false**<br><p>The name of the multi-Region cluster to be deleted.</p><br>
8 /// - [`final_snapshot_name(impl Into<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::final_snapshot_name) / [`set_final_snapshot_name(Option<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::set_final_snapshot_name):<br>required: **false**<br><p>The user-supplied name of a final cluster snapshot. This is the unique name that identifies the snapshot. MemoryDB creates the snapshot, and then deletes the cluster immediately afterward.</p><br>
9 /// - On success, responds with [`DeleteClusterOutput`](crate::operation::delete_cluster::DeleteClusterOutput) with field(s):
10 /// - [`cluster(Option<Cluster>)`](crate::operation::delete_cluster::DeleteClusterOutput::cluster): <p>The cluster object that has been deleted.</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}