aws-cdk-lib.aws_emr.CfnInstanceGroupConfig.MetricDimensionProperty

interface MetricDimensionProperty

LanguageType name
.NETAmazon.CDK.AWS.EMR.CfnInstanceGroupConfig.MetricDimensionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsemr#CfnInstanceGroupConfig_MetricDimensionProperty
Javasoftware.amazon.awscdk.services.emr.CfnInstanceGroupConfig.MetricDimensionProperty
Pythonaws_cdk.aws_emr.CfnInstanceGroupConfig.MetricDimensionProperty
TypeScript aws-cdk-lib » aws_emr » CfnInstanceGroupConfig » 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 { aws_emr as emr } from 'aws-cdk-lib';
const metricDimensionProperty: emr.CfnInstanceGroupConfig.MetricDimensionProperty = {
  key: 'key',
  value: 'value',
};

Properties

NameTypeDescription
keystringThe dimension name.
valuestringThe dimension value.

key

Type: string

The dimension name.


value

Type: string

The dimension value.