Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
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.
- putAutoScalingPolicy :: Text -> Text -> AutoScalingPolicy -> PutAutoScalingPolicy
- data PutAutoScalingPolicy
- paspClusterId :: Lens' PutAutoScalingPolicy Text
- paspInstanceGroupId :: Lens' PutAutoScalingPolicy Text
- paspAutoScalingPolicy :: Lens' PutAutoScalingPolicy AutoScalingPolicy
- putAutoScalingPolicyResponse :: Int -> PutAutoScalingPolicyResponse
- data PutAutoScalingPolicyResponse
- pasprsClusterId :: Lens' PutAutoScalingPolicyResponse (Maybe Text)
- pasprsAutoScalingPolicy :: Lens' PutAutoScalingPolicyResponse (Maybe AutoScalingPolicyDescription)
- pasprsInstanceGroupId :: Lens' PutAutoScalingPolicyResponse (Maybe Text)
- pasprsResponseStatus :: Lens' PutAutoScalingPolicyResponse Int
Creating a Request
:: Text | |
-> Text | |
-> AutoScalingPolicy | |
-> PutAutoScalingPolicy |
Creates a value of PutAutoScalingPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
paspClusterId
- Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.paspInstanceGroupId
- Specifies the ID of the instance group to which the automatic scaling policy is applied.paspAutoScalingPolicy
- Specifies the definition of the automatic scaling policy.
data PutAutoScalingPolicy Source #
See: putAutoScalingPolicy
smart constructor.
Request Lenses
paspClusterId :: 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.
paspInstanceGroupId :: Lens' PutAutoScalingPolicy Text Source #
Specifies the ID of the instance group to which the automatic scaling policy is applied.
paspAutoScalingPolicy :: Lens' PutAutoScalingPolicy AutoScalingPolicy Source #
Specifies the definition of the automatic scaling policy.
Destructuring the Response
putAutoScalingPolicyResponse Source #
Creates a value of PutAutoScalingPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pasprsClusterId
- Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.pasprsAutoScalingPolicy
- The automatic scaling policy definition.pasprsInstanceGroupId
- Specifies the ID of the instance group to which the scaling policy is applied.pasprsResponseStatus
- -- | The response status code.
data PutAutoScalingPolicyResponse Source #
See: putAutoScalingPolicyResponse
smart constructor.
Response Lenses
pasprsClusterId :: 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.
pasprsAutoScalingPolicy :: Lens' PutAutoScalingPolicyResponse (Maybe AutoScalingPolicyDescription) Source #
The automatic scaling policy definition.
pasprsInstanceGroupId :: Lens' PutAutoScalingPolicyResponse (Maybe Text) Source #
Specifies the ID of the instance group to which the scaling policy is applied.
pasprsResponseStatus :: Lens' PutAutoScalingPolicyResponse Int Source #
- - | The response status code.