@Stability(value=Experimental) public static final class TargetTrackingScalingPolicy.Builder extends Object implements software.amazon.jsii.Builder<TargetTrackingScalingPolicy>
TargetTrackingScalingPolicy.| Modifier and Type | Method and Description |
|---|---|
TargetTrackingScalingPolicy.Builder |
autoScalingGroup(IAutoScalingGroup autoScalingGroup) |
TargetTrackingScalingPolicy |
build() |
TargetTrackingScalingPolicy.Builder |
cooldown(Duration cooldown)
(experimental) Period after a scaling completes before another scaling activity can start.
|
static TargetTrackingScalingPolicy.Builder |
create(software.constructs.Construct scope,
String id) |
TargetTrackingScalingPolicy.Builder |
customMetric(IMetric customMetric)
(experimental) A custom metric for application autoscaling.
|
TargetTrackingScalingPolicy.Builder |
disableScaleIn(Boolean disableScaleIn)
(experimental) Indicates whether scale in by the target tracking policy is disabled.
|
TargetTrackingScalingPolicy.Builder |
estimatedInstanceWarmup(Duration estimatedInstanceWarmup)
(experimental) Estimated time until a newly launched instance can send metrics to CloudWatch.
|
TargetTrackingScalingPolicy.Builder |
predefinedMetric(PredefinedMetric predefinedMetric)
(experimental) A predefined metric for application autoscaling.
|
TargetTrackingScalingPolicy.Builder |
resourceLabel(String resourceLabel)
(experimental) The resource label associated with the predefined metric.
|
TargetTrackingScalingPolicy.Builder |
targetValue(Number targetValue)
(experimental) The target value for the metric.
|
@Stability(value=Experimental) public static TargetTrackingScalingPolicy.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.TargetTrackingScalingPolicy.Builder.@Stability(value=Experimental) public TargetTrackingScalingPolicy.Builder cooldown(Duration cooldown)
Default: - The default cooldown configured on the AutoScalingGroup.
cooldown - Period after a scaling completes before another scaling activity can start. This parameter is required.this@Stability(value=Experimental) public TargetTrackingScalingPolicy.Builder disableScaleIn(Boolean disableScaleIn)
If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the autoscaling group. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the group.
Default: false
disableScaleIn - Indicates whether scale in by the target tracking policy is disabled. This parameter is required.this@Stability(value=Experimental) public TargetTrackingScalingPolicy.Builder estimatedInstanceWarmup(Duration estimatedInstanceWarmup)
Default: - Same as the cooldown.
estimatedInstanceWarmup - Estimated time until a newly launched instance can send metrics to CloudWatch. This parameter is required.this@Stability(value=Experimental) public TargetTrackingScalingPolicy.Builder targetValue(Number targetValue)
targetValue - The target value for the metric. This parameter is required.this@Stability(value=Experimental) public TargetTrackingScalingPolicy.Builder customMetric(IMetric customMetric)
The metric must track utilization. Scaling out will happen if the metric is higher than the target value, scaling in will happen in the metric is lower than the target value.
Exactly one of customMetric or predefinedMetric must be specified.
Default: - No custom metric.
customMetric - A custom metric for application autoscaling. This parameter is required.this@Stability(value=Experimental) public TargetTrackingScalingPolicy.Builder predefinedMetric(PredefinedMetric predefinedMetric)
The metric must track utilization. Scaling out will happen if the metric is higher than the target value, scaling in will happen in the metric is lower than the target value.
Exactly one of customMetric or predefinedMetric must be specified.
Default: - No predefined metric.
predefinedMetric - A predefined metric for application autoscaling. This parameter is required.this@Stability(value=Experimental) public TargetTrackingScalingPolicy.Builder resourceLabel(String resourceLabel)
Should be supplied if the predefined metric is ALBRequestCountPerTarget, and the format should be:
app/
Default: - No resource label.
resourceLabel - The resource label associated with the predefined metric. This parameter is required.this@Stability(value=Experimental) public TargetTrackingScalingPolicy.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
autoScalingGroup - This parameter is required.this@Stability(value=Experimental) public TargetTrackingScalingPolicy build()
build in interface software.amazon.jsii.Builder<TargetTrackingScalingPolicy>Copyright © 2021. All rights reserved.