aws_sdk_redshift/client/describe_cluster_versions.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 [`DescribeClusterVersions`](crate::operation::describe_cluster_versions::builders::DescribeClusterVersionsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_cluster_versions::builders::DescribeClusterVersionsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`cluster_version(impl Into<String>)`](crate::operation::describe_cluster_versions::builders::DescribeClusterVersionsFluentBuilder::cluster_version) / [`set_cluster_version(Option<String>)`](crate::operation::describe_cluster_versions::builders::DescribeClusterVersionsFluentBuilder::set_cluster_version):<br>required: **false**<br><p>The specific cluster version to return.</p> <p>Example: <code>1.0</code></p><br>
8 /// - [`cluster_parameter_group_family(impl Into<String>)`](crate::operation::describe_cluster_versions::builders::DescribeClusterVersionsFluentBuilder::cluster_parameter_group_family) / [`set_cluster_parameter_group_family(Option<String>)`](crate::operation::describe_cluster_versions::builders::DescribeClusterVersionsFluentBuilder::set_cluster_parameter_group_family):<br>required: **false**<br><p>The name of a specific cluster parameter group family to return details for.</p> <p>Constraints:</p> <ul> <li> <p>Must be 1 to 255 alphanumeric characters</p></li> <li> <p>First character must be a letter</p></li> <li> <p>Cannot end with a hyphen or contain two consecutive hyphens</p></li> </ul><br>
9 /// - [`max_records(i32)`](crate::operation::describe_cluster_versions::builders::DescribeClusterVersionsFluentBuilder::max_records) / [`set_max_records(Option<i32>)`](crate::operation::describe_cluster_versions::builders::DescribeClusterVersionsFluentBuilder::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>
10 /// - [`marker(impl Into<String>)`](crate::operation::describe_cluster_versions::builders::DescribeClusterVersionsFluentBuilder::marker) / [`set_marker(Option<String>)`](crate::operation::describe_cluster_versions::builders::DescribeClusterVersionsFluentBuilder::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>DescribeClusterVersions</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><br>
11 /// - On success, responds with [`DescribeClusterVersionsOutput`](crate::operation::describe_cluster_versions::DescribeClusterVersionsOutput) with field(s):
12 /// - [`marker(Option<String>)`](crate::operation::describe_cluster_versions::DescribeClusterVersionsOutput::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>
13 /// - [`cluster_versions(Option<Vec::<ClusterVersion>>)`](crate::operation::describe_cluster_versions::DescribeClusterVersionsOutput::cluster_versions): <p>A list of <code>Version</code> elements.</p>
14 /// - On failure, responds with [`SdkError<DescribeClusterVersionsError>`](crate::operation::describe_cluster_versions::DescribeClusterVersionsError)
15 pub fn describe_cluster_versions(&self) -> crate::operation::describe_cluster_versions::builders::DescribeClusterVersionsFluentBuilder {
16 crate::operation::describe_cluster_versions::builders::DescribeClusterVersionsFluentBuilder::new(self.handle.clone())
17 }
18}