@Stability(value=Stable)
public static interface CfnInstanceGroupConfig.MetricDimensionProperty
extends software.amazon.jsii.JsiiSerializable
MetricDimension specifies a CloudWatch dimension, which is specified with a Key Value pair. The key is known as a Name in CloudWatch. By default, Amazon EMR uses one dimension whose Key is JobFlowID and Value is a variable representing the cluster ID, which is ${emr.clusterId} . This enables the automatic scaling rule for EMR to bootstrap when the cluster ID becomes available during cluster creation.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.emr.*;
MetricDimensionProperty metricDimensionProperty = MetricDimensionProperty.builder()
.key("key")
.value("value")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInstanceGroupConfig.MetricDimensionProperty.Builder
A builder for
CfnInstanceGroupConfig.MetricDimensionProperty |
static class |
CfnInstanceGroupConfig.MetricDimensionProperty.Jsii$Proxy
An implementation for
CfnInstanceGroupConfig.MetricDimensionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnInstanceGroupConfig.MetricDimensionProperty.Builder |
builder() |
String |
getKey()
The dimension name.
|
String |
getValue()
The dimension value.
|
@Stability(value=Stable) @NotNull String getKey()
@Stability(value=Stable) @NotNull String getValue()
@Stability(value=Stable) static CfnInstanceGroupConfig.MetricDimensionProperty.Builder builder()
Copyright © 2022. All rights reserved.