Class: AWSCDK::NimbleStudio::CfnStudioComponent::ScriptParameterKeyValueProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
nimble_studio/cfn_studio_component.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ScriptParameterKeyValueProperty.

Parameters:

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


752
753
754
755
756
757
# File 'nimble_studio/cfn_studio_component.rb', line 752

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)



761
762
763
# File 'nimble_studio/cfn_studio_component.rb', line 761

def key
  @key
end

#valueString? (readonly)



764
765
766
# File 'nimble_studio/cfn_studio_component.rb', line 764

def value
  @value
end

Class Method Details

.jsii_propertiesObject



766
767
768
769
770
771
# File 'nimble_studio/cfn_studio_component.rb', line 766

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

Instance Method Details

#to_jsiiObject



773
774
775
776
777
778
779
780
# File 'nimble_studio/cfn_studio_component.rb', line 773

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