| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Network.AWS.AutoScaling.PutScalingPolicy
Description
Creates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.
http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_PutScalingPolicy.html
- data PutScalingPolicy
- putScalingPolicy :: Text -> Text -> Int -> Text -> PutScalingPolicy
- pspAdjustmentType :: Lens' PutScalingPolicy Text
- pspAutoScalingGroupName :: Lens' PutScalingPolicy Text
- pspCooldown :: Lens' PutScalingPolicy (Maybe Int)
- pspMinAdjustmentStep :: Lens' PutScalingPolicy (Maybe Int)
- pspPolicyName :: Lens' PutScalingPolicy Text
- pspScalingAdjustment :: Lens' PutScalingPolicy Int
- data PutScalingPolicyResponse
- putScalingPolicyResponse :: PutScalingPolicyResponse
- psprPolicyARN :: Lens' PutScalingPolicyResponse (Maybe Text)
Request
data PutScalingPolicy Source
Request constructor
Arguments
| :: Text | |
| -> Text | |
| -> Int | |
| -> Text | |
| -> PutScalingPolicy | 
PutScalingPolicy constructor.
The fields accessible through corresponding lenses are:
Request lenses
pspAdjustmentType :: Lens' PutScalingPolicy Text Source
Specifies whether the ScalingAdjustment is an absolute number or a percentage
 of the current capacity. Valid values are ChangeInCapacity, ExactCapacity,
 and PercentChangeInCapacity.
For more information, see Dynamic Scaling in the Auto Scaling Developer Guide .
pspAutoScalingGroupName :: Lens' PutScalingPolicy Text Source
The name or ARN of the group.
pspCooldown :: Lens' PutScalingPolicy (Maybe Int) Source
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start.
For more information, see Understanding Auto Scaling Cooldowns in the AutoScaling Developer Guide.
pspMinAdjustmentStep :: Lens' PutScalingPolicy (Maybe Int) Source
Used with AdjustmentType with the value PercentChangeInCapacity, the scaling
 policy changes the DesiredCapacity of the Auto Scaling group by at least the
 number of instances specified in the value.
You will get a ValidationError if you use MinAdjustmentStep on a policy with
 an AdjustmentType other than PercentChangeInCapacity.
pspPolicyName :: Lens' PutScalingPolicy Text Source
The name of the policy.
pspScalingAdjustment :: Lens' PutScalingPolicy Int Source
The number of instances by which to scale. AdjustmentType determines the
 interpretation of this number (e.g., as an absolute number or as a percentage
 of the existing Auto Scaling group size). A positive increment adds to the
 current capacity and a negative value removes from the current capacity.
Response
Response constructor
putScalingPolicyResponse :: PutScalingPolicyResponse Source
PutScalingPolicyResponse constructor.
The fields accessible through corresponding lenses are:
Response lenses
psprPolicyARN :: Lens' PutScalingPolicyResponse (Maybe Text) Source
The Amazon Resource Name (ARN) of the policy.