Struct aws_sdk_emr::client::fluent_builders::ListClusters
source · pub struct ListClusters { /* private fields */ }Expand description
Fluent builder constructing a request to ListClusters.
Provides the status of all clusters visible to this Amazon Web Services account. Allows you to filter the list of clusters based on certain criteria; for example, filtering by cluster creation date and time or by status. This call returns a maximum of 50 clusters in unsorted order per call, but returns a marker to track the paging of the cluster list across multiple ListClusters calls.
Implementations§
source§impl ListClusters
impl ListClusters
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ListClusters, AwsResponseRetryClassifier>, SdkError<ListClustersError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ListClusters, AwsResponseRetryClassifier>, SdkError<ListClustersError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ListClustersOutput, SdkError<ListClustersError>>
pub async fn send(
self
) -> Result<ListClustersOutput, SdkError<ListClustersError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn into_paginator(self) -> ListClustersPaginator
pub fn into_paginator(self) -> ListClustersPaginator
Create a paginator for this request
Paginators are used by calling send().await which returns a Stream.
sourcepub fn created_after(self, input: DateTime) -> Self
pub fn created_after(self, input: DateTime) -> Self
The creation date and time beginning value filter for listing clusters.
sourcepub fn set_created_after(self, input: Option<DateTime>) -> Self
pub fn set_created_after(self, input: Option<DateTime>) -> Self
The creation date and time beginning value filter for listing clusters.
sourcepub fn created_before(self, input: DateTime) -> Self
pub fn created_before(self, input: DateTime) -> Self
The creation date and time end value filter for listing clusters.
sourcepub fn set_created_before(self, input: Option<DateTime>) -> Self
pub fn set_created_before(self, input: Option<DateTime>) -> Self
The creation date and time end value filter for listing clusters.
sourcepub fn cluster_states(self, input: ClusterState) -> Self
pub fn cluster_states(self, input: ClusterState) -> Self
Appends an item to ClusterStates.
To override the contents of this collection use set_cluster_states.
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.
sourcepub fn set_cluster_states(self, input: Option<Vec<ClusterState>>) -> Self
pub fn set_cluster_states(self, input: Option<Vec<ClusterState>>) -> Self
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.
sourcepub fn marker(self, input: impl Into<String>) -> Self
pub fn marker(self, input: impl Into<String>) -> Self
The pagination token that indicates the next set of results to retrieve.
sourcepub fn set_marker(self, input: Option<String>) -> Self
pub fn set_marker(self, input: Option<String>) -> Self
The pagination token that indicates the next set of results to retrieve.
Trait Implementations§
source§impl Clone for ListClusters
impl Clone for ListClusters
source§fn clone(&self) -> ListClusters
fn clone(&self) -> ListClusters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more