aws_sdk_redshift/client/describe_clusters.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 [`DescribeClusters`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`cluster_identifier(impl Into<String>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::cluster_identifier) / [`set_cluster_identifier(Option<String>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::set_cluster_identifier):<br>required: **false**<br><p>The unique identifier of a cluster whose properties you are requesting. This parameter is case sensitive.</p> <p>The default is that all clusters defined for an account are returned.</p><br>
8 /// - [`max_records(i32)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::max_records) / [`set_max_records(Option<i32>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::set_max_records):<br>required: **false**<br><p>The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified <code>MaxRecords</code> value, a value is returned in a <code>marker</code> field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.</p> <p>Default: <code>100</code></p> <p>Constraints: minimum 20, maximum 100.</p><br>
9 /// - [`marker(impl Into<String>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::marker) / [`set_marker(Option<String>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::set_marker):<br>required: **false**<br><p>An optional parameter that specifies the starting point to return a set of response records. When the results of a <code>DescribeClusters</code> request exceed the value specified in <code>MaxRecords</code>, Amazon Web Services returns a value in the <code>Marker</code> field of the response. You can retrieve the next set of response records by providing the returned marker value in the <code>Marker</code> parameter and retrying the request.</p> <p>Constraints: You can specify either the <b>ClusterIdentifier</b> parameter or the <b>Marker</b> parameter, but not both.</p><br>
10 /// - [`tag_keys(impl Into<String>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::tag_keys) / [`set_tag_keys(Option<Vec::<String>>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::set_tag_keys):<br>required: **false**<br><p>A tag key or keys for which you want to return all matching clusters that are associated with the specified key or keys. For example, suppose that you have clusters that are tagged with keys called <code>owner</code> and <code>environment</code>. If you specify both of these tag keys in the request, Amazon Redshift returns a response with the clusters that have either or both of these tag keys associated with them.</p><br>
11 /// - [`tag_values(impl Into<String>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::tag_values) / [`set_tag_values(Option<Vec::<String>>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::set_tag_values):<br>required: **false**<br><p>A tag value or values for which you want to return all matching clusters that are associated with the specified tag value or values. For example, suppose that you have clusters that are tagged with values called <code>admin</code> and <code>test</code>. If you specify both of these tag values in the request, Amazon Redshift returns a response with the clusters that have either or both of these tag values associated with them.</p><br>
12 /// - On success, responds with [`DescribeClustersOutput`](crate::operation::describe_clusters::DescribeClustersOutput) with field(s):
13 /// - [`marker(Option<String>)`](crate::operation::describe_clusters::DescribeClustersOutput::marker): <p>A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the <code>Marker</code> parameter and retrying the command. If the <code>Marker</code> field is empty, all response records have been retrieved for the request.</p>
14 /// - [`clusters(Option<Vec::<Cluster>>)`](crate::operation::describe_clusters::DescribeClustersOutput::clusters): <p>A list of <code>Cluster</code> objects, where each object describes one cluster.</p>
15 /// - On failure, responds with [`SdkError<DescribeClustersError>`](crate::operation::describe_clusters::DescribeClustersError)
16 pub fn describe_clusters(&self) -> crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder {
17 crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::new(self.handle.clone())
18 }
19}