Class: AWSCDK::EMR::CfnCluster::KeyValueProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
emr/cfn_cluster.rb

Overview

KeyValue is a subproperty of the HadoopJarStepConfig property type.

KeyValue is used to pass parameters to a step.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key: nil, value: nil) ⇒ KeyValueProperty

Returns a new instance of KeyValueProperty.

Parameters:

  • key (String, nil) (defaults to: nil)

    The unique identifier of a key-value pair.

  • value (String, nil) (defaults to: nil)

    The value part of the identified key.



2246
2247
2248
2249
2250
2251
# File 'emr/cfn_cluster.rb', line 2246

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

Instance Attribute Details

#keyString? (readonly)

The unique identifier of a key-value pair.



2257
2258
2259
# File 'emr/cfn_cluster.rb', line 2257

def key
  @key
end

#valueString? (readonly)

The value part of the identified key.



2262
2263
2264
# File 'emr/cfn_cluster.rb', line 2262

def value
  @value
end

Class Method Details

.jsii_propertiesObject



2264
2265
2266
2267
2268
2269
# File 'emr/cfn_cluster.rb', line 2264

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

Instance Method Details

#to_jsiiObject



2271
2272
2273
2274
2275
2276
2277
2278
# File 'emr/cfn_cluster.rb', line 2271

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