aws_sdk_kafka/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    ///   - [`cluster_arn(impl Into<String>)`](crate::operation::get_cluster_policy::builders::GetClusterPolicyFluentBuilder::cluster_arn) / [`set_cluster_arn(Option<String>)`](crate::operation::get_cluster_policy::builders::GetClusterPolicyFluentBuilder::set_cluster_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the cluster.</p><br>
7    /// - On success, responds with [`GetClusterPolicyOutput`](crate::operation::get_cluster_policy::GetClusterPolicyOutput) with field(s):
8    ///   - [`current_version(Option<String>)`](crate::operation::get_cluster_policy::GetClusterPolicyOutput::current_version): <p>The version of cluster policy.</p>
9    ///   - [`policy(Option<String>)`](crate::operation::get_cluster_policy::GetClusterPolicyOutput::policy): <p>The cluster policy.</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}