@Stability(value=Stable)
public static interface CfnScalingPlan.TargetTrackingConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.autoscalingplans.*;
TargetTrackingConfigurationProperty targetTrackingConfigurationProperty = TargetTrackingConfigurationProperty.builder()
.targetValue(123)
// the properties below are optional
.customizedScalingMetricSpecification(CustomizedScalingMetricSpecificationProperty.builder()
.metricName("metricName")
.namespace("namespace")
.statistic("statistic")
// the properties below are optional
.dimensions(List.of(MetricDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.unit("unit")
.build())
.disableScaleIn(false)
.estimatedInstanceWarmup(123)
.predefinedScalingMetricSpecification(PredefinedScalingMetricSpecificationProperty.builder()
.predefinedScalingMetricType("predefinedScalingMetricType")
// the properties below are optional
.resourceLabel("resourceLabel")
.build())
.scaleInCooldown(123)
.scaleOutCooldown(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnScalingPlan.TargetTrackingConfigurationProperty.Builder
A builder for
CfnScalingPlan.TargetTrackingConfigurationProperty |
static class |
CfnScalingPlan.TargetTrackingConfigurationProperty.Jsii$Proxy
An implementation for
CfnScalingPlan.TargetTrackingConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnScalingPlan.TargetTrackingConfigurationProperty.Builder |
builder() |
default Object |
getCustomizedScalingMetricSpecification()
A customized metric.
|
default Object |
getDisableScaleIn()
Indicates whether scale in by the target tracking scaling policy is disabled.
|
default Number |
getEstimatedInstanceWarmup()
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
|
default Object |
getPredefinedScalingMetricSpecification()
A predefined metric.
|
default Number |
getScaleInCooldown()
The amount of time, in seconds, after a scale-in activity completes before another scale in activity can start.
|
default Number |
getScaleOutCooldown()
The amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start.
|
Number |
getTargetValue()
The target value for the metric.
|
@Stability(value=Stable) @NotNull Number getTargetValue()
Although this property accepts numbers of type Double, it won't accept values that are either too small or too large. Values must be in the range of -2^360 to 2^360.
@Stability(value=Stable) @Nullable default Object getCustomizedScalingMetricSpecification()
You can specify either a predefined metric or a customized metric.
@Stability(value=Stable) @Nullable default Object getDisableScaleIn()
If the value is true , scale in is disabled and the target tracking scaling policy doesn't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking scaling policy can remove capacity from the scalable resource.
The default value is false .
@Stability(value=Stable) @Nullable default Number getEstimatedInstanceWarmup()
This value is used only if the resource is an Auto Scaling group.
@Stability(value=Stable) @Nullable default Object getPredefinedScalingMetricSpecification()
You can specify either a predefined metric or a customized metric.
@Stability(value=Stable) @Nullable default Number getScaleInCooldown()
This value is not used if the scalable resource is an Auto Scaling group.
@Stability(value=Stable) @Nullable default Number getScaleOutCooldown()
This value is not used if the scalable resource is an Auto Scaling group.
@Stability(value=Stable) static CfnScalingPlan.TargetTrackingConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.