MetricDimensionProperty Struct
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
| Source | aws-stepfunctions-tasks/lib/emr/emr-create-cluster.ts |
|---|
Example
ts
// 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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_stepfunctions_tasks as stepfunctions_tasks
metric_dimension_property = stepfunctions_tasks.EmrCreateCluster.MetricDimensionProperty(
key="key",
value="value"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.stepfunctions.tasks.*;
MetricDimensionProperty metricDimensionProperty = MetricDimensionProperty.builder()
.key("key")
.value("value")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.StepFunctions.Tasks;
var metricDimensionProperty = new MetricDimensionProperty {
Key = "key",
Value = "value"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
metricDimensionProperty := &MetricDimensionProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
}