public static final class CfnScalingPlan.TargetTrackingConfigurationProperty.Builder
extends java.lang.Object
CfnScalingPlan.TargetTrackingConfigurationProperty
Constructor and Description |
---|
Builder() |
public CfnScalingPlan.TargetTrackingConfigurationProperty.Builder targetValue(java.lang.Number targetValue)
CfnScalingPlan.TargetTrackingConfigurationProperty.getTargetValue()
targetValue
- The target value for the metric. This parameter is required.
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.this
public CfnScalingPlan.TargetTrackingConfigurationProperty.Builder customizedScalingMetricSpecification(IResolvable customizedScalingMetricSpecification)
CfnScalingPlan.TargetTrackingConfigurationProperty.getCustomizedScalingMetricSpecification()
customizedScalingMetricSpecification
- A customized metric.
You can specify either a predefined metric or a customized metric.this
public CfnScalingPlan.TargetTrackingConfigurationProperty.Builder customizedScalingMetricSpecification(CfnScalingPlan.CustomizedScalingMetricSpecificationProperty customizedScalingMetricSpecification)
CfnScalingPlan.TargetTrackingConfigurationProperty.getCustomizedScalingMetricSpecification()
customizedScalingMetricSpecification
- A customized metric.
You can specify either a predefined metric or a customized metric.this
public CfnScalingPlan.TargetTrackingConfigurationProperty.Builder disableScaleIn(java.lang.Boolean disableScaleIn)
CfnScalingPlan.TargetTrackingConfigurationProperty.getDisableScaleIn()
disableScaleIn
- 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
.
this
public CfnScalingPlan.TargetTrackingConfigurationProperty.Builder disableScaleIn(IResolvable disableScaleIn)
CfnScalingPlan.TargetTrackingConfigurationProperty.getDisableScaleIn()
disableScaleIn
- 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
.
this
public CfnScalingPlan.TargetTrackingConfigurationProperty.Builder estimatedInstanceWarmup(java.lang.Number estimatedInstanceWarmup)
estimatedInstanceWarmup
- 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.this
public CfnScalingPlan.TargetTrackingConfigurationProperty.Builder predefinedScalingMetricSpecification(IResolvable predefinedScalingMetricSpecification)
CfnScalingPlan.TargetTrackingConfigurationProperty.getPredefinedScalingMetricSpecification()
predefinedScalingMetricSpecification
- A predefined metric.
You can specify either a predefined metric or a customized metric.this
public CfnScalingPlan.TargetTrackingConfigurationProperty.Builder predefinedScalingMetricSpecification(CfnScalingPlan.PredefinedScalingMetricSpecificationProperty predefinedScalingMetricSpecification)
CfnScalingPlan.TargetTrackingConfigurationProperty.getPredefinedScalingMetricSpecification()
predefinedScalingMetricSpecification
- A predefined metric.
You can specify either a predefined metric or a customized metric.this
public CfnScalingPlan.TargetTrackingConfigurationProperty.Builder scaleInCooldown(java.lang.Number scaleInCooldown)
CfnScalingPlan.TargetTrackingConfigurationProperty.getScaleInCooldown()
scaleInCooldown
- 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.this
public CfnScalingPlan.TargetTrackingConfigurationProperty.Builder scaleOutCooldown(java.lang.Number scaleOutCooldown)
CfnScalingPlan.TargetTrackingConfigurationProperty.getScaleOutCooldown()
scaleOutCooldown
- 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.this
public CfnScalingPlan.TargetTrackingConfigurationProperty build()
CfnScalingPlan.TargetTrackingConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided