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 |
Synopsis
- data TargetTrackingConfiguration = TargetTrackingConfiguration' {}
- newTargetTrackingConfiguration :: Double -> TargetTrackingConfiguration
- targetTrackingConfiguration_customizedMetricSpecification :: Lens' TargetTrackingConfiguration (Maybe CustomizedMetricSpecification)
- targetTrackingConfiguration_disableScaleIn :: Lens' TargetTrackingConfiguration (Maybe Bool)
- targetTrackingConfiguration_predefinedMetricSpecification :: Lens' TargetTrackingConfiguration (Maybe PredefinedMetricSpecification)
- targetTrackingConfiguration_targetValue :: Lens' TargetTrackingConfiguration Double
Documentation
data TargetTrackingConfiguration Source #
Represents a target tracking scaling policy configuration to use with Amazon EC2 Auto Scaling.
See: newTargetTrackingConfiguration
smart constructor.
TargetTrackingConfiguration' | |
|
Instances
newTargetTrackingConfiguration Source #
Create a value of TargetTrackingConfiguration
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:customizedMetricSpecification:TargetTrackingConfiguration'
, targetTrackingConfiguration_customizedMetricSpecification
- A customized metric. You must specify either a predefined metric or a
customized metric.
$sel:disableScaleIn:TargetTrackingConfiguration'
, targetTrackingConfiguration_disableScaleIn
- Indicates whether scaling in by the target tracking scaling policy is
disabled. If scaling in is disabled, the target tracking scaling policy
doesn't remove instances from the Auto Scaling group. Otherwise, the
target tracking scaling policy can remove instances from the Auto
Scaling group. The default is false
.
$sel:predefinedMetricSpecification:TargetTrackingConfiguration'
, targetTrackingConfiguration_predefinedMetricSpecification
- A predefined metric. You must specify either a predefined metric or a
customized metric.
$sel:targetValue:TargetTrackingConfiguration'
, targetTrackingConfiguration_targetValue
- The target value for the metric.
Some metrics are based on a count instead of a percentage, such as the request count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy specifies one of these metrics, specify the target utilization as the optimal average request or message count per instance during any one-minute interval.
targetTrackingConfiguration_customizedMetricSpecification :: Lens' TargetTrackingConfiguration (Maybe CustomizedMetricSpecification) Source #
A customized metric. You must specify either a predefined metric or a customized metric.
targetTrackingConfiguration_disableScaleIn :: Lens' TargetTrackingConfiguration (Maybe Bool) Source #
Indicates whether scaling in by the target tracking scaling policy is
disabled. If scaling in is disabled, the target tracking scaling policy
doesn't remove instances from the Auto Scaling group. Otherwise, the
target tracking scaling policy can remove instances from the Auto
Scaling group. The default is false
.
targetTrackingConfiguration_predefinedMetricSpecification :: Lens' TargetTrackingConfiguration (Maybe PredefinedMetricSpecification) Source #
A predefined metric. You must specify either a predefined metric or a customized metric.
targetTrackingConfiguration_targetValue :: Lens' TargetTrackingConfiguration Double Source #
The target value for the metric.
Some metrics are based on a count instead of a percentage, such as the request count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy specifies one of these metrics, specify the target utilization as the optimal average request or message count per instance during any one-minute interval.