amazonka-autoscaling-1.4.5: Amazon Auto Scaling SDK.

Copyright(c) 2013-2016 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 User Guide .

Synopsis

Creating a Request

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, 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 - The name of the Auto Scaling group.
  • sdcDesiredCapacity - The number of EC2 instances that should be running in the Auto Scaling group.

data SetDesiredCapacity #

Contains the parameters for SetDesiredCapacity.

See: setDesiredCapacity smart constructor.

Instances

Eq SetDesiredCapacity # 
Data SetDesiredCapacity # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetDesiredCapacity -> c SetDesiredCapacity #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetDesiredCapacity #

toConstr :: SetDesiredCapacity -> Constr #

dataTypeOf :: SetDesiredCapacity -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SetDesiredCapacity) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetDesiredCapacity) #

gmapT :: (forall b. Data b => b -> b) -> SetDesiredCapacity -> SetDesiredCapacity #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetDesiredCapacity -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetDesiredCapacity -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetDesiredCapacity -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetDesiredCapacity -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetDesiredCapacity -> m SetDesiredCapacity #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetDesiredCapacity -> m SetDesiredCapacity #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetDesiredCapacity -> m SetDesiredCapacity #

Read SetDesiredCapacity # 
Show SetDesiredCapacity # 
Generic SetDesiredCapacity # 
Hashable SetDesiredCapacity # 
NFData SetDesiredCapacity # 

Methods

rnf :: SetDesiredCapacity -> () #

AWSRequest SetDesiredCapacity # 
ToQuery SetDesiredCapacity # 
ToPath SetDesiredCapacity # 
ToHeaders SetDesiredCapacity # 
type Rep SetDesiredCapacity # 
type Rep SetDesiredCapacity = D1 (MetaData "SetDesiredCapacity" "Network.AWS.AutoScaling.SetDesiredCapacity" "amazonka-autoscaling-1.4.5-7eWJWM4Di3O2fihmLpacNP" False) (C1 (MetaCons "SetDesiredCapacity'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_sdcHonorCooldown") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_sdcAutoScalingGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_sdcDesiredCapacity") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))
type Rs SetDesiredCapacity # 

Request Lenses

sdcHonorCooldown :: Lens' SetDesiredCapacity (Maybe Bool) #

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 #

The name of the Auto Scaling group.

sdcDesiredCapacity :: Lens' SetDesiredCapacity Int #

The number of EC2 instances that should be running in the Auto Scaling group.

Destructuring the Response

setDesiredCapacityResponse :: SetDesiredCapacityResponse #

Creates a value of SetDesiredCapacityResponse with the minimum fields required to make a request.

data SetDesiredCapacityResponse #

See: setDesiredCapacityResponse smart constructor.

Instances

Eq SetDesiredCapacityResponse # 
Data SetDesiredCapacityResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetDesiredCapacityResponse -> c SetDesiredCapacityResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetDesiredCapacityResponse #

toConstr :: SetDesiredCapacityResponse -> Constr #

dataTypeOf :: SetDesiredCapacityResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SetDesiredCapacityResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetDesiredCapacityResponse) #

gmapT :: (forall b. Data b => b -> b) -> SetDesiredCapacityResponse -> SetDesiredCapacityResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetDesiredCapacityResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetDesiredCapacityResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetDesiredCapacityResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetDesiredCapacityResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetDesiredCapacityResponse -> m SetDesiredCapacityResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetDesiredCapacityResponse -> m SetDesiredCapacityResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetDesiredCapacityResponse -> m SetDesiredCapacityResponse #

Read SetDesiredCapacityResponse # 
Show SetDesiredCapacityResponse # 
Generic SetDesiredCapacityResponse # 
NFData SetDesiredCapacityResponse # 
type Rep SetDesiredCapacityResponse # 
type Rep SetDesiredCapacityResponse = D1 (MetaData "SetDesiredCapacityResponse" "Network.AWS.AutoScaling.SetDesiredCapacity" "amazonka-autoscaling-1.4.5-7eWJWM4Di3O2fihmLpacNP" False) (C1 (MetaCons "SetDesiredCapacityResponse'" PrefixI False) U1)