| 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.OpsWorks.SetLoadBasedAutoScaling
Description
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 User Permissions.
Synopsis
- data SetLoadBasedAutoScaling = SetLoadBasedAutoScaling' {}
- newSetLoadBasedAutoScaling :: Text -> SetLoadBasedAutoScaling
- setLoadBasedAutoScaling_downScaling :: Lens' SetLoadBasedAutoScaling (Maybe AutoScalingThresholds)
- setLoadBasedAutoScaling_enable :: Lens' SetLoadBasedAutoScaling (Maybe Bool)
- setLoadBasedAutoScaling_upScaling :: Lens' SetLoadBasedAutoScaling (Maybe AutoScalingThresholds)
- setLoadBasedAutoScaling_layerId :: Lens' SetLoadBasedAutoScaling Text
- data SetLoadBasedAutoScalingResponse = SetLoadBasedAutoScalingResponse' {
- newSetLoadBasedAutoScalingResponse :: SetLoadBasedAutoScalingResponse
Creating a Request
data SetLoadBasedAutoScaling Source #
See: newSetLoadBasedAutoScaling smart constructor.
Constructors
| SetLoadBasedAutoScaling' | |
Fields
| |
Instances
newSetLoadBasedAutoScaling Source #
Arguments
| :: Text | |
| -> SetLoadBasedAutoScaling |
Create a value of SetLoadBasedAutoScaling 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:
SetLoadBasedAutoScaling, setLoadBasedAutoScaling_downScaling - 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.
SetLoadBasedAutoScaling, setLoadBasedAutoScaling_enable - Enables load-based auto scaling for the layer.
SetLoadBasedAutoScaling, setLoadBasedAutoScaling_upScaling - 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.
SetLoadBasedAutoScaling, setLoadBasedAutoScaling_layerId - The layer ID.
Request Lenses
setLoadBasedAutoScaling_downScaling :: 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.
setLoadBasedAutoScaling_enable :: Lens' SetLoadBasedAutoScaling (Maybe Bool) Source #
Enables load-based auto scaling for the layer.
setLoadBasedAutoScaling_upScaling :: 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.
setLoadBasedAutoScaling_layerId :: Lens' SetLoadBasedAutoScaling Text Source #
The layer ID.
Destructuring the Response
data SetLoadBasedAutoScalingResponse Source #
See: newSetLoadBasedAutoScalingResponse smart constructor.
Constructors
| SetLoadBasedAutoScalingResponse' | |
Instances
| Generic SetLoadBasedAutoScalingResponse Source # | |
Defined in Amazonka.OpsWorks.SetLoadBasedAutoScaling Associated Types type Rep SetLoadBasedAutoScalingResponse :: Type -> Type # | |
| Read SetLoadBasedAutoScalingResponse Source # | |
| Show SetLoadBasedAutoScalingResponse Source # | |
Defined in Amazonka.OpsWorks.SetLoadBasedAutoScaling Methods showsPrec :: Int -> SetLoadBasedAutoScalingResponse -> ShowS # | |
| NFData SetLoadBasedAutoScalingResponse Source # | |
Defined in Amazonka.OpsWorks.SetLoadBasedAutoScaling Methods rnf :: SetLoadBasedAutoScalingResponse -> () # | |
| Eq SetLoadBasedAutoScalingResponse Source # | |
| type Rep SetLoadBasedAutoScalingResponse Source # | |
Defined in Amazonka.OpsWorks.SetLoadBasedAutoScaling | |
newSetLoadBasedAutoScalingResponse :: SetLoadBasedAutoScalingResponse Source #
Create a value of SetLoadBasedAutoScalingResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.