| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AutoScaling.SetDesiredCapacity
Description
Sets the size of the specified Auto Scaling group.
If a scale-in activity occurs as a result of a new DesiredCapacity value that is lower than the current size of the group, the Auto Scaling group uses its termination policy to determine which instances to terminate.
For more information, see Manual scaling in the Amazon EC2 Auto Scaling User Guide.
Synopsis
- data SetDesiredCapacity = SetDesiredCapacity' {}
- newSetDesiredCapacity :: Text -> Int -> SetDesiredCapacity
- setDesiredCapacity_honorCooldown :: Lens' SetDesiredCapacity (Maybe Bool)
- setDesiredCapacity_autoScalingGroupName :: Lens' SetDesiredCapacity Text
- setDesiredCapacity_desiredCapacity :: Lens' SetDesiredCapacity Int
- data SetDesiredCapacityResponse = SetDesiredCapacityResponse' {
- newSetDesiredCapacityResponse :: SetDesiredCapacityResponse
Creating a Request
data SetDesiredCapacity Source #
See: newSetDesiredCapacity smart constructor.
Constructors
| SetDesiredCapacity' | |
Fields
| |
Instances
newSetDesiredCapacity Source #
Arguments
| :: Text | |
| -> Int | |
| -> SetDesiredCapacity |
Create a value of SetDesiredCapacity with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:honorCooldown:SetDesiredCapacity', setDesiredCapacity_honorCooldown - Indicates whether Amazon EC2 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, Amazon EC2 Auto Scaling does not honor the cooldown period during manual scaling activities.
SetDesiredCapacity, setDesiredCapacity_autoScalingGroupName - The name of the Auto Scaling group.
SetDesiredCapacity, setDesiredCapacity_desiredCapacity - The desired capacity is the initial capacity of the Auto Scaling group after this operation completes and the capacity it attempts to maintain.
Request Lenses
setDesiredCapacity_honorCooldown :: Lens' SetDesiredCapacity (Maybe Bool) Source #
Indicates whether Amazon EC2 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, Amazon EC2 Auto Scaling does not honor the cooldown period during manual scaling activities.
setDesiredCapacity_autoScalingGroupName :: Lens' SetDesiredCapacity Text Source #
The name of the Auto Scaling group.
setDesiredCapacity_desiredCapacity :: Lens' SetDesiredCapacity Int Source #
The desired capacity is the initial capacity of the Auto Scaling group after this operation completes and the capacity it attempts to maintain.
Destructuring the Response
data SetDesiredCapacityResponse Source #
See: newSetDesiredCapacityResponse smart constructor.
Constructors
| SetDesiredCapacityResponse' | |
Instances
newSetDesiredCapacityResponse :: SetDesiredCapacityResponse Source #
Create a value of SetDesiredCapacityResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.