| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.EMR.PutManagedScalingPolicy
Description
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.
Constructors
| PutManagedScalingPolicy' | |
Fields
| |
Instances
newPutManagedScalingPolicy Source #
Arguments
| :: Text | |
| -> ManagedScalingPolicy | |
| -> PutManagedScalingPolicy |
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.
Constructors
| PutManagedScalingPolicyResponse' | |
Fields
| |
Instances
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.