amazonka-emr-2.0: Amazon EMR SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EMR.PutAutoTerminationPolicy

Description

Auto-termination is supported in Amazon EMR versions 5.30.0 and 6.1.0 and later. For more information, see Using an auto-termination policy.

Creates or updates an auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see Control cluster termination.

Synopsis

Creating a Request

data PutAutoTerminationPolicy Source #

See: newPutAutoTerminationPolicy smart constructor.

Constructors

PutAutoTerminationPolicy' 

Fields

Instances

Instances details
ToJSON PutAutoTerminationPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

ToHeaders PutAutoTerminationPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

ToPath PutAutoTerminationPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

ToQuery PutAutoTerminationPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

AWSRequest PutAutoTerminationPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

Generic PutAutoTerminationPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

Associated Types

type Rep PutAutoTerminationPolicy :: Type -> Type #

Read PutAutoTerminationPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

Show PutAutoTerminationPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

NFData PutAutoTerminationPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

Eq PutAutoTerminationPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

Hashable PutAutoTerminationPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

type AWSResponse PutAutoTerminationPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

type Rep PutAutoTerminationPolicy Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

type Rep PutAutoTerminationPolicy = D1 ('MetaData "PutAutoTerminationPolicy" "Amazonka.EMR.PutAutoTerminationPolicy" "amazonka-emr-2.0-B3cWhP6sdymF3IBUMdPGcd" 'False) (C1 ('MetaCons "PutAutoTerminationPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "autoTerminationPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AutoTerminationPolicy)) :*: S1 ('MetaSel ('Just "clusterId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newPutAutoTerminationPolicy Source #

Create a value of PutAutoTerminationPolicy 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:autoTerminationPolicy:PutAutoTerminationPolicy', putAutoTerminationPolicy_autoTerminationPolicy - Specifies the auto-termination policy to attach to the cluster.

$sel:clusterId:PutAutoTerminationPolicy', putAutoTerminationPolicy_clusterId - Specifies the ID of the Amazon EMR cluster to which the auto-termination policy will be attached.

Request Lenses

putAutoTerminationPolicy_autoTerminationPolicy :: Lens' PutAutoTerminationPolicy (Maybe AutoTerminationPolicy) Source #

Specifies the auto-termination policy to attach to the cluster.

putAutoTerminationPolicy_clusterId :: Lens' PutAutoTerminationPolicy Text Source #

Specifies the ID of the Amazon EMR cluster to which the auto-termination policy will be attached.

Destructuring the Response

data PutAutoTerminationPolicyResponse Source #

See: newPutAutoTerminationPolicyResponse smart constructor.

Constructors

PutAutoTerminationPolicyResponse' 

Fields

Instances

Instances details
Generic PutAutoTerminationPolicyResponse Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

Associated Types

type Rep PutAutoTerminationPolicyResponse :: Type -> Type #

Read PutAutoTerminationPolicyResponse Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

Show PutAutoTerminationPolicyResponse Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

NFData PutAutoTerminationPolicyResponse Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

Eq PutAutoTerminationPolicyResponse Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

type Rep PutAutoTerminationPolicyResponse Source # 
Instance details

Defined in Amazonka.EMR.PutAutoTerminationPolicy

type Rep PutAutoTerminationPolicyResponse = D1 ('MetaData "PutAutoTerminationPolicyResponse" "Amazonka.EMR.PutAutoTerminationPolicy" "amazonka-emr-2.0-B3cWhP6sdymF3IBUMdPGcd" 'False) (C1 ('MetaCons "PutAutoTerminationPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutAutoTerminationPolicyResponse Source #

Create a value of PutAutoTerminationPolicyResponse 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:httpStatus:PutAutoTerminationPolicyResponse', putAutoTerminationPolicyResponse_httpStatus - The response's http status code.

Response Lenses