-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnCluster_MetricDimensionProperty.go
30 lines (27 loc) · 1.48 KB
/
CfnCluster_MetricDimensionProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package awsemr
// `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 "github.com/aws/aws-cdk-go/awscdk"
//
// metricDimensionProperty := &MetricDimensionProperty{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-metricdimension.html
//
type CfnCluster_MetricDimensionProperty struct {
// The dimension name.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-metricdimension.html#cfn-emr-cluster-metricdimension-key
//
Key *string `field:"required" json:"key" yaml:"key"`
// The dimension value.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-metricdimension.html#cfn-emr-cluster-metricdimension-value
//
Value *string `field:"required" json:"value" yaml:"value"`
}