aws_sdk_dsql/client/delete_cluster_policy.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 [`DeleteClusterPolicy`](crate::operation::delete_cluster_policy::builders::DeleteClusterPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`identifier(impl Into<String>)`](crate::operation::delete_cluster_policy::builders::DeleteClusterPolicyFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::delete_cluster_policy::builders::DeleteClusterPolicyFluentBuilder::set_identifier):<br>required: **true**<br><p>The ID of the cluster.</p><br>
7 /// - [`expected_policy_version(impl Into<String>)`](crate::operation::delete_cluster_policy::builders::DeleteClusterPolicyFluentBuilder::expected_policy_version) / [`set_expected_policy_version(Option<String>)`](crate::operation::delete_cluster_policy::builders::DeleteClusterPolicyFluentBuilder::set_expected_policy_version):<br>required: **false**<br><p>The expected version of the policy to delete. This parameter ensures that you're deleting the correct version of the policy and helps prevent accidental deletions.</p><br>
8 /// - [`client_token(impl Into<String>)`](crate::operation::delete_cluster_policy::builders::DeleteClusterPolicyFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::delete_cluster_policy::builders::DeleteClusterPolicyFluentBuilder::set_client_token):<br>required: **false**<br><p>Idempotency token so a request is only processed once.</p><br>
9 /// - On success, responds with [`DeleteClusterPolicyOutput`](crate::operation::delete_cluster_policy::DeleteClusterPolicyOutput) with field(s):
10 /// - [`policy_version(String)`](crate::operation::delete_cluster_policy::DeleteClusterPolicyOutput::policy_version): <p>The version of the policy that was deleted.</p>
11 /// - On failure, responds with [`SdkError<DeleteClusterPolicyError>`](crate::operation::delete_cluster_policy::DeleteClusterPolicyError)
12 pub fn delete_cluster_policy(&self) -> crate::operation::delete_cluster_policy::builders::DeleteClusterPolicyFluentBuilder {
13 crate::operation::delete_cluster_policy::builders::DeleteClusterPolicyFluentBuilder::new(self.handle.clone())
14 }
15}