Class: AWSCDK::GetContextKeyResult

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
get_context_key_result.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, props:) ⇒ GetContextKeyResult

Returns a new instance of GetContextKeyResult.

Parameters:

  • key (String)
  • props (Hash{String => Object})


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

#keyString (readonly)

Returns:

  • (String)


16
17
18
# File 'get_context_key_result.rb', line 16

def key
  @key
end

#propsHash{String => Object} (readonly)

Returns:

  • (Hash{String => Object})


18
19
20
# File 'get_context_key_result.rb', line 18

def props
  @props
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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