@Stability(value=Experimental) public static final class BasicTargetTrackingScalingPolicyProps.Builder extends Object implements software.amazon.jsii.Builder<BasicTargetTrackingScalingPolicyProps>
BasicTargetTrackingScalingPolicyProps
Constructor and Description |
---|
Builder() |
@Stability(value=Experimental) public BasicTargetTrackingScalingPolicyProps.Builder targetValue(Number targetValue)
BasicTargetTrackingScalingPolicyProps.getTargetValue()
targetValue
- The target value for the metric. This parameter is required.this
@Stability(value=Experimental) public BasicTargetTrackingScalingPolicyProps.Builder customMetric(IMetric customMetric)
BasicTargetTrackingScalingPolicyProps.getCustomMetric()
customMetric
- A custom metric for application autoscaling.
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.
this
@Stability(value=Experimental) public BasicTargetTrackingScalingPolicyProps.Builder predefinedMetric(PredefinedMetric predefinedMetric)
BasicTargetTrackingScalingPolicyProps.getPredefinedMetric()
predefinedMetric
- A predefined metric for application autoscaling.
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.
this
@Stability(value=Experimental) public BasicTargetTrackingScalingPolicyProps.Builder resourceLabel(String resourceLabel)
BasicTargetTrackingScalingPolicyProps.getResourceLabel()
resourceLabel
- The resource label associated with the predefined metric.
Should be supplied if the predefined metric is ALBRequestCountPerTarget, and the
format should be:
app/
this
@Stability(value=Experimental) public BasicTargetTrackingScalingPolicyProps.Builder cooldown(Duration cooldown)
BaseTargetTrackingProps.getCooldown()
cooldown
- Period after a scaling completes before another scaling activity can start.this
@Stability(value=Experimental) public BasicTargetTrackingScalingPolicyProps.Builder disableScaleIn(Boolean disableScaleIn)
BaseTargetTrackingProps.getDisableScaleIn()
disableScaleIn
- Indicates whether scale in by the target tracking policy is disabled.
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.this
@Stability(value=Experimental) public BasicTargetTrackingScalingPolicyProps.Builder estimatedInstanceWarmup(Duration estimatedInstanceWarmup)
BaseTargetTrackingProps.getEstimatedInstanceWarmup()
estimatedInstanceWarmup
- Estimated time until a newly launched instance can send metrics to CloudWatch.this
@Stability(value=Experimental) public BasicTargetTrackingScalingPolicyProps build()
build
in interface software.amazon.jsii.Builder<BasicTargetTrackingScalingPolicyProps>
BasicTargetTrackingScalingPolicyProps
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.