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 a managed scaling policy for an Amazon EMR cluster. The managed scaling policy defines the limits for resources, such as EC2 instances that can be added or terminated from a cluster. The policy only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
Synopsis
- data PutManagedScalingPolicy = PutManagedScalingPolicy' {}
- newPutManagedScalingPolicy :: Text -> ManagedScalingPolicy -> PutManagedScalingPolicy
- putManagedScalingPolicy_clusterId :: Lens' PutManagedScalingPolicy Text
- putManagedScalingPolicy_managedScalingPolicy :: Lens' PutManagedScalingPolicy ManagedScalingPolicy
- data PutManagedScalingPolicyResponse = PutManagedScalingPolicyResponse' {
- httpStatus :: Int
- newPutManagedScalingPolicyResponse :: Int -> PutManagedScalingPolicyResponse
- putManagedScalingPolicyResponse_httpStatus :: Lens' PutManagedScalingPolicyResponse Int
Creating a Request
data PutManagedScalingPolicy Source #
See: newPutManagedScalingPolicy
smart constructor.
PutManagedScalingPolicy' | |
|
Instances
newPutManagedScalingPolicy Source #
Create a value of PutManagedScalingPolicy
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:clusterId:PutManagedScalingPolicy'
, putManagedScalingPolicy_clusterId
- Specifies the ID of an EMR cluster where the managed scaling policy is
attached.
$sel:managedScalingPolicy:PutManagedScalingPolicy'
, putManagedScalingPolicy_managedScalingPolicy
- Specifies the constraints for the managed scaling policy.
Request Lenses
putManagedScalingPolicy_clusterId :: Lens' PutManagedScalingPolicy Text Source #
Specifies the ID of an EMR cluster where the managed scaling policy is attached.
putManagedScalingPolicy_managedScalingPolicy :: Lens' PutManagedScalingPolicy ManagedScalingPolicy Source #
Specifies the constraints for the managed scaling policy.
Destructuring the Response
data PutManagedScalingPolicyResponse Source #
See: newPutManagedScalingPolicyResponse
smart constructor.
PutManagedScalingPolicyResponse' | |
|
Instances
Eq PutManagedScalingPolicyResponse Source # | |
Read PutManagedScalingPolicyResponse Source # | |
Show PutManagedScalingPolicyResponse Source # | |
Defined in Amazonka.EMR.PutManagedScalingPolicy | |
Generic PutManagedScalingPolicyResponse Source # | |
NFData PutManagedScalingPolicyResponse Source # | |
Defined in Amazonka.EMR.PutManagedScalingPolicy rnf :: PutManagedScalingPolicyResponse -> () # | |
type Rep PutManagedScalingPolicyResponse Source # | |
Defined in Amazonka.EMR.PutManagedScalingPolicy type Rep PutManagedScalingPolicyResponse = D1 ('MetaData "PutManagedScalingPolicyResponse" "Amazonka.EMR.PutManagedScalingPolicy" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "PutManagedScalingPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutManagedScalingPolicyResponse Source #
Create a value of PutManagedScalingPolicyResponse
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:PutManagedScalingPolicyResponse'
, putManagedScalingPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putManagedScalingPolicyResponse_httpStatus :: Lens' PutManagedScalingPolicyResponse Int Source #
The response's http status code.