Copyright | (c) 2013-2017 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 |
Specify the load-based auto scaling configuration for a specified layer. For more information, see Managing Load with Time-based and Load-based Instances .
Required Permissions : To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .
- setLoadBasedAutoScaling :: Text -> SetLoadBasedAutoScaling
- data SetLoadBasedAutoScaling
- slbasUpScaling :: Lens' SetLoadBasedAutoScaling (Maybe AutoScalingThresholds)
- slbasEnable :: Lens' SetLoadBasedAutoScaling (Maybe Bool)
- slbasDownScaling :: Lens' SetLoadBasedAutoScaling (Maybe AutoScalingThresholds)
- slbasLayerId :: Lens' SetLoadBasedAutoScaling Text
- setLoadBasedAutoScalingResponse :: SetLoadBasedAutoScalingResponse
- data SetLoadBasedAutoScalingResponse
Creating a Request
setLoadBasedAutoScaling Source #
Creates a value of SetLoadBasedAutoScaling
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
slbasUpScaling
- AnAutoScalingThresholds
object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks Stacks starts a specified number of instances.slbasEnable
- Enables load-based auto scaling for the layer.slbasDownScaling
- AnAutoScalingThresholds
object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks Stacks stops a specified number of instances.slbasLayerId
- The layer ID.
data SetLoadBasedAutoScaling Source #
See: setLoadBasedAutoScaling
smart constructor.
Request Lenses
slbasUpScaling :: Lens' SetLoadBasedAutoScaling (Maybe AutoScalingThresholds) Source #
An AutoScalingThresholds
object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks Stacks starts a specified number of instances.
slbasEnable :: Lens' SetLoadBasedAutoScaling (Maybe Bool) Source #
Enables load-based auto scaling for the layer.
slbasDownScaling :: Lens' SetLoadBasedAutoScaling (Maybe AutoScalingThresholds) Source #
An AutoScalingThresholds
object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks Stacks stops a specified number of instances.
slbasLayerId :: Lens' SetLoadBasedAutoScaling Text Source #
The layer ID.
Destructuring the Response
setLoadBasedAutoScalingResponse :: SetLoadBasedAutoScalingResponse Source #
Creates a value of SetLoadBasedAutoScalingResponse
with the minimum fields required to make a request.
data SetLoadBasedAutoScalingResponse Source #
See: setLoadBasedAutoScalingResponse
smart constructor.