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 |
Synopsis
- data ScalingRule = ScalingRule' {
- description :: Maybe Text
- name :: Text
- action :: ScalingAction
- trigger :: ScalingTrigger
- newScalingRule :: Text -> ScalingAction -> ScalingTrigger -> ScalingRule
- scalingRule_description :: Lens' ScalingRule (Maybe Text)
- scalingRule_name :: Lens' ScalingRule Text
- scalingRule_action :: Lens' ScalingRule ScalingAction
- scalingRule_trigger :: Lens' ScalingRule ScalingTrigger
Documentation
data ScalingRule Source #
A scale-in or scale-out rule that defines scaling activity, including the CloudWatch metric alarm that triggers activity, how EC2 instances are added or removed, and the periodicity of adjustments. The automatic scaling policy for an instance group can comprise one or more automatic scaling rules.
See: newScalingRule
smart constructor.
ScalingRule' | |
|
Instances
:: Text | |
-> ScalingAction | |
-> ScalingTrigger | |
-> ScalingRule |
Create a value of ScalingRule
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:description:ScalingRule'
, scalingRule_description
- A friendly, more verbose description of the automatic scaling rule.
$sel:name:ScalingRule'
, scalingRule_name
- The name used to identify an automatic scaling rule. Rule names must be
unique within a scaling policy.
$sel:action:ScalingRule'
, scalingRule_action
- The conditions that trigger an automatic scaling activity.
$sel:trigger:ScalingRule'
, scalingRule_trigger
- The CloudWatch alarm definition that determines when automatic scaling
activity is triggered.
scalingRule_description :: Lens' ScalingRule (Maybe Text) Source #
A friendly, more verbose description of the automatic scaling rule.
scalingRule_name :: Lens' ScalingRule Text Source #
The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.
scalingRule_action :: Lens' ScalingRule ScalingAction Source #
The conditions that trigger an automatic scaling activity.
scalingRule_trigger :: Lens' ScalingRule ScalingTrigger Source #
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.