@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.726Z") @Stability(value=Stable) public interface BasicTargetTrackingScalingPolicyProps extends software.amazon.jsii.JsiiSerializable, BaseTargetTrackingProps
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.autoscaling.*;
import software.amazon.awscdk.services.cloudwatch.*;
Metric metric;
BasicTargetTrackingScalingPolicyProps basicTargetTrackingScalingPolicyProps = BasicTargetTrackingScalingPolicyProps.builder()
.targetValue(123)
// the properties below are optional
.cooldown(Duration.minutes(30))
.customMetric(metric)
.disableScaleIn(false)
.estimatedInstanceWarmup(Duration.minutes(30))
.predefinedMetric(PredefinedMetric.ASG_AVERAGE_CPU_UTILIZATION)
.resourceLabel("resourceLabel")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
BasicTargetTrackingScalingPolicyProps.Builder
A builder for
BasicTargetTrackingScalingPolicyProps |
static class |
BasicTargetTrackingScalingPolicyProps.Jsii$Proxy
An implementation for
BasicTargetTrackingScalingPolicyProps |
| Modifier and Type | Method and Description |
|---|---|
static BasicTargetTrackingScalingPolicyProps.Builder |
builder() |
default IMetric |
getCustomMetric()
A custom metric for application autoscaling.
|
default PredefinedMetric |
getPredefinedMetric()
A predefined metric for application autoscaling.
|
default String |
getResourceLabel()
The resource label associated with the predefined metric.
|
Number |
getTargetValue()
The target value for the metric.
|
getCooldown, getDisableScaleIn, getEstimatedInstanceWarmup@Stability(value=Stable) @NotNull Number getTargetValue()
@Stability(value=Stable) @Nullable default IMetric getCustomMetric()
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.
@Stability(value=Stable) @Nullable default PredefinedMetric getPredefinedMetric()
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.
@Stability(value=Stable) @Nullable default String getResourceLabel()
Should be supplied if the predefined metric is ALBRequestCountPerTarget, and the format should be:
app/
Default: - No resource label.
@Stability(value=Stable) static BasicTargetTrackingScalingPolicyProps.Builder builder()
builder in interface BaseTargetTrackingPropsBasicTargetTrackingScalingPolicyProps.Builder of BasicTargetTrackingScalingPolicyPropsCopyright © 2022. All rights reserved.