@Stability(value=Stable) public static final class CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty>
| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder targetValue(Number targetValue)
targetValue - Specifies the target utilization. This parameter is required.
Some metrics are based on a count instead of a percentage, such as the request count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy specifies one of these metrics, specify the target utilization as the optimal average request or message count per instance during any one-minute interval.
this@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedCapacityMetricSpecification(CfnScalingPolicy.PredictiveScalingCustomizedCapacityMetricProperty customizedCapacityMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedCapacityMetricSpecification()customizedCapacityMetricSpecification - The customized capacity metric specification.this@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedCapacityMetricSpecification(IResolvable customizedCapacityMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedCapacityMetricSpecification()customizedCapacityMetricSpecification - The customized capacity metric specification.this@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedLoadMetricSpecification(CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty customizedLoadMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedLoadMetricSpecification()customizedLoadMetricSpecification - The customized load metric specification.this@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedLoadMetricSpecification(IResolvable customizedLoadMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedLoadMetricSpecification()customizedLoadMetricSpecification - The customized load metric specification.this@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedScalingMetricSpecification(CfnScalingPolicy.PredictiveScalingCustomizedScalingMetricProperty customizedScalingMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedScalingMetricSpecification()customizedScalingMetricSpecification - The customized scaling metric specification.this@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedScalingMetricSpecification(IResolvable customizedScalingMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedScalingMetricSpecification()customizedScalingMetricSpecification - The customized scaling metric specification.this@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedLoadMetricSpecification(CfnScalingPolicy.PredictiveScalingPredefinedLoadMetricProperty predefinedLoadMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedLoadMetricSpecification()predefinedLoadMetricSpecification - The load metric specification.
If you specify PredefinedMetricPairSpecification , don't specify this property.this@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedLoadMetricSpecification(IResolvable predefinedLoadMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedLoadMetricSpecification()predefinedLoadMetricSpecification - The load metric specification.
If you specify PredefinedMetricPairSpecification , don't specify this property.this@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedMetricPairSpecification(CfnScalingPolicy.PredictiveScalingPredefinedMetricPairProperty predefinedMetricPairSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedMetricPairSpecification()predefinedMetricPairSpecification - The metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.
With predictive scaling, you must specify either a metric pair, or a load metric and a scaling metric individually. Specifying a metric pair instead of individual metrics provides a simpler way to configure metrics for a scaling policy. You choose the metric pair, and the policy automatically knows the correct sum and average statistics to use for the load metric and the scaling metric.
this@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedMetricPairSpecification(IResolvable predefinedMetricPairSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedMetricPairSpecification()predefinedMetricPairSpecification - The metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.
With predictive scaling, you must specify either a metric pair, or a load metric and a scaling metric individually. Specifying a metric pair instead of individual metrics provides a simpler way to configure metrics for a scaling policy. You choose the metric pair, and the policy automatically knows the correct sum and average statistics to use for the load metric and the scaling metric.
this@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedScalingMetricSpecification(CfnScalingPolicy.PredictiveScalingPredefinedScalingMetricProperty predefinedScalingMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedScalingMetricSpecification()predefinedScalingMetricSpecification - The scaling metric specification.
If you specify PredefinedMetricPairSpecification , don't specify this property.this@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedScalingMetricSpecification(IResolvable predefinedScalingMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedScalingMetricSpecification()predefinedScalingMetricSpecification - The scaling metric specification.
If you specify PredefinedMetricPairSpecification , don't specify this property.this@Stability(value=Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty build()
build in interface software.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty>CfnScalingPolicy.PredictiveScalingMetricSpecificationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.