aws-cdk-lib.aws_stepfunctions_tasks.EmrCreateCluster.MetricDimensionProperty

interface MetricDimensionProperty

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.EmrCreateCluster.MetricDimensionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#EmrCreateCluster_MetricDimensionProperty
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.MetricDimensionProperty
Pythonaws_cdk.aws_stepfunctions_tasks.EmrCreateCluster.MetricDimensionProperty
TypeScript (source)aws-cdk-lib » aws_stepfunctions_tasks » EmrCreateCluster » MetricDimensionProperty

A CloudWatch dimension, which is specified using a Key (known as a Name in CloudWatch), Value pair.

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 rule to bootstrap when the cluster ID becomes available

See also: https://docs.aws.amazon.com/emr/latest/APIReference/API_MetricDimension.html

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';
const metricDimensionProperty: stepfunctions_tasks.EmrCreateCluster.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.