amazonka-emr-2.0: Amazon EMR SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EMR.ListClusters

Description

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.

This operation returns paginated results.

Synopsis

Creating a Request

data ListClusters Source #

This input determines how the ListClusters action filters the list of clusters that it returns.

See: newListClusters smart constructor.

Constructors

ListClusters' 

Fields

  • clusterStates :: Maybe [ClusterState]

    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.

  • createdAfter :: Maybe POSIX

    The creation date and time beginning value filter for listing clusters.

  • createdBefore :: Maybe POSIX

    The creation date and time end value filter for listing clusters.

  • marker :: Maybe Text

    The pagination token that indicates the next set of results to retrieve.

Instances

Instances details
ToJSON ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

ToHeaders ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

ToPath ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

ToQuery ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

AWSPager ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

AWSRequest ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Associated Types

type AWSResponse ListClusters #

Generic ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Associated Types

type Rep ListClusters :: Type -> Type #

Read ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Show ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

NFData ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Methods

rnf :: ListClusters -> () #

Eq ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Hashable ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

type AWSResponse ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

type Rep ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

type Rep ListClusters = D1 ('MetaData "ListClusters" "Amazonka.EMR.ListClusters" "amazonka-emr-2.0-B3cWhP6sdymF3IBUMdPGcd" 'False) (C1 ('MetaCons "ListClusters'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clusterStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ClusterState])) :*: S1 ('MetaSel ('Just "createdAfter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "createdBefore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListClusters :: ListClusters Source #

Create a value of ListClusters with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:clusterStates:ListClusters', listClusters_clusterStates - 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.

$sel:createdAfter:ListClusters', listClusters_createdAfter - The creation date and time beginning value filter for listing clusters.

$sel:createdBefore:ListClusters', listClusters_createdBefore - The creation date and time end value filter for listing clusters.

ListClusters, listClusters_marker - The pagination token that indicates the next set of results to retrieve.

Request Lenses

listClusters_clusterStates :: Lens' ListClusters (Maybe [ClusterState]) Source #

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.

listClusters_createdAfter :: Lens' ListClusters (Maybe UTCTime) Source #

The creation date and time beginning value filter for listing clusters.

listClusters_createdBefore :: Lens' ListClusters (Maybe UTCTime) Source #

The creation date and time end value filter for listing clusters.

listClusters_marker :: Lens' ListClusters (Maybe Text) Source #

The pagination token that indicates the next set of results to retrieve.

Destructuring the Response

data ListClustersResponse Source #

This contains a ClusterSummaryList with the cluster details; for example, the cluster IDs, names, and status.

See: newListClustersResponse smart constructor.

Constructors

ListClustersResponse' 

Fields

Instances

Instances details
Generic ListClustersResponse Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Associated Types

type Rep ListClustersResponse :: Type -> Type #

Read ListClustersResponse Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Show ListClustersResponse Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

NFData ListClustersResponse Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Methods

rnf :: ListClustersResponse -> () #

Eq ListClustersResponse Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

type Rep ListClustersResponse Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

type Rep ListClustersResponse = D1 ('MetaData "ListClustersResponse" "Amazonka.EMR.ListClusters" "amazonka-emr-2.0-B3cWhP6sdymF3IBUMdPGcd" 'False) (C1 ('MetaCons "ListClustersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clusters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ClusterSummary])) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListClustersResponse Source #

Create a value of ListClustersResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:clusters:ListClustersResponse', listClustersResponse_clusters - The list of clusters for the account based on the given filters.

ListClusters, listClustersResponse_marker - The pagination token that indicates the next set of results to retrieve.

$sel:httpStatus:ListClustersResponse', listClustersResponse_httpStatus - The response's http status code.

Response Lenses

listClustersResponse_clusters :: Lens' ListClustersResponse (Maybe [ClusterSummary]) Source #

The list of clusters for the account based on the given filters.

listClustersResponse_marker :: Lens' ListClustersResponse (Maybe Text) Source #

The pagination token that indicates the next set of results to retrieve.