@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.419Z") @Stability(value=Stable) public interface TargetTrackingScalingPolicyProps extends software.amazon.jsii.JsiiSerializable, BasicTargetTrackingScalingPolicyProps
Adds the scalingTarget.
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.applicationautoscaling.*;
import software.amazon.awscdk.services.cloudwatch.*;
Metric metric;
ScalableTarget scalableTarget;
TargetTrackingScalingPolicyProps targetTrackingScalingPolicyProps = TargetTrackingScalingPolicyProps.builder()
.scalingTarget(scalableTarget)
.targetValue(123)
// the properties below are optional
.customMetric(metric)
.disableScaleIn(false)
.policyName("policyName")
.predefinedMetric(PredefinedMetric.APPSTREAM_AVERAGE_CAPACITY_UTILIZATION)
.resourceLabel("resourceLabel")
.scaleInCooldown(Duration.minutes(30))
.scaleOutCooldown(Duration.minutes(30))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
TargetTrackingScalingPolicyProps.Builder
A builder for
TargetTrackingScalingPolicyProps |
static class |
TargetTrackingScalingPolicyProps.Jsii$Proxy
An implementation for
TargetTrackingScalingPolicyProps |
| Modifier and Type | Method and Description |
|---|---|
static TargetTrackingScalingPolicyProps.Builder |
builder() |
IScalableTarget |
getScalingTarget() |
getCustomMetric, getPredefinedMetric, getResourceLabel, getTargetValuegetDisableScaleIn, getPolicyName, getScaleInCooldown, getScaleOutCooldown@Stability(value=Stable) @NotNull IScalableTarget getScalingTarget()
@Stability(value=Stable) static TargetTrackingScalingPolicyProps.Builder builder()
builder in interface BaseTargetTrackingPropsbuilder in interface BasicTargetTrackingScalingPolicyPropsTargetTrackingScalingPolicyProps.Builder of TargetTrackingScalingPolicyPropsCopyright © 2022. All rights reserved.