Copyright | (c) 2013-2021 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 |
Creates a scaling plan.
Synopsis
- data CreateScalingPlan = CreateScalingPlan' {}
- newCreateScalingPlan :: Text -> ApplicationSource -> CreateScalingPlan
- createScalingPlan_scalingPlanName :: Lens' CreateScalingPlan Text
- createScalingPlan_applicationSource :: Lens' CreateScalingPlan ApplicationSource
- createScalingPlan_scalingInstructions :: Lens' CreateScalingPlan [ScalingInstruction]
- data CreateScalingPlanResponse = CreateScalingPlanResponse' {}
- newCreateScalingPlanResponse :: Int -> Integer -> CreateScalingPlanResponse
- createScalingPlanResponse_httpStatus :: Lens' CreateScalingPlanResponse Int
- createScalingPlanResponse_scalingPlanVersion :: Lens' CreateScalingPlanResponse Integer
Creating a Request
data CreateScalingPlan Source #
See: newCreateScalingPlan
smart constructor.
CreateScalingPlan' | |
|
Instances
Create a value of CreateScalingPlan
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:scalingPlanName:CreateScalingPlan'
, createScalingPlan_scalingPlanName
- The name of the scaling plan. Names cannot contain vertical bars,
colons, or forward slashes.
$sel:applicationSource:CreateScalingPlan'
, createScalingPlan_applicationSource
- A CloudFormation stack or set of tags. You can create one scaling plan
per application source.
For more information, see ApplicationSource in the AWS Auto Scaling API Reference.
$sel:scalingInstructions:CreateScalingPlan'
, createScalingPlan_scalingInstructions
- The scaling instructions.
For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
Request Lenses
createScalingPlan_scalingPlanName :: Lens' CreateScalingPlan Text Source #
The name of the scaling plan. Names cannot contain vertical bars, colons, or forward slashes.
createScalingPlan_applicationSource :: Lens' CreateScalingPlan ApplicationSource Source #
A CloudFormation stack or set of tags. You can create one scaling plan per application source.
For more information, see ApplicationSource in the AWS Auto Scaling API Reference.
createScalingPlan_scalingInstructions :: Lens' CreateScalingPlan [ScalingInstruction] Source #
The scaling instructions.
For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
Destructuring the Response
data CreateScalingPlanResponse Source #
See: newCreateScalingPlanResponse
smart constructor.
CreateScalingPlanResponse' | |
|
Instances
newCreateScalingPlanResponse Source #
:: Int | |
-> Integer | |
-> CreateScalingPlanResponse |
Create a value of CreateScalingPlanResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateScalingPlanResponse'
, createScalingPlanResponse_httpStatus
- The response's http status code.
$sel:scalingPlanVersion:CreateScalingPlanResponse'
, createScalingPlanResponse_scalingPlanVersion
- The version number of the scaling plan. This value is always 1
.
Currently, you cannot have multiple scaling plan versions.
Response Lenses
createScalingPlanResponse_httpStatus :: Lens' CreateScalingPlanResponse Int Source #
The response's http status code.
createScalingPlanResponse_scalingPlanVersion :: Lens' CreateScalingPlanResponse Integer Source #
The version number of the scaling plan. This value is always 1
.
Currently, you cannot have multiple scaling plan versions.