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 automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric.
Synopsis
- data PutAutoScalingPolicy = PutAutoScalingPolicy' {}
- newPutAutoScalingPolicy :: Text -> Text -> AutoScalingPolicy -> PutAutoScalingPolicy
- putAutoScalingPolicy_clusterId :: Lens' PutAutoScalingPolicy Text
- putAutoScalingPolicy_instanceGroupId :: Lens' PutAutoScalingPolicy Text
- putAutoScalingPolicy_autoScalingPolicy :: Lens' PutAutoScalingPolicy AutoScalingPolicy
- data PutAutoScalingPolicyResponse = PutAutoScalingPolicyResponse' {}
- newPutAutoScalingPolicyResponse :: Int -> PutAutoScalingPolicyResponse
- putAutoScalingPolicyResponse_clusterArn :: Lens' PutAutoScalingPolicyResponse (Maybe Text)
- putAutoScalingPolicyResponse_clusterId :: Lens' PutAutoScalingPolicyResponse (Maybe Text)
- putAutoScalingPolicyResponse_autoScalingPolicy :: Lens' PutAutoScalingPolicyResponse (Maybe AutoScalingPolicyDescription)
- putAutoScalingPolicyResponse_instanceGroupId :: Lens' PutAutoScalingPolicyResponse (Maybe Text)
- putAutoScalingPolicyResponse_httpStatus :: Lens' PutAutoScalingPolicyResponse Int
Creating a Request
data PutAutoScalingPolicy Source #
See: newPutAutoScalingPolicy
smart constructor.
PutAutoScalingPolicy' | |
|
Instances
newPutAutoScalingPolicy Source #
:: Text | |
-> Text | |
-> AutoScalingPolicy | |
-> PutAutoScalingPolicy |
Create a value of PutAutoScalingPolicy
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:PutAutoScalingPolicy'
, putAutoScalingPolicy_clusterId
- Specifies the ID of a cluster. The instance group to which the automatic
scaling policy is applied is within this cluster.
$sel:instanceGroupId:PutAutoScalingPolicy'
, putAutoScalingPolicy_instanceGroupId
- Specifies the ID of the instance group to which the automatic scaling
policy is applied.
$sel:autoScalingPolicy:PutAutoScalingPolicy'
, putAutoScalingPolicy_autoScalingPolicy
- Specifies the definition of the automatic scaling policy.
Request Lenses
putAutoScalingPolicy_clusterId :: Lens' PutAutoScalingPolicy Text Source #
Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.
putAutoScalingPolicy_instanceGroupId :: Lens' PutAutoScalingPolicy Text Source #
Specifies the ID of the instance group to which the automatic scaling policy is applied.
putAutoScalingPolicy_autoScalingPolicy :: Lens' PutAutoScalingPolicy AutoScalingPolicy Source #
Specifies the definition of the automatic scaling policy.
Destructuring the Response
data PutAutoScalingPolicyResponse Source #
See: newPutAutoScalingPolicyResponse
smart constructor.
PutAutoScalingPolicyResponse' | |
|
Instances
newPutAutoScalingPolicyResponse Source #
Create a value of PutAutoScalingPolicyResponse
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:clusterArn:PutAutoScalingPolicyResponse'
, putAutoScalingPolicyResponse_clusterArn
- The Amazon Resource Name (ARN) of the cluster.
$sel:clusterId:PutAutoScalingPolicy'
, putAutoScalingPolicyResponse_clusterId
- Specifies the ID of a cluster. The instance group to which the automatic
scaling policy is applied is within this cluster.
$sel:autoScalingPolicy:PutAutoScalingPolicy'
, putAutoScalingPolicyResponse_autoScalingPolicy
- The automatic scaling policy definition.
$sel:instanceGroupId:PutAutoScalingPolicy'
, putAutoScalingPolicyResponse_instanceGroupId
- Specifies the ID of the instance group to which the scaling policy is
applied.
$sel:httpStatus:PutAutoScalingPolicyResponse'
, putAutoScalingPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putAutoScalingPolicyResponse_clusterArn :: Lens' PutAutoScalingPolicyResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the cluster.
putAutoScalingPolicyResponse_clusterId :: Lens' PutAutoScalingPolicyResponse (Maybe Text) Source #
Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.
putAutoScalingPolicyResponse_autoScalingPolicy :: Lens' PutAutoScalingPolicyResponse (Maybe AutoScalingPolicyDescription) Source #
The automatic scaling policy definition.
putAutoScalingPolicyResponse_instanceGroupId :: Lens' PutAutoScalingPolicyResponse (Maybe Text) Source #
Specifies the ID of the instance group to which the scaling policy is applied.
putAutoScalingPolicyResponse_httpStatus :: Lens' PutAutoScalingPolicyResponse Int Source #
The response's http status code.