Class CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.autoscaling.mixins.CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty>
- Enclosing interface:
CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty
@Stability(Stable)
public static final class CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dimensions(List<? extends Object> dimensions) dimensions(IResolvable dimensions) metricName(String metricName) metrics(IResolvable metrics)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dimensions
@Stability(Stable) public CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty.Builder dimensions(IResolvable dimensions) - Parameters:
dimensions- The dimensions of the metric. Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.- Returns:
this
-
dimensions
@Stability(Stable) public CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty.Builder dimensions(List<? extends Object> dimensions) - Parameters:
dimensions- The dimensions of the metric. Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.- Returns:
this
-
metricName
@Stability(Stable) public CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty.Builder metricName(String metricName) - Parameters:
metricName- The name of the metric. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics .- Returns:
this
-
metrics
@Stability(Stable) public CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty.Builder metrics(IResolvable metrics) - Parameters:
metrics- The metrics to include in the target tracking scaling policy, as a metric data query. This can include both raw metric and metric math expressions.- Returns:
this
-
metrics
@Stability(Stable) public CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty.Builder metrics(List<? extends Object> metrics) - Parameters:
metrics- The metrics to include in the target tracking scaling policy, as a metric data query. This can include both raw metric and metric math expressions.- Returns:
this
-
namespace
@Stability(Stable) public CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty.Builder namespace(String namespace) - Parameters:
namespace- The namespace of the metric.- Returns:
this
-
period
@Stability(Stable) public CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty.Builder period(Number period) - Parameters:
period- The period of the metric in seconds. The default value is 60. Accepted values are 10, 30, and 60. For high resolution metric, set the value to less than 60. For more information, see Create a target tracking policy using high-resolution metrics for faster response .- Returns:
this
-
statistic
@Stability(Stable) public CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty.Builder statistic(String statistic) - Parameters:
statistic- The statistic of the metric.- Returns:
this
-
unit
@Stability(Stable) public CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty.Builder unit(String unit) - Parameters:
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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty>- Returns:
- a new instance of
CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-