aws_sdk_dsql/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 /// - [`identifier(impl Into<String>)`](crate::operation::get_cluster::builders::GetClusterFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::get_cluster::builders::GetClusterFluentBuilder::set_identifier):<br>required: **true**<br><p>The ID of the cluster to retrieve.</p><br>
7 /// - On success, responds with [`GetClusterOutput`](crate::operation::get_cluster::GetClusterOutput) with field(s):
8 /// - [`identifier(String)`](crate::operation::get_cluster::GetClusterOutput::identifier): <p>The ID of the retrieved cluster.</p>
9 /// - [`arn(String)`](crate::operation::get_cluster::GetClusterOutput::arn): <p>The ARN of the retrieved cluster.</p>
10 /// - [`status(ClusterStatus)`](crate::operation::get_cluster::GetClusterOutput::status): <p>The status of the retrieved cluster.</p>
11 /// - [`creation_time(DateTime)`](crate::operation::get_cluster::GetClusterOutput::creation_time): <p>The time of when the cluster was created.</p>
12 /// - [`deletion_protection_enabled(bool)`](crate::operation::get_cluster::GetClusterOutput::deletion_protection_enabled): <p>Whether deletion protection is enabled in this cluster.</p>
13 /// - [`multi_region_properties(Option<MultiRegionProperties>)`](crate::operation::get_cluster::GetClusterOutput::multi_region_properties): <p>Returns the current multi-Region cluster configuration, including witness region and linked cluster information.</p>
14 /// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_cluster::GetClusterOutput::tags): <p>Map of tags.</p>
15 /// - [`encryption_details(Option<EncryptionDetails>)`](crate::operation::get_cluster::GetClusterOutput::encryption_details): <p>The current encryption configuration details for the cluster.</p>
16 /// - On failure, responds with [`SdkError<GetClusterError>`](crate::operation::get_cluster::GetClusterError)
17 pub fn get_cluster(&self) -> crate::operation::get_cluster::builders::GetClusterFluentBuilder {
18 crate::operation::get_cluster::builders::GetClusterFluentBuilder::new(self.handle.clone())
19 }
20}