@Stability(value=Stable)
public static interface CfnScalingPolicy.CustomizedMetricSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.applicationautoscaling.*;
CustomizedMetricSpecificationProperty customizedMetricSpecificationProperty = CustomizedMetricSpecificationProperty.builder()
.metricName("metricName")
.namespace("namespace")
.statistic("statistic")
// the properties below are optional
.dimensions(List.of(MetricDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.unit("unit")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnScalingPolicy.CustomizedMetricSpecificationProperty.Builder
A builder for
CfnScalingPolicy.CustomizedMetricSpecificationProperty |
static class |
CfnScalingPolicy.CustomizedMetricSpecificationProperty.Jsii$Proxy
An implementation for
CfnScalingPolicy.CustomizedMetricSpecificationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnScalingPolicy.CustomizedMetricSpecificationProperty.Builder |
builder() |
default Object |
getDimensions()
`CfnScalingPolicy.CustomizedMetricSpecificationProperty.Dimensions`.
|
String |
getMetricName()
`CfnScalingPolicy.CustomizedMetricSpecificationProperty.MetricName`.
|
String |
getNamespace()
`CfnScalingPolicy.CustomizedMetricSpecificationProperty.Namespace`.
|
String |
getStatistic()
`CfnScalingPolicy.CustomizedMetricSpecificationProperty.Statistic`.
|
default String |
getUnit()
`CfnScalingPolicy.CustomizedMetricSpecificationProperty.Unit`.
|
@Stability(value=Stable) @Nullable default Object getDimensions()
@Stability(value=Stable) @NotNull String getMetricName()
@Stability(value=Stable) @NotNull String getNamespace()
@Stability(value=Stable) @NotNull String getStatistic()
@Stability(value=Stable) @Nullable default String getUnit()
@Stability(value=Stable) static CfnScalingPolicy.CustomizedMetricSpecificationProperty.Builder builder()
Copyright © 2021. All rights reserved.