@Stability(value=Stable) public static final class CfnScalingPolicy.MetricStatProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnScalingPolicy.MetricStatProperty>
CfnScalingPolicy.MetricStatProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnScalingPolicy.MetricStatProperty |
build()
Builds the configured instance.
|
CfnScalingPolicy.MetricStatProperty.Builder |
metric(CfnScalingPolicy.MetricProperty metric)
Sets the value of
CfnScalingPolicy.MetricStatProperty.getMetric() |
CfnScalingPolicy.MetricStatProperty.Builder |
metric(IResolvable metric)
Sets the value of
CfnScalingPolicy.MetricStatProperty.getMetric() |
CfnScalingPolicy.MetricStatProperty.Builder |
stat(String stat)
Sets the value of
CfnScalingPolicy.MetricStatProperty.getStat() |
CfnScalingPolicy.MetricStatProperty.Builder |
unit(String unit)
Sets the value of
CfnScalingPolicy.MetricStatProperty.getUnit() |
@Stability(value=Stable) public CfnScalingPolicy.MetricStatProperty.Builder metric(CfnScalingPolicy.MetricProperty metric)
CfnScalingPolicy.MetricStatProperty.getMetric()metric - The CloudWatch metric to return, including the metric name, namespace, and dimensions. This parameter is required.
To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics .this@Stability(value=Stable) public CfnScalingPolicy.MetricStatProperty.Builder metric(IResolvable metric)
CfnScalingPolicy.MetricStatProperty.getMetric()metric - The CloudWatch metric to return, including the metric name, namespace, and dimensions. This parameter is required.
To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics .this@Stability(value=Stable) public CfnScalingPolicy.MetricStatProperty.Builder stat(String stat)
CfnScalingPolicy.MetricStatProperty.getStat()stat - The statistic to return. This parameter is required.
It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide .
The most commonly used metrics for predictive scaling are Average and Sum .
this@Stability(value=Stable) public CfnScalingPolicy.MetricStatProperty.Builder unit(String unit)
CfnScalingPolicy.MetricStatProperty.getUnit()unit - The unit to use for the returned data points.
For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference .this@Stability(value=Stable) public CfnScalingPolicy.MetricStatProperty build()
build in interface software.amazon.jsii.Builder<CfnScalingPolicy.MetricStatProperty>CfnScalingPolicy.MetricStatPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.