amazonka-emr-1.6.0: 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.TerminateJobFlows

Contents

Description

TerminateJobFlows shuts a list of clusters (job flows) down. When a job flow is shut down, any step not yet completed is canceled and the EC2 instances on which the cluster is running are stopped. Any log files not already saved are uploaded to Amazon S3 if a LogUri was specified when the cluster was created.

The maximum number of clusters allowed is 10. The call to TerminateJobFlows is asynchronous. Depending on the configuration of the cluster, it may take up to 1-5 minutes for the cluster to completely terminate and release allocated resources, such as Amazon EC2 instances.

Synopsis

Creating a Request

terminateJobFlows :: TerminateJobFlows #

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

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

data TerminateJobFlows #

Input to the TerminateJobFlows operation.

See: terminateJobFlows smart constructor.

Instances

Eq TerminateJobFlows # 
Data TerminateJobFlows # 

Methods

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

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

toConstr :: TerminateJobFlows -> Constr #

dataTypeOf :: TerminateJobFlows -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TerminateJobFlows # 
Show TerminateJobFlows # 
Generic TerminateJobFlows # 
Hashable TerminateJobFlows # 
ToJSON TerminateJobFlows # 
NFData TerminateJobFlows # 

Methods

rnf :: TerminateJobFlows -> () #

AWSRequest TerminateJobFlows # 
ToHeaders TerminateJobFlows # 
ToPath TerminateJobFlows # 
ToQuery TerminateJobFlows # 
type Rep TerminateJobFlows # 
type Rep TerminateJobFlows = D1 * (MetaData "TerminateJobFlows" "Network.AWS.EMR.TerminateJobFlows" "amazonka-emr-1.6.0-IfkEnk2mHfrL7lT8VCMwMx" True) (C1 * (MetaCons "TerminateJobFlows'" PrefixI True) (S1 * (MetaSel (Just Symbol "_tjfJobFlowIds") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [Text])))
type Rs TerminateJobFlows # 

Request Lenses

tjfJobFlowIds :: Lens' TerminateJobFlows [Text] #

A list of job flows to be shutdown.

Destructuring the Response

terminateJobFlowsResponse :: TerminateJobFlowsResponse #

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

data TerminateJobFlowsResponse #

See: terminateJobFlowsResponse smart constructor.

Instances

Eq TerminateJobFlowsResponse # 
Data TerminateJobFlowsResponse # 

Methods

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

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

toConstr :: TerminateJobFlowsResponse -> Constr #

dataTypeOf :: TerminateJobFlowsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TerminateJobFlowsResponse # 
Show TerminateJobFlowsResponse # 
Generic TerminateJobFlowsResponse # 
NFData TerminateJobFlowsResponse # 
type Rep TerminateJobFlowsResponse # 
type Rep TerminateJobFlowsResponse = D1 * (MetaData "TerminateJobFlowsResponse" "Network.AWS.EMR.TerminateJobFlows" "amazonka-emr-1.6.0-IfkEnk2mHfrL7lT8VCMwMx" False) (C1 * (MetaCons "TerminateJobFlowsResponse'" PrefixI False) (U1 *))