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 |
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_scalingInstructions :: Lens' UpdateScalingPlan (Maybe [ScalingInstruction])
- updateScalingPlan_applicationSource :: Lens' UpdateScalingPlan (Maybe ApplicationSource)
- 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.
UpdateScalingPlan' | |
|
Instances
:: 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:
$sel:scalingInstructions:UpdateScalingPlan'
, updateScalingPlan_scalingInstructions
- The scaling instructions.
For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
$sel:applicationSource:UpdateScalingPlan'
, updateScalingPlan_applicationSource
- A CloudFormation stack or set of tags.
For more information, see ApplicationSource in the AWS Auto Scaling API Reference.
$sel:scalingPlanName:UpdateScalingPlan'
, updateScalingPlan_scalingPlanName
- The name of the scaling plan.
$sel:scalingPlanVersion: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_scalingInstructions :: Lens' UpdateScalingPlan (Maybe [ScalingInstruction]) Source #
The scaling instructions.
For more information, see ScalingInstruction in the AWS Auto Scaling API Reference.
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_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.
UpdateScalingPlanResponse' | |
|
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.