libZSservicesZSamazonka-emrZSamazonka-emr
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

  • createdAfter :: Maybe POSIX

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

  • marker :: Maybe Text

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

  • 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.

  • createdBefore :: Maybe POSIX

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

Instances

Instances details
Eq ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Read ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Show ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Generic ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Associated Types

type Rep ListClusters :: Type -> Type #

NFData ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Methods

rnf :: ListClusters -> () #

Hashable ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

ToJSON 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 #

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

type Rep ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

type Rep ListClusters = D1 ('MetaData "ListClusters" "Amazonka.EMR.ListClusters" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "ListClusters'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "createdAfter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "clusterStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ClusterState])) :*: S1 ('MetaSel ('Just "createdBefore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))))
type AWSResponse ListClusters Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

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:createdAfter:ListClusters', listClusters_createdAfter - The creation date and time beginning value filter for listing clusters.

$sel:marker:ListClusters', listClusters_marker - The pagination token that indicates the next set of results to retrieve.

$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:createdBefore:ListClusters', listClusters_createdBefore - The creation date and time end value filter for listing clusters.

Request Lenses

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

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

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

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

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_createdBefore :: Lens' ListClusters (Maybe UTCTime) Source #

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

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
Eq ListClustersResponse Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Read ListClustersResponse Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Show ListClustersResponse Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Generic ListClustersResponse Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Associated Types

type Rep ListClustersResponse :: Type -> Type #

NFData ListClustersResponse Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

Methods

rnf :: ListClustersResponse -> () #

type Rep ListClustersResponse Source # 
Instance details

Defined in Amazonka.EMR.ListClusters

type Rep ListClustersResponse = D1 ('MetaData "ListClustersResponse" "Amazonka.EMR.ListClusters" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "ListClustersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "clusters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ClusterSummary])) :*: 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:marker:ListClusters', listClustersResponse_marker - The pagination token that indicates the next set of results to retrieve.

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

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

Response Lenses

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

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

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

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