| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AutoScalingPlans.CreateScalingPlan
Description
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.
Constructors
| CreateScalingPlan' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ApplicationSource | |
| -> CreateScalingPlan |
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:
CreateScalingPlan, createScalingPlan_scalingPlanName - The name of the scaling plan. Names cannot contain vertical bars,
colons, or forward slashes.
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.
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.
Constructors
| CreateScalingPlanResponse' | |
Fields
| |
Instances
newCreateScalingPlanResponse Source #
Arguments
| :: 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.
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.