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.
To use load-based auto scaling, you must create a set of load-based auto scaling instances. Load-based auto scaling operates only on the instances from that set, so you must ensure that you have created enough instances to handle the maximum anticipated load.
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 UserPermissions.
http://docs.aws.amazon.com/opsworks/latest/APIReference/API_SetLoadBasedAutoScaling.html
- data SetLoadBasedAutoScaling
- setLoadBasedAutoScaling :: Text -> SetLoadBasedAutoScaling
- slbasDownScaling :: Lens' SetLoadBasedAutoScaling (Maybe AutoScalingThresholds)
- slbasEnable :: Lens' SetLoadBasedAutoScaling (Maybe Bool)
- slbasLayerId :: Lens' SetLoadBasedAutoScaling Text
- slbasUpScaling :: Lens' SetLoadBasedAutoScaling (Maybe AutoScalingThresholds)
- data SetLoadBasedAutoScalingResponse
- setLoadBasedAutoScalingResponse :: SetLoadBasedAutoScalingResponse
Request
data SetLoadBasedAutoScaling Source
Request constructor
setLoadBasedAutoScaling Source
SetLoadBasedAutoScaling
constructor.
The fields accessible through corresponding lenses are:
Request lenses
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 stops a specified number of instances.
slbasEnable :: Lens' SetLoadBasedAutoScaling (Maybe Bool) Source
Enables load-based auto scaling for the layer.
slbasLayerId :: Lens' SetLoadBasedAutoScaling Text Source
The layer ID.
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 starts a specified number of instances.