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

Contents

Description

Provides information for all active EC2 instances and EC2 instances terminated in the last 30 days, up to a maximum of 2,000. EC2 instances in any of the following states are considered active: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING.

This operation returns paginated results.

Synopsis

Creating a Request

listInstances Source #

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

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

  • liInstanceGroupTypes - The type of instance group for which to list the instances.
  • liInstanceFleetType - The node type of the instance fleet. For example MASTER, CORE, or TASK.
  • liMarker - The pagination token that indicates the next set of results to retrieve.
  • liInstanceFleetId - The unique identifier of the instance fleet.
  • liInstanceStates - A list of instance states that will filter the instances returned with this request.
  • liInstanceGroupId - The identifier of the instance group for which to list the instances.
  • liClusterId - The identifier of the cluster for which to list the instances.

data ListInstances Source #

This input determines which instances to list.

See: listInstances smart constructor.

Instances
Eq ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Data ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Methods

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

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

toConstr :: ListInstances -> Constr #

dataTypeOf :: ListInstances -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Show ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Generic ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Associated Types

type Rep ListInstances :: Type -> Type #

Hashable ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

ToJSON ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

AWSPager ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

AWSRequest ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Associated Types

type Rs ListInstances :: Type #

ToHeaders ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

ToPath ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

ToQuery ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

NFData ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Methods

rnf :: ListInstances -> () #

type Rep ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

type Rep ListInstances = D1 (MetaData "ListInstances" "Network.AWS.EMR.ListInstances" "amazonka-emr-1.6.1-2s0PTavy7KJFxTopWKa47I" False) (C1 (MetaCons "ListInstances'" PrefixI True) ((S1 (MetaSel (Just "_liInstanceGroupTypes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [InstanceGroupType])) :*: (S1 (MetaSel (Just "_liInstanceFleetType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe InstanceFleetType)) :*: S1 (MetaSel (Just "_liMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_liInstanceFleetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_liInstanceStates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [InstanceState]))) :*: (S1 (MetaSel (Just "_liInstanceGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_liClusterId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ListInstances Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Request Lenses

liInstanceGroupTypes :: Lens' ListInstances [InstanceGroupType] Source #

The type of instance group for which to list the instances.

liInstanceFleetType :: Lens' ListInstances (Maybe InstanceFleetType) Source #

The node type of the instance fleet. For example MASTER, CORE, or TASK.

liMarker :: Lens' ListInstances (Maybe Text) Source #

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

liInstanceFleetId :: Lens' ListInstances (Maybe Text) Source #

The unique identifier of the instance fleet.

liInstanceStates :: Lens' ListInstances [InstanceState] Source #

A list of instance states that will filter the instances returned with this request.

liInstanceGroupId :: Lens' ListInstances (Maybe Text) Source #

The identifier of the instance group for which to list the instances.

liClusterId :: Lens' ListInstances Text Source #

The identifier of the cluster for which to list the instances.

Destructuring the Response

listInstancesResponse Source #

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

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

  • lirsMarker - The pagination token that indicates the next set of results to retrieve.
  • lirsInstances - The list of instances for the cluster and given filters.
  • lirsResponseStatus - -- | The response status code.

data ListInstancesResponse Source #

This output contains the list of instances.

See: listInstancesResponse smart constructor.

Instances
Eq ListInstancesResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Data ListInstancesResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Methods

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

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

toConstr :: ListInstancesResponse -> Constr #

dataTypeOf :: ListInstancesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListInstancesResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Show ListInstancesResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Generic ListInstancesResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Associated Types

type Rep ListInstancesResponse :: Type -> Type #

NFData ListInstancesResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

Methods

rnf :: ListInstancesResponse -> () #

type Rep ListInstancesResponse Source # 
Instance details

Defined in Network.AWS.EMR.ListInstances

type Rep ListInstancesResponse = D1 (MetaData "ListInstancesResponse" "Network.AWS.EMR.ListInstances" "amazonka-emr-1.6.1-2s0PTavy7KJFxTopWKa47I" False) (C1 (MetaCons "ListInstancesResponse'" PrefixI True) (S1 (MetaSel (Just "_lirsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lirsInstances") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Instance])) :*: S1 (MetaSel (Just "_lirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

lirsMarker :: Lens' ListInstancesResponse (Maybe Text) Source #

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

lirsInstances :: Lens' ListInstancesResponse [Instance] Source #

The list of instances for the cluster and given filters.

lirsResponseStatus :: Lens' ListInstancesResponse Int Source #

  • - | The response status code.