Class: AWSCDK::StepFunctionsTasks::EMRCreateCluster::MetricDimensionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions_tasks/emr_create_cluster.rb

Overview

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 $emremr.clusterId. This enables the rule to bootstrap when the cluster ID becomes available

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ MetricDimensionProperty

Returns a new instance of MetricDimensionProperty.

Parameters:

  • key (String)

    The dimension name.

  • value (String)

    The dimension value.



2130
2131
2132
2133
2134
2135
# File 'step_functions_tasks/emr_create_cluster.rb', line 2130

def initialize(key:, value:)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#keyString (readonly)

The dimension name.

Returns:

  • (String)


2140
2141
2142
# File 'step_functions_tasks/emr_create_cluster.rb', line 2140

def key
  @key
end

#valueString (readonly)

The dimension value.

Returns:

  • (String)


2144
2145
2146
# File 'step_functions_tasks/emr_create_cluster.rb', line 2144

def value
  @value
end

Class Method Details

.jsii_propertiesObject



2146
2147
2148
2149
2150
2151
# File 'step_functions_tasks/emr_create_cluster.rb', line 2146

def self.jsii_properties
  {
    :key => "key",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



2153
2154
2155
2156
2157
2158
2159
2160
# File 'step_functions_tasks/emr_create_cluster.rb', line 2153

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "value" => @value,
  })
  result.compact
end