aws_sdk_pcs/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_identifier(impl Into<String>)`](crate::operation::get_cluster::builders::GetClusterFluentBuilder::cluster_identifier) / [`set_cluster_identifier(Option<String>)`](crate::operation::get_cluster::builders::GetClusterFluentBuilder::set_cluster_identifier):<br>required: **true**<br><p>The name or ID of the 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>The cluster resource.</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}