Class: AWSCDK::Lex::CfnBot::SessionAttributeProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SessionAttributeProperty.

Parameters:

  • key (String)

    The name of the session attribute.

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

    The session-specific context information for the session attribute.



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

#keyString (readonly)

The name of the session attribute.



5204
5205
5206
# File 'lex/cfn_bot.rb', line 5204

def key
  @key
end

#valueString? (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_propertiesObject



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_jsiiObject



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