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

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

data SetTerminationProtection Source #

The input argument to the TerminationProtection operation.

See: newSetTerminationProtection smart constructor.

Constructors

SetTerminationProtection' 

Fields

  • jobFlowIds :: [Text]

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

  • terminationProtected :: Bool

    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.

Instances

Instances details
Eq SetTerminationProtection Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

Read SetTerminationProtection Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

Show SetTerminationProtection Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

Generic SetTerminationProtection Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

Associated Types

type Rep SetTerminationProtection :: Type -> Type #

NFData SetTerminationProtection Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

Hashable SetTerminationProtection Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

ToJSON SetTerminationProtection Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

AWSRequest SetTerminationProtection Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

ToHeaders SetTerminationProtection Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

ToPath SetTerminationProtection Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

ToQuery SetTerminationProtection Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

type Rep SetTerminationProtection Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

type Rep SetTerminationProtection = D1 ('MetaData "SetTerminationProtection" "Amazonka.EMR.SetTerminationProtection" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "SetTerminationProtection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobFlowIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "terminationProtected") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))
type AWSResponse SetTerminationProtection Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

newSetTerminationProtection Source #

Create a value of SetTerminationProtection 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:jobFlowIds:SetTerminationProtection', setTerminationProtection_jobFlowIds - A list of strings that uniquely identify the clusters to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .

$sel:terminationProtected:SetTerminationProtection', setTerminationProtection_terminationProtected - 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.

Request Lenses

setTerminationProtection_jobFlowIds :: 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 .

setTerminationProtection_terminationProtected :: 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

data SetTerminationProtectionResponse Source #

See: newSetTerminationProtectionResponse smart constructor.

Instances

Instances details
Eq SetTerminationProtectionResponse Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

Read SetTerminationProtectionResponse Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

Show SetTerminationProtectionResponse Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

Generic SetTerminationProtectionResponse Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

Associated Types

type Rep SetTerminationProtectionResponse :: Type -> Type #

NFData SetTerminationProtectionResponse Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

type Rep SetTerminationProtectionResponse Source # 
Instance details

Defined in Amazonka.EMR.SetTerminationProtection

type Rep SetTerminationProtectionResponse = D1 ('MetaData "SetTerminationProtectionResponse" "Amazonka.EMR.SetTerminationProtection" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "SetTerminationProtectionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newSetTerminationProtectionResponse :: SetTerminationProtectionResponse Source #

Create a value of SetTerminationProtectionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.