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

Contents

Description

SetTerminationProtection locks a cluster (job flow) so the EC2 instances in the cluster cannot be terminated by user intervention, an API call, or in the event of a job-flow error. The cluster still terminates upon successful completion of the job flow. Calling SetTerminationProtection on a cluster is similar to calling the Amazon EC2 DisableAPITermination API on all EC2 instances in a cluster.

SetTerminationProtection is used to prevent accidental termination of a cluster and to ensure that in the event of an error, the instances persist so that you can recover any data stored in their ephemeral instance storage.

To terminate a cluster that has been locked by setting SetTerminationProtection to true , you must first unlock the job flow by a subsequent call to SetTerminationProtection in which you set the value to false .

For more information, seeManaging Cluster Termination in the Amazon EMR Management Guide .

Synopsis

Creating a Request

setTerminationProtection Source #

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

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

  • stpJobFlowIds - A list of strings that uniquely identify the clusters to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .
  • stpTerminationProtected - A Boolean that indicates whether to protect the cluster and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error.

data SetTerminationProtection Source #

The input argument to the TerminationProtection operation.

See: setTerminationProtection smart constructor.

Instances

Eq SetTerminationProtection Source # 
Data SetTerminationProtection Source # 

Methods

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

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

toConstr :: SetTerminationProtection -> Constr #

dataTypeOf :: SetTerminationProtection -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetTerminationProtection Source # 
Show SetTerminationProtection Source # 
Generic SetTerminationProtection Source # 
Hashable SetTerminationProtection Source # 
ToJSON SetTerminationProtection Source # 
NFData SetTerminationProtection Source # 
AWSRequest SetTerminationProtection Source # 
ToHeaders SetTerminationProtection Source # 
ToPath SetTerminationProtection Source # 
ToQuery SetTerminationProtection Source # 
type Rep SetTerminationProtection Source # 
type Rep SetTerminationProtection = D1 * (MetaData "SetTerminationProtection" "Network.AWS.EMR.SetTerminationProtection" "amazonka-emr-1.6.0-Gh02fq80On6JQmEHB2V13H" False) (C1 * (MetaCons "SetTerminationProtection'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_stpJobFlowIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [Text])) (S1 * (MetaSel (Just Symbol "_stpTerminationProtected") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Bool))))
type Rs SetTerminationProtection Source # 

Request Lenses

stpJobFlowIds :: Lens' SetTerminationProtection [Text] Source #

A list of strings that uniquely identify the clusters to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .

stpTerminationProtected :: Lens' SetTerminationProtection Bool Source #

A Boolean that indicates whether to protect the cluster and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error.

Destructuring the Response

setTerminationProtectionResponse :: SetTerminationProtectionResponse Source #

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

data SetTerminationProtectionResponse Source #

See: setTerminationProtectionResponse smart constructor.

Instances

Eq SetTerminationProtectionResponse Source # 
Data SetTerminationProtectionResponse Source # 

Methods

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

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

toConstr :: SetTerminationProtectionResponse -> Constr #

dataTypeOf :: SetTerminationProtectionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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