1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeClusters`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`filters(impl Into<String>, Vec::<String>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::filters) / [`set_filters(Option<HashMap::<String, Vec::<String>>>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::set_filters):<br>required: **false**<br><p>One or more filters to limit the items returned in the response.</p> <p>Use the <code>clusterIds</code> filter to return only the specified clusters. Specify clusters by their cluster identifier (ID).</p> <p>Use the <code>vpcIds</code> filter to return only the clusters in the specified virtual private clouds (VPCs). Specify VPCs by their VPC identifier (ID).</p> <p>Use the <code>states</code> filter to return only clusters that match the specified state.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::set_next_token):<br>required: **false**<br><p>The <code>NextToken</code> value that you received in the previous response. Use this value to get more clusters.</p><br>
    ///   - [`max_results(i32)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of clusters to return in the response. When there are more clusters than the number you specify, the response contains a <code>NextToken</code> value.</p><br>
    /// - On success, responds with [`DescribeClustersOutput`](crate::operation::describe_clusters::DescribeClustersOutput) with field(s):
    ///   - [`clusters(Option<Vec::<Cluster>>)`](crate::operation::describe_clusters::DescribeClustersOutput::clusters): <p>A list of clusters.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::describe_clusters::DescribeClustersOutput::next_token): <p>An opaque string that indicates that the response contains only a subset of clusters. Use this value in a subsequent <code>DescribeClusters</code> request to get more clusters.</p>
    /// - On failure, responds with [`SdkError<DescribeClustersError>`](crate::operation::describe_clusters::DescribeClustersError)
    pub fn describe_clusters(&self) -> crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder {
        crate::operation::describe_clusters::builders::DescribeClustersFluentBuilder::new(self.handle.clone())
    }
}