Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- createScalingPlan :: Text -> ApplicationSource -> CreateScalingPlan
- data CreateScalingPlan
- cspScalingPlanName :: Lens' CreateScalingPlan Text
- cspApplicationSource :: Lens' CreateScalingPlan ApplicationSource
- cspScalingInstructions :: Lens' CreateScalingPlan [ScalingInstruction]
- createScalingPlanResponse :: Int -> Integer -> CreateScalingPlanResponse
- data CreateScalingPlanResponse
- csprsResponseStatus :: Lens' CreateScalingPlanResponse Int
- csprsScalingPlanVersion :: Lens' CreateScalingPlanResponse Integer
Creating a Request
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:
cspScalingPlanName
- The name of the scaling plan. Names cannot contain vertical bars, colons, or forward slashes.cspApplicationSource
- A CloudFormation stack or set of tags. You can create one scaling plan per application source.cspScalingInstructions
- The scaling instructions.
data CreateScalingPlan Source #
See: createScalingPlan
smart constructor.
Instances
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.
cspScalingInstructions :: Lens' CreateScalingPlan [ScalingInstruction] Source #
The scaling instructions.
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:
csprsResponseStatus
- -- | The response status code.csprsScalingPlanVersion
- The version of the scaling plan. This value is always 1.
data CreateScalingPlanResponse Source #
See: createScalingPlanResponse
smart constructor.
Instances
Response Lenses
csprsResponseStatus :: Lens' CreateScalingPlanResponse Int Source #
- - | The response status code.
csprsScalingPlanVersion :: Lens' CreateScalingPlanResponse Integer Source #
The version of the scaling plan. This value is always 1.