aws_sdk_dsql/client/get_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 [`GetClusterPolicy`](crate::operation::get_cluster_policy::builders::GetClusterPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`identifier(impl Into<String>)`](crate::operation::get_cluster_policy::builders::GetClusterPolicyFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::get_cluster_policy::builders::GetClusterPolicyFluentBuilder::set_identifier):<br>required: **true**<br><p>The ID of the cluster to retrieve the policy from.</p><br>
7 /// - On success, responds with [`GetClusterPolicyOutput`](crate::operation::get_cluster_policy::GetClusterPolicyOutput) with field(s):
8 /// - [`policy(String)`](crate::operation::get_cluster_policy::GetClusterPolicyOutput::policy): <p>The resource-based policy document attached to the cluster, returned as a JSON string.</p>
9 /// - [`policy_version(String)`](crate::operation::get_cluster_policy::GetClusterPolicyOutput::policy_version): <p>The version of the policy document. This version number is incremented each time the policy is updated.</p>
10 /// - On failure, responds with [`SdkError<GetClusterPolicyError>`](crate::operation::get_cluster_policy::GetClusterPolicyError)
11 pub fn get_cluster_policy(&self) -> crate::operation::get_cluster_policy::builders::GetClusterPolicyFluentBuilder {
12 crate::operation::get_cluster_policy::builders::GetClusterPolicyFluentBuilder::new(self.handle.clone())
13 }
14}