amazonka-autoscaling-1.6.1: Amazon Auto Scaling SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 - Indicates whether 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, Auto Scaling does not honor the cooldown period during manual scaling activities.
  • 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 #

See: setDesiredCapacity smart constructor.

Instances
Eq SetDesiredCapacity Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Data SetDesiredCapacity Source # 
Instance details

Defined in Network.AWS.AutoScaling.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 Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Show SetDesiredCapacity Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Generic SetDesiredCapacity Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Associated Types

type Rep SetDesiredCapacity :: Type -> Type #

Hashable SetDesiredCapacity Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

AWSRequest SetDesiredCapacity Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Associated Types

type Rs SetDesiredCapacity :: Type #

ToHeaders SetDesiredCapacity Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

ToPath SetDesiredCapacity Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

ToQuery SetDesiredCapacity Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

NFData SetDesiredCapacity Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Methods

rnf :: SetDesiredCapacity -> () #

type Rep SetDesiredCapacity Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

type Rep SetDesiredCapacity = D1 (MetaData "SetDesiredCapacity" "Network.AWS.AutoScaling.SetDesiredCapacity" "amazonka-autoscaling-1.6.1-AbdWdH026wCXAk2CK79vG" False) (C1 (MetaCons "SetDesiredCapacity'" PrefixI True) (S1 (MetaSel (Just "_sdcHonorCooldown") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_sdcAutoScalingGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_sdcDesiredCapacity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))
type Rs SetDesiredCapacity Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Request Lenses

sdcHonorCooldown :: Lens' SetDesiredCapacity (Maybe Bool) Source #

Indicates whether 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, Auto Scaling does not honor the cooldown period during manual scaling activities.

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 # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Data SetDesiredCapacityResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

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 # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Show SetDesiredCapacityResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Generic SetDesiredCapacityResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Associated Types

type Rep SetDesiredCapacityResponse :: Type -> Type #

NFData SetDesiredCapacityResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

type Rep SetDesiredCapacityResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

type Rep SetDesiredCapacityResponse = D1 (MetaData "SetDesiredCapacityResponse" "Network.AWS.AutoScaling.SetDesiredCapacity" "amazonka-autoscaling-1.6.1-AbdWdH026wCXAk2CK79vG" False) (C1 (MetaCons "SetDesiredCapacityResponse'" PrefixI False) (U1 :: Type -> Type))