aws_sdk_dsql/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 /// - [`identifier(impl Into<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::set_identifier):<br>required: **true**<br><p>The ID of the cluster to delete.</p><br>
7 /// - [`client_token(impl Into<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p> <p>If you don't specify a client token, the Amazon Web Services SDK automatically generates one.</p><br>
8 /// - On success, responds with [`DeleteClusterOutput`](crate::operation::delete_cluster::DeleteClusterOutput) with field(s):
9 /// - [`identifier(String)`](crate::operation::delete_cluster::DeleteClusterOutput::identifier): <p>The ID of the deleted cluster.</p>
10 /// - [`arn(String)`](crate::operation::delete_cluster::DeleteClusterOutput::arn): <p>The ARN of the deleted cluster.</p>
11 /// - [`status(ClusterStatus)`](crate::operation::delete_cluster::DeleteClusterOutput::status): <p>The status of the cluster.</p>
12 /// - [`creation_time(DateTime)`](crate::operation::delete_cluster::DeleteClusterOutput::creation_time): <p>The time of when the cluster was created.</p>
13 /// - On failure, responds with [`SdkError<DeleteClusterError>`](crate::operation::delete_cluster::DeleteClusterError)
14 pub fn delete_cluster(&self) -> crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder {
15 crate::operation::delete_cluster::builders::DeleteClusterFluentBuilder::new(self.handle.clone())
16 }
17}