Class: AWSCDK::GetContextKeyResult
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GetContextKeyResult
- Defined in:
- get_context_key_result.rb
Instance Attribute Summary collapse
- #key ⇒ String readonly
- #props ⇒ Hash{String => Object} readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, props:) ⇒ GetContextKeyResult
constructor
A new instance of GetContextKeyResult.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, props:) ⇒ GetContextKeyResult
Returns a new instance of GetContextKeyResult.
8 9 10 11 12 13 |
# File 'get_context_key_result.rb', line 8 def initialize(key:, props:) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @props = props Jsii::Type.check_type(@props, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6ImFueSJ9LCJraW5kIjoibWFwIn19")), "props") end |
Instance Attribute Details
#key ⇒ String (readonly)
16 17 18 |
# File 'get_context_key_result.rb', line 16 def key @key end |
#props ⇒ Hash{String => Object} (readonly)
18 19 20 |
# File 'get_context_key_result.rb', line 18 def props @props end |
Class Method Details
.jsii_properties ⇒ Object
20 21 22 23 24 25 |
# File 'get_context_key_result.rb', line 20 def self.jsii_properties { :key => "key", :props => "props", } end |
Instance Method Details
#to_jsii ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'get_context_key_result.rb', line 27 def to_jsii result = {} result.merge!({ "key" => @key, "props" => @props, }) result.compact end |