amazonka-emr-1.6.1: Amazon Elastic MapReduce SDK.

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

Network.AWS.EMR.ListClusters

Contents

Description

Provides the status of all clusters visible to this AWS 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 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

listClusters :: ListClusters Source #

Creates a value of ListClusters with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lcCreatedAfter - The creation date and time beginning value filter for listing clusters.
  • lcMarker - The pagination token that indicates the next set of results to retrieve.
  • lcClusterStates - The cluster state filters to apply when listing clusters.
  • lcCreatedBefore - The creation date and time end value filter for listing clusters.

data ListClusters Source #

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

See: listClusters smart constructor.

Instances
Eq ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Data ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListClusters -> c ListClusters #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListClusters #

toConstr :: ListClusters -> Constr #

dataTypeOf :: ListClusters -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListClusters) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListClusters) #

gmapT :: (forall b. Data b => b -> b) -> ListClusters -> ListClusters #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListClusters -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListClusters -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListClusters -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListClusters -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListClusters -> m ListClusters #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListClusters -> m ListClusters #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListClusters -> m ListClusters #

Read ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Show ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Generic ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Associated Types

type Rep ListClusters :: Type -> Type #

Hashable ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

ToJSON ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

AWSPager ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

AWSRequest ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Associated Types

type Rs ListClusters :: Type #

ToHeaders ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

ToPath ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

ToQuery ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

NFData ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Methods

rnf :: ListClusters -> () #

type Rep ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

type Rep ListClusters = D1 (MetaData "ListClusters" "Network.AWS.EMR.ListClusters" "amazonka-emr-1.6.1-2s0PTavy7KJFxTopWKa47I" False) (C1 (MetaCons "ListClusters'" PrefixI True) ((S1 (MetaSel (Just "_lcCreatedAfter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 (MetaSel (Just "_lcMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_lcClusterStates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ClusterState])) :*: S1 (MetaSel (Just "_lcCreatedBefore") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)))))
type Rs ListClusters Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Request Lenses

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

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

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

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

lcClusterStates :: Lens' ListClusters [ClusterState] Source #

The cluster state filters to apply when listing clusters.

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

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

Destructuring the Response

listClustersResponse Source #

Creates a value of ListClustersResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lcrsMarker - The pagination token that indicates the next set of results to retrieve.
  • lcrsClusters - The list of clusters for the account based on the given filters.
  • lcrsResponseStatus - -- | The response status code.

data ListClustersResponse Source #

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

See: listClustersResponse smart constructor.

Instances
Eq ListClustersResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Data ListClustersResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListClustersResponse -> c ListClustersResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListClustersResponse #

toConstr :: ListClustersResponse -> Constr #

dataTypeOf :: ListClustersResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListClustersResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListClustersResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListClustersResponse -> ListClustersResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListClustersResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListClustersResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListClustersResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListClustersResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListClustersResponse -> m ListClustersResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListClustersResponse -> m ListClustersResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListClustersResponse -> m ListClustersResponse #

Read ListClustersResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Show ListClustersResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Generic ListClustersResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Associated Types

type Rep ListClustersResponse :: Type -> Type #

NFData ListClustersResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

Methods

rnf :: ListClustersResponse -> () #

type Rep ListClustersResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListClusters

type Rep ListClustersResponse = D1 (MetaData "ListClustersResponse" "Network.AWS.EMR.ListClusters" "amazonka-emr-1.6.1-2s0PTavy7KJFxTopWKa47I" False) (C1 (MetaCons "ListClustersResponse'" PrefixI True) (S1 (MetaSel (Just "_lcrsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lcrsClusters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ClusterSummary])) :*: S1 (MetaSel (Just "_lcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

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

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

lcrsClusters :: Lens' ListClustersResponse [ClusterSummary] Source #

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

lcrsResponseStatus :: Lens' ListClustersResponse Int Source #

  • - | The response status code.