Interface CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnScalingPlanPropsMixin
TargetTrackingConfiguration is a subproperty of ScalingInstruction that specifies a target tracking configuration for a scalable resource.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.autoscalingplans.*;
TargetTrackingConfigurationProperty targetTrackingConfigurationProperty = TargetTrackingConfigurationProperty.builder()
.customizedScalingMetricSpecification(CustomizedScalingMetricSpecificationProperty.builder()
.dimensions(List.of(MetricDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.statistic("statistic")
.unit("unit")
.build())
.disableScaleIn(false)
.estimatedInstanceWarmup(123)
.predefinedScalingMetricSpecification(PredefinedScalingMetricSpecificationProperty.builder()
.predefinedScalingMetricType("predefinedScalingMetricType")
.resourceLabel("resourceLabel")
.build())
.scaleInCooldown(123)
.scaleOutCooldown(123)
.targetValue(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectA customized metric.default ObjectIndicates whether scale in by the target tracking scaling policy is disabled.default NumberThe estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.default ObjectA predefined metric.default NumberThe amount of time, in seconds, after a scale-in activity completes before another scale in activity can start.default NumberThe amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start.default NumberThe target value for the metric.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCustomizedScalingMetricSpecification
A customized metric.You can specify either a predefined metric or a customized metric.
Returns union: either
IResolvableorCfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty- See Also:
-
getDisableScaleIn
Indicates whether scale in by the target tracking scaling policy is disabled.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.Returns union: either
BooleanorIResolvable- See Also:
-
getEstimatedInstanceWarmup
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.This value is used only if the resource is an Auto Scaling group.
- See Also:
-
getPredefinedScalingMetricSpecification
A predefined metric.You can specify either a predefined metric or a customized metric.
Returns union: either
IResolvableorCfnScalingPlanPropsMixin.PredefinedScalingMetricSpecificationProperty- See Also:
-
getScaleInCooldown
The amount of time, in seconds, after a scale-in activity completes before another scale in activity can start.This value is not used if the scalable resource is an Auto Scaling group.
- See Also:
-
getScaleOutCooldown
The amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start.This value is not used if the scalable resource is an Auto Scaling group.
- See Also:
-
getTargetValue
The target value for the metric.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.
- See Also:
-
builder
@Stability(Stable) static CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder builder()
-