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 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:

  • 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 Source #

Contains the parameters for SetDesiredCapacity.

See: setDesiredCapacity smart constructor.

Instances

Eq SetDesiredCapacity Source # 
Data SetDesiredCapacity Source # 

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 Source # 
Show SetDesiredCapacity Source # 
Generic SetDesiredCapacity Source # 
Hashable SetDesiredCapacity Source # 
NFData SetDesiredCapacity Source # 

Methods

rnf :: SetDesiredCapacity -> () #

AWSRequest SetDesiredCapacity Source # 
ToPath SetDesiredCapacity Source # 
ToHeaders SetDesiredCapacity Source # 
ToQuery SetDesiredCapacity Source # 
type Rep SetDesiredCapacity Source # 
type Rep SetDesiredCapacity = D1 (MetaData "SetDesiredCapacity" "Network.AWS.AutoScaling.SetDesiredCapacity" "amazonka-autoscaling-1.4.5-8yDHjz7ddEsEeD2f2YA1qk" 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 Source # 

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.

data SetDesiredCapacityResponse Source #

See: setDesiredCapacityResponse smart constructor.

Instances

Eq SetDesiredCapacityResponse Source # 
Data SetDesiredCapacityResponse Source # 

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 Source # 
Show SetDesiredCapacityResponse Source # 
Generic SetDesiredCapacityResponse Source # 
NFData SetDesiredCapacityResponse Source # 
type Rep SetDesiredCapacityResponse Source # 
type Rep SetDesiredCapacityResponse = D1 (MetaData "SetDesiredCapacityResponse" "Network.AWS.AutoScaling.SetDesiredCapacity" "amazonka-autoscaling-1.4.5-8yDHjz7ddEsEeD2f2YA1qk" False) (C1 (MetaCons "SetDesiredCapacityResponse'" PrefixI False) U1)