Class: AWSCDK::Lambda::CfnMicrovmImage::EnvironmentVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::CfnMicrovmImage::EnvironmentVariableProperty
- Defined in:
- lambda/cfn_microvm_image.rb
Overview
Instance Attribute Summary collapse
- #key ⇒ String readonly
- #value ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ EnvironmentVariableProperty
constructor
A new instance of EnvironmentVariableProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ EnvironmentVariableProperty
Returns a new instance of EnvironmentVariableProperty.
800 801 802 803 804 805 |
# File 'lambda/cfn_microvm_image.rb', line 800 def initialize(key:, value:) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#key ⇒ String (readonly)
809 810 811 |
# File 'lambda/cfn_microvm_image.rb', line 809 def key @key end |
#value ⇒ String (readonly)
812 813 814 |
# File 'lambda/cfn_microvm_image.rb', line 812 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
814 815 816 817 818 819 |
# File 'lambda/cfn_microvm_image.rb', line 814 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
821 822 823 824 825 826 827 828 |
# File 'lambda/cfn_microvm_image.rb', line 821 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |