Class: AWSCDK::EMR::CfnStep::KeyValueProperty

Inherits:
Jsii::Struct
  • Object
show all
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

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.



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

#keyString? (readonly)

The unique identifier of a key-value pair.



651
652
653
# File 'emr/cfn_step.rb', line 651

def key
  @key
end

#valueString? (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_propertiesObject



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_jsiiObject



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