@Stability(value=Stable) public static final class CfnScalingPolicy.CustomizedMetricSpecificationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnScalingPolicy.CustomizedMetricSpecificationProperty>
CfnScalingPolicy.CustomizedMetricSpecificationProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnScalingPolicy.CustomizedMetricSpecificationProperty.Builder metricName(String metricName)
CfnScalingPolicy.CustomizedMetricSpecificationProperty.getMetricName()metricName - The name of the metric. 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.CustomizedMetricSpecificationProperty.Builder namespace(String namespace)
CfnScalingPolicy.CustomizedMetricSpecificationProperty.getNamespace()namespace - The namespace of the metric. This parameter is required.this@Stability(value=Stable) public CfnScalingPolicy.CustomizedMetricSpecificationProperty.Builder statistic(String statistic)
CfnScalingPolicy.CustomizedMetricSpecificationProperty.getStatistic()statistic - The statistic of the metric. This parameter is required.this@Stability(value=Stable) public CfnScalingPolicy.CustomizedMetricSpecificationProperty.Builder dimensions(IResolvable dimensions)
CfnScalingPolicy.CustomizedMetricSpecificationProperty.getDimensions()dimensions - The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.this@Stability(value=Stable) public CfnScalingPolicy.CustomizedMetricSpecificationProperty.Builder dimensions(List<? extends Object> dimensions)
CfnScalingPolicy.CustomizedMetricSpecificationProperty.getDimensions()dimensions - The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.this@Stability(value=Stable) public CfnScalingPolicy.CustomizedMetricSpecificationProperty.Builder unit(String unit)
CfnScalingPolicy.CustomizedMetricSpecificationProperty.getUnit()unit - The unit of the metric.
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.CustomizedMetricSpecificationProperty build()
build in interface software.amazon.jsii.Builder<CfnScalingPolicy.CustomizedMetricSpecificationProperty>CfnScalingPolicy.CustomizedMetricSpecificationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.