amazonka-opsworks-1.4.3: Amazon OpsWorks 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.OpsWorks.SetLoadBasedAutoScaling

Contents

Description

Specify the load-based auto scaling configuration for a specified layer. For more information, see Managing Load with Time-based and Load-based Instances.

To use load-based auto scaling, you must create a set of load-based auto scaling instances. Load-based auto scaling operates only on the instances from that set, so you must ensure that you have created enough instances to handle the maximum anticipated load.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

Synopsis

Creating a Request

setLoadBasedAutoScaling Source #

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

Use one of the following lenses to modify other fields as desired:

data SetLoadBasedAutoScaling Source #

See: setLoadBasedAutoScaling smart constructor.

Instances

Eq SetLoadBasedAutoScaling Source # 
Data SetLoadBasedAutoScaling Source # 

Methods

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

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

toConstr :: SetLoadBasedAutoScaling -> Constr #

dataTypeOf :: SetLoadBasedAutoScaling -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetLoadBasedAutoScaling Source # 
Show SetLoadBasedAutoScaling Source # 
Generic SetLoadBasedAutoScaling Source # 
Hashable SetLoadBasedAutoScaling Source # 
ToJSON SetLoadBasedAutoScaling Source # 
NFData SetLoadBasedAutoScaling Source # 

Methods

rnf :: SetLoadBasedAutoScaling -> () #

AWSRequest SetLoadBasedAutoScaling Source # 
ToQuery SetLoadBasedAutoScaling Source # 
ToPath SetLoadBasedAutoScaling Source # 
ToHeaders SetLoadBasedAutoScaling Source # 
type Rep SetLoadBasedAutoScaling Source # 
type Rep SetLoadBasedAutoScaling = D1 (MetaData "SetLoadBasedAutoScaling" "Network.AWS.OpsWorks.SetLoadBasedAutoScaling" "amazonka-opsworks-1.4.3-BeJH4daCH1TAzAUbiglv2L" False) (C1 (MetaCons "SetLoadBasedAutoScaling'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_slbasUpScaling") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AutoScalingThresholds))) (S1 (MetaSel (Just Symbol "_slbasEnable") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "_slbasDownScaling") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AutoScalingThresholds))) (S1 (MetaSel (Just Symbol "_slbasLayerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs SetLoadBasedAutoScaling Source # 

Request Lenses

slbasUpScaling :: Lens' SetLoadBasedAutoScaling (Maybe AutoScalingThresholds) Source #

An AutoScalingThresholds object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks starts a specified number of instances.

slbasEnable :: Lens' SetLoadBasedAutoScaling (Maybe Bool) Source #

Enables load-based auto scaling for the layer.

slbasDownScaling :: Lens' SetLoadBasedAutoScaling (Maybe AutoScalingThresholds) Source #

An AutoScalingThresholds object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks stops a specified number of instances.

Destructuring the Response

setLoadBasedAutoScalingResponse :: SetLoadBasedAutoScalingResponse Source #

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

data SetLoadBasedAutoScalingResponse Source #

See: setLoadBasedAutoScalingResponse smart constructor.

Instances

Eq SetLoadBasedAutoScalingResponse Source # 
Data SetLoadBasedAutoScalingResponse Source # 

Methods

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

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

toConstr :: SetLoadBasedAutoScalingResponse -> Constr #

dataTypeOf :: SetLoadBasedAutoScalingResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetLoadBasedAutoScalingResponse Source # 
Show SetLoadBasedAutoScalingResponse Source # 
Generic SetLoadBasedAutoScalingResponse Source # 
NFData SetLoadBasedAutoScalingResponse Source # 
type Rep SetLoadBasedAutoScalingResponse Source # 
type Rep SetLoadBasedAutoScalingResponse = D1 (MetaData "SetLoadBasedAutoScalingResponse" "Network.AWS.OpsWorks.SetLoadBasedAutoScaling" "amazonka-opsworks-1.4.3-BeJH4daCH1TAzAUbiglv2L" False) (C1 (MetaCons "SetLoadBasedAutoScalingResponse'" PrefixI False) U1)