Copyright | (c) 2013-2021 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 |
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.
SetDesiredCapacity' | |
|
Instances
newSetDesiredCapacity Source #
:: 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.
$sel:autoScalingGroupName:SetDesiredCapacity'
, setDesiredCapacity_autoScalingGroupName
- The name of the Auto Scaling group.
$sel:desiredCapacity: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.
Instances
newSetDesiredCapacityResponse :: SetDesiredCapacityResponse Source #
Create a value of SetDesiredCapacityResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.