Class: AWSCDK::EMR::CfnCluster::KeyValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EMR::CfnCluster::KeyValueProperty
- 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
-
#key ⇒ String?
readonly
The unique identifier of a key-value pair.
-
#value ⇒ String?
readonly
The value part of the identified key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key: nil, value: nil) ⇒ KeyValueProperty
constructor
A new instance of KeyValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key: nil, value: nil) ⇒ KeyValueProperty
Returns a new instance of KeyValueProperty.
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
#key ⇒ String? (readonly)
The unique identifier of a key-value pair.
2257 2258 2259 |
# File 'emr/cfn_cluster.rb', line 2257 def key @key end |
#value ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |