aws_sdk_docdbelastic/client/
get_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 [`GetCluster`](crate::operation::get_cluster::builders::GetClusterFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`cluster_arn(impl Into<String>)`](crate::operation::get_cluster::builders::GetClusterFluentBuilder::cluster_arn) / [`set_cluster_arn(Option<String>)`](crate::operation::get_cluster::builders::GetClusterFluentBuilder::set_cluster_arn):<br>required: **true**<br><p>The ARN identifier of the elastic cluster.</p><br>
7    /// - On success, responds with [`GetClusterOutput`](crate::operation::get_cluster::GetClusterOutput) with field(s):
8    ///   - [`cluster(Option<Cluster>)`](crate::operation::get_cluster::GetClusterOutput::cluster): <p>Returns information about a specific elastic cluster.</p>
9    /// - On failure, responds with [`SdkError<GetClusterError>`](crate::operation::get_cluster::GetClusterError)
10    pub fn get_cluster(&self) -> crate::operation::get_cluster::builders::GetClusterFluentBuilder {
11        crate::operation::get_cluster::builders::GetClusterFluentBuilder::new(self.handle.clone())
12    }
13}