Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data PutAutoTerminationPolicy = PutAutoTerminationPolicy' {}
- newPutAutoTerminationPolicy :: Text -> PutAutoTerminationPolicy
- putAutoTerminationPolicy_autoTerminationPolicy :: Lens' PutAutoTerminationPolicy (Maybe AutoTerminationPolicy)
- putAutoTerminationPolicy_clusterId :: Lens' PutAutoTerminationPolicy Text
- data PutAutoTerminationPolicyResponse = PutAutoTerminationPolicyResponse' {
- httpStatus :: Int
- newPutAutoTerminationPolicyResponse :: Int -> PutAutoTerminationPolicyResponse
- putAutoTerminationPolicyResponse_httpStatus :: Lens' PutAutoTerminationPolicyResponse Int
Creating a Request
data PutAutoTerminationPolicy Source #
See: newPutAutoTerminationPolicy
smart constructor.
PutAutoTerminationPolicy' | |
|
Instances
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.
PutAutoTerminationPolicyResponse' | |
|
Instances
Eq PutAutoTerminationPolicyResponse Source # | |
Read PutAutoTerminationPolicyResponse Source # | |
Show PutAutoTerminationPolicyResponse Source # | |
Defined in Amazonka.EMR.PutAutoTerminationPolicy | |
Generic PutAutoTerminationPolicyResponse Source # | |
NFData PutAutoTerminationPolicyResponse Source # | |
Defined in Amazonka.EMR.PutAutoTerminationPolicy rnf :: PutAutoTerminationPolicyResponse -> () # | |
type Rep PutAutoTerminationPolicyResponse Source # | |
Defined in Amazonka.EMR.PutAutoTerminationPolicy type Rep PutAutoTerminationPolicyResponse = D1 ('MetaData "PutAutoTerminationPolicyResponse" "Amazonka.EMR.PutAutoTerminationPolicy" "libZSservicesZSamazonka-emrZSamazonka-emr" '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
putAutoTerminationPolicyResponse_httpStatus :: Lens' PutAutoTerminationPolicyResponse Int Source #
The response's http status code.