| 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 |
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 .
Synopsis
- 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- Indicates whether Auto Scaling waits for the cooldown period to complete before initiating a scaling activity to set your Auto Scaling group to its new capacity. By default, Auto Scaling does not honor the cooldown period during manual scaling activities.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 #
See: setDesiredCapacity smart constructor.
Instances
Request Lenses
sdcHonorCooldown :: Lens' SetDesiredCapacity (Maybe Bool) Source #
Indicates whether Auto Scaling waits for the cooldown period to complete before initiating a scaling activity to set your Auto Scaling group to its new capacity. By default, Auto Scaling does not honor the cooldown period during manual scaling activities.
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.
data SetDesiredCapacityResponse Source #
See: setDesiredCapacityResponse smart constructor.