Class: AWSCDK::Lex::CfnBot::SessionAttributeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::SessionAttributeProperty
- Defined in:
- lex/cfn_bot.rb
Overview
A key/value pair representing session-specific context information.
It contains application information passed between Amazon Lex V2 and a client application.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The name of the session attribute.
-
#value ⇒ String?
readonly
The session-specific context information for the session attribute.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value: nil) ⇒ SessionAttributeProperty
constructor
A new instance of SessionAttributeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value: nil) ⇒ SessionAttributeProperty
Returns a new instance of SessionAttributeProperty.
5193 5194 5195 5196 5197 5198 |
# File 'lex/cfn_bot.rb', line 5193 def initialize(key:, value: nil) @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") unless @value.nil? end |
Instance Attribute Details
#key ⇒ String (readonly)
The name of the session attribute.
5204 5205 5206 |
# File 'lex/cfn_bot.rb', line 5204 def key @key end |
#value ⇒ String? (readonly)
The session-specific context information for the session attribute.
5209 5210 5211 |
# File 'lex/cfn_bot.rb', line 5209 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
5211 5212 5213 5214 5215 5216 |
# File 'lex/cfn_bot.rb', line 5211 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
5218 5219 5220 5221 5222 5223 5224 5225 |
# File 'lex/cfn_bot.rb', line 5218 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |