amazonka-autoscaling-1.2.0: Amazon Auto Scaling SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.AutoScaling.SetDesiredCapacity

Contents

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 Developer Guide.

See: AWS API Reference for SetDesiredCapacity.

Synopsis

Creating a Request

setDesiredCapacity Source

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:

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.