Class: AWSCDK::EMR::CfnStep::KeyValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EMR::CfnStep::KeyValueProperty
- Defined in:
- emr/cfn_step.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.
640 641 642 643 644 645 |
# File 'emr/cfn_step.rb', line 640 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.
651 652 653 |
# File 'emr/cfn_step.rb', line 651 def key @key end |
#value ⇒ String? (readonly)
The value part of the identified key.
656 657 658 |
# File 'emr/cfn_step.rb', line 656 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
658 659 660 661 662 663 |
# File 'emr/cfn_step.rb', line 658 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
665 666 667 668 669 670 671 672 |
# File 'emr/cfn_step.rb', line 665 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |