| 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.UpdateScalingPlan
Description
Updates the specified scaling plan.
You cannot update a scaling plan if it is in the process of being created, updated, or deleted.
Synopsis
- data UpdateScalingPlan = UpdateScalingPlan' {}
- newUpdateScalingPlan :: Text -> Integer -> UpdateScalingPlan
- updateScalingPlan_applicationSource :: Lens' UpdateScalingPlan (Maybe ApplicationSource)
- updateScalingPlan_scalingInstructions :: Lens' UpdateScalingPlan (Maybe [ScalingInstruction])
- updateScalingPlan_scalingPlanName :: Lens' UpdateScalingPlan Text
- updateScalingPlan_scalingPlanVersion :: Lens' UpdateScalingPlan Integer
- data UpdateScalingPlanResponse = UpdateScalingPlanResponse' {
- httpStatus :: Int
- newUpdateScalingPlanResponse :: Int -> UpdateScalingPlanResponse
- updateScalingPlanResponse_httpStatus :: Lens' UpdateScalingPlanResponse Int
Creating a Request
data UpdateScalingPlan Source #
See: newUpdateScalingPlan smart constructor.
Constructors
| UpdateScalingPlan' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Integer | |
| -> UpdateScalingPlan |
Create a value of UpdateScalingPlan 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:
UpdateScalingPlan, updateScalingPlan_applicationSource - A CloudFormation stack or set of tags.
For more information, see ApplicationSource in the AWS Auto Scaling API Reference.
UpdateScalingPlan, updateScalingPlan_scalingInstructions - The scaling instructions.
For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
UpdateScalingPlan, updateScalingPlan_scalingPlanName - The name of the scaling plan.
UpdateScalingPlan, updateScalingPlan_scalingPlanVersion - The version number of the scaling plan. The only valid value is 1.
Currently, you cannot have multiple scaling plan versions.
Request Lenses
updateScalingPlan_applicationSource :: Lens' UpdateScalingPlan (Maybe ApplicationSource) Source #
A CloudFormation stack or set of tags.
For more information, see ApplicationSource in the AWS Auto Scaling API Reference.
updateScalingPlan_scalingInstructions :: Lens' UpdateScalingPlan (Maybe [ScalingInstruction]) Source #
The scaling instructions.
For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
updateScalingPlan_scalingPlanName :: Lens' UpdateScalingPlan Text Source #
The name of the scaling plan.
updateScalingPlan_scalingPlanVersion :: Lens' UpdateScalingPlan Integer Source #
The version number of the scaling plan. The only valid value is 1.
Currently, you cannot have multiple scaling plan versions.
Destructuring the Response
data UpdateScalingPlanResponse Source #
See: newUpdateScalingPlanResponse smart constructor.
Constructors
| UpdateScalingPlanResponse' | |
Fields
| |
Instances
newUpdateScalingPlanResponse Source #
Create a value of UpdateScalingPlanResponse 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:UpdateScalingPlanResponse', updateScalingPlanResponse_httpStatus - The response's http status code.
Response Lenses
updateScalingPlanResponse_httpStatus :: Lens' UpdateScalingPlanResponse Int Source #
The response's http status code.