amazonka-autoscaling-plans-1.6.0: Amazon Auto Scaling Plans 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.AutoScalingPlans.CreateScalingPlan

Contents

Description

Creates a scaling plan.

A scaling plan contains a set of instructions used to configure dynamic scaling for the scalable resources in your application. AWS Auto Scaling creates target tracking scaling policies based on the scaling instructions in your scaling plan.

Synopsis

Creating a Request

createScalingPlan Source #

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

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

data CreateScalingPlan Source #

See: createScalingPlan smart constructor.

Instances

Eq CreateScalingPlan Source # 
Data CreateScalingPlan Source # 

Methods

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

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

toConstr :: CreateScalingPlan -> Constr #

dataTypeOf :: CreateScalingPlan -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: CreateScalingPlan -> () #

AWSRequest CreateScalingPlan Source # 
ToHeaders CreateScalingPlan Source # 
ToPath CreateScalingPlan Source # 
ToQuery CreateScalingPlan Source # 
type Rep CreateScalingPlan Source # 
type Rep CreateScalingPlan = D1 * (MetaData "CreateScalingPlan" "Network.AWS.AutoScalingPlans.CreateScalingPlan" "amazonka-autoscaling-plans-1.6.0-Hfib0l7BxANKcO5yWXZyyN" False) (C1 * (MetaCons "CreateScalingPlan'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cspScalingPlanName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_cspApplicationSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * ApplicationSource)) (S1 * (MetaSel (Just Symbol "_cspScalingInstructions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [ScalingInstruction])))))
type Rs CreateScalingPlan Source # 

Request Lenses

cspScalingPlanName :: Lens' CreateScalingPlan Text Source #

The name of the scaling plan. Names cannot contain vertical bars, colons, or forward slashes.

cspApplicationSource :: Lens' CreateScalingPlan ApplicationSource Source #

A CloudFormation stack or set of tags. You can create one scaling plan per application source.

Destructuring the Response

createScalingPlanResponse Source #

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

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

data CreateScalingPlanResponse Source #

See: createScalingPlanResponse smart constructor.

Instances

Eq CreateScalingPlanResponse Source # 
Data CreateScalingPlanResponse Source # 

Methods

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

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

toConstr :: CreateScalingPlanResponse -> Constr #

dataTypeOf :: CreateScalingPlanResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateScalingPlanResponse Source # 
Show CreateScalingPlanResponse Source # 
Generic CreateScalingPlanResponse Source # 
NFData CreateScalingPlanResponse Source # 
type Rep CreateScalingPlanResponse Source # 
type Rep CreateScalingPlanResponse = D1 * (MetaData "CreateScalingPlanResponse" "Network.AWS.AutoScalingPlans.CreateScalingPlan" "amazonka-autoscaling-plans-1.6.0-Hfib0l7BxANKcO5yWXZyyN" False) (C1 * (MetaCons "CreateScalingPlanResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_csprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_csprsScalingPlanVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Integer))))

Response Lenses

csprsScalingPlanVersion :: Lens' CreateScalingPlanResponse Integer Source #

The version of the scaling plan. This value is always 1.