Interface BasicTargetTrackingScalingPolicyProps
- All Superinterfaces:
BaseTargetTrackingProps
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
TargetTrackingScalingPolicyProps
- All Known Implementing Classes:
BasicTargetTrackingScalingPolicyProps.Jsii$Proxy
,TargetTrackingScalingPolicyProps.Jsii$Proxy
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forBasicTargetTrackingScalingPolicyProps
static final class
An implementation forBasicTargetTrackingScalingPolicyProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default IMetric
A custom metric for application autoscaling.default PredefinedMetric
A predefined metric for application autoscaling.default String
The resource label associated with the predefined metric.The target value for the metric.Methods inherited from interface software.amazon.awscdk.services.autoscaling.BaseTargetTrackingProps
getCooldown, getDisableScaleIn, getEstimatedInstanceWarmup
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTargetValue
The target value for the metric. -
getCustomMetric
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.
Default: - No custom metric.
-
getPredefinedMetric
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.
Default: - No predefined metric.
-
getResourceLabel
The resource label associated with the predefined metric.Should be supplied if the predefined metric is ALBRequestCountPerTarget, and the format should be:
app/invalid input: '<'load-balancer-name>/invalid input: '<'load-balancer-id>/targetgroup/invalid input: '<'target-group-name>/invalid input: '<'target-group-id>
Default: - No resource label.
-
builder
-