interface MetricDimensionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EMR.Mixins.CfnInstanceGroupConfigPropsMixin.MetricDimensionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsemr/mixins#CfnInstanceGroupConfigPropsMixin_MetricDimensionProperty |
Java | software.amazon.awscdk.mixins.preview.services.emr.mixins.CfnInstanceGroupConfigPropsMixin.MetricDimensionProperty |
Python | aws_cdk.mixins_preview.aws_emr.mixins.CfnInstanceGroupConfigPropsMixin.MetricDimensionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_emr » mixins » CfnInstanceGroupConfigPropsMixin » MetricDimensionProperty |
MetricDimension is a subproperty of the CloudWatchAlarmDefinition property type.
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 { mixins as emr_mixins } from '@aws-cdk/mixins-preview/aws-emr';
const metricDimensionProperty: emr_mixins.CfnInstanceGroupConfigPropsMixin.MetricDimensionProperty = {
key: 'key',
value: 'value',
};
Properties
| Name | Type | Description |
|---|---|---|
| key? | string | The dimension name. |
| value? | string | The dimension value. |
key?
Type:
string
(optional)
The dimension name.
value?
Type:
string
(optional)
The dimension value.

.NET
Go
Java
Python
TypeScript