aws_sdk_emr/client/
list_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 [`ListClusters`](crate::operation::list_clusters::builders::ListClustersFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_clusters::builders::ListClustersFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`created_after(DateTime)`](crate::operation::list_clusters::builders::ListClustersFluentBuilder::created_after) / [`set_created_after(Option<DateTime>)`](crate::operation::list_clusters::builders::ListClustersFluentBuilder::set_created_after):<br>required: **false**<br><p>The creation date and time beginning value filter for listing clusters.</p><br>
8    ///   - [`created_before(DateTime)`](crate::operation::list_clusters::builders::ListClustersFluentBuilder::created_before) / [`set_created_before(Option<DateTime>)`](crate::operation::list_clusters::builders::ListClustersFluentBuilder::set_created_before):<br>required: **false**<br><p>The creation date and time end value filter for listing clusters.</p><br>
9    ///   - [`cluster_states(ClusterState)`](crate::operation::list_clusters::builders::ListClustersFluentBuilder::cluster_states) / [`set_cluster_states(Option<Vec::<ClusterState>>)`](crate::operation::list_clusters::builders::ListClustersFluentBuilder::set_cluster_states):<br>required: **false**<br><p>The cluster state filters to apply when listing clusters. Clusters that change state while this action runs may be not be returned as expected in the list of clusters.</p><br>
10    ///   - [`marker(impl Into<String>)`](crate::operation::list_clusters::builders::ListClustersFluentBuilder::marker) / [`set_marker(Option<String>)`](crate::operation::list_clusters::builders::ListClustersFluentBuilder::set_marker):<br>required: **false**<br><p>The pagination token that indicates the next set of results to retrieve.</p><br>
11    /// - On success, responds with [`ListClustersOutput`](crate::operation::list_clusters::ListClustersOutput) with field(s):
12    ///   - [`clusters(Option<Vec::<ClusterSummary>>)`](crate::operation::list_clusters::ListClustersOutput::clusters): <p>The list of clusters for the account based on the given filters.</p>
13    ///   - [`marker(Option<String>)`](crate::operation::list_clusters::ListClustersOutput::marker): <p>The pagination token that indicates the next set of results to retrieve.</p>
14    /// - On failure, responds with [`SdkError<ListClustersError>`](crate::operation::list_clusters::ListClustersError)
15    pub fn list_clusters(&self) -> crate::operation::list_clusters::builders::ListClustersFluentBuilder {
16        crate::operation::list_clusters::builders::ListClustersFluentBuilder::new(self.handle.clone())
17    }
18}