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 #

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 #

See: setDesiredCapacity smart constructor.

Instances
Eq SetDesiredCapacity # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

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

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Show SetDesiredCapacity # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Generic SetDesiredCapacity # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Associated Types

type Rep SetDesiredCapacity :: Type -> Type #

Hashable SetDesiredCapacity # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

AWSRequest SetDesiredCapacity # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Associated Types

type Rs SetDesiredCapacity :: Type #

ToHeaders SetDesiredCapacity # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

ToPath SetDesiredCapacity # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

ToQuery SetDesiredCapacity # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

NFData SetDesiredCapacity # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Methods

rnf :: SetDesiredCapacity -> () #

type Rep SetDesiredCapacity # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

type Rep SetDesiredCapacity = D1 (MetaData "SetDesiredCapacity" "Network.AWS.AutoScaling.SetDesiredCapacity" "amazonka-autoscaling-1.6.1-CL0uxNT6nr7AJT7cxrCTGb" 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 # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Request Lenses

sdcHonorCooldown :: Lens' SetDesiredCapacity (Maybe Bool) #

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 #

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

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

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

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Show SetDesiredCapacityResponse # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Generic SetDesiredCapacityResponse # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

Associated Types

type Rep SetDesiredCapacityResponse :: Type -> Type #

NFData SetDesiredCapacityResponse # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

type Rep SetDesiredCapacityResponse # 
Instance details

Defined in Network.AWS.AutoScaling.SetDesiredCapacity

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