| 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.AutoScaling.SetDesiredCapacity
Description
Sets the size of the specified Auto Scaling group.
For more information about desired capacity, see What Is Auto Scaling? in the Auto Scaling User Guide .
- setDesiredCapacity :: Text -> Int -> SetDesiredCapacity
- data SetDesiredCapacity
- sdcHonorCooldown :: Lens' SetDesiredCapacity (Maybe Bool)
- sdcAutoScalingGroupName :: Lens' SetDesiredCapacity Text
- sdcDesiredCapacity :: Lens' SetDesiredCapacity Int
- setDesiredCapacityResponse :: SetDesiredCapacityResponse
- data SetDesiredCapacityResponse
Creating a Request
Arguments
| :: Text | |
| -> Int | |
| -> SetDesiredCapacity |
Creates a value of SetDesiredCapacity with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sdcHonorCooldown- By default,SetDesiredCapacityoverrides any cooldown period associated with the Auto Scaling group. SpecifyTrueto make Auto Scaling to wait for the cool-down period associated with the Auto Scaling group to complete before initiating a scaling activity to set your Auto Scaling group to its new capacity.sdcAutoScalingGroupName- The name of the Auto Scaling group.sdcDesiredCapacity- The number of EC2 instances that should be running in the Auto Scaling group.
data SetDesiredCapacity Source #
Contains the parameters for SetDesiredCapacity.
See: setDesiredCapacity smart constructor.
Instances
Request Lenses
sdcHonorCooldown :: Lens' SetDesiredCapacity (Maybe Bool) Source #
By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group. Specify True to make Auto Scaling to wait for the cool-down period associated with the Auto Scaling group to complete before initiating a scaling activity to set your Auto Scaling group to its new capacity.
sdcAutoScalingGroupName :: Lens' SetDesiredCapacity Text Source #
The name of the Auto Scaling group.
sdcDesiredCapacity :: Lens' SetDesiredCapacity Int Source #
The number of EC2 instances that should be running in the Auto Scaling group.
Destructuring the Response
setDesiredCapacityResponse :: SetDesiredCapacityResponse Source #
Creates a value of SetDesiredCapacityResponse with the minimum fields required to make a request.