Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.EMR.PutAutoScalingPolicy
Description
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
Arguments
:: 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 #
See: putAutoScalingPolicy
smart constructor.
Instances
Request Lenses
paspClusterId :: Lens' PutAutoScalingPolicy Text #
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 #
Specifies the ID of the instance group to which the automatic scaling policy is applied.
paspAutoScalingPolicy :: Lens' PutAutoScalingPolicy AutoScalingPolicy #
Specifies the definition of the automatic scaling policy.
Destructuring the Response
putAutoScalingPolicyResponse #
Arguments
:: Int | |
-> PutAutoScalingPolicyResponse |
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 #
See: putAutoScalingPolicyResponse
smart constructor.
Response Lenses
pasprsClusterId :: Lens' PutAutoScalingPolicyResponse (Maybe Text) #
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) #
The automatic scaling policy definition.
pasprsInstanceGroupId :: Lens' PutAutoScalingPolicyResponse (Maybe Text) #
Specifies the ID of the instance group to which the scaling policy is applied.
pasprsResponseStatus :: Lens' PutAutoScalingPolicyResponse Int #
- - | The response status code.