Class: AWSCDK::Lex::CfnBot::DialogStateProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::DialogStateProperty
- Defined in:
- lex/cfn_bot.rb
Overview
The current state of the conversation with the user.
Instance Attribute Summary collapse
-
#dialog_action ⇒ AWSCDK::IResolvable, ...
readonly
Defines the action that the bot executes at runtime when the conversation reaches this step.
-
#intent ⇒ AWSCDK::IResolvable, ...
readonly
Override settings to configure the intent state.
-
#session_attributes ⇒ AWSCDK::IResolvable, ...
readonly
Map of key/value pairs representing session-specific context information.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dialog_action: nil, intent: nil, session_attributes: nil) ⇒ DialogStateProperty
constructor
A new instance of DialogStateProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(dialog_action: nil, intent: nil, session_attributes: nil) ⇒ DialogStateProperty
Returns a new instance of DialogStateProperty.
2472 2473 2474 2475 2476 2477 2478 2479 |
# File 'lex/cfn_bot.rb', line 2472 def initialize(dialog_action: nil, intent: nil, session_attributes: nil) @dialog_action = dialog_action.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::DialogActionProperty.new(**dialog_action.transform_keys(&:to_sym)) : dialog_action Jsii::Type.check_type(@dialog_action, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkRpYWxvZ0FjdGlvblByb3BlcnR5In1dfX0=")), "dialogAction") unless @dialog_action.nil? @intent = intent.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::IntentOverrideProperty.new(**intent.transform_keys(&:to_sym)) : intent Jsii::Type.check_type(@intent, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkludGVudE92ZXJyaWRlUHJvcGVydHkifV19fQ==")), "intent") unless @intent.nil? @session_attributes = session_attributes Jsii::Type.check_type(@session_attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdC5TZXNzaW9uQXR0cmlidXRlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "sessionAttributes") unless @session_attributes.nil? end |
Instance Attribute Details
#dialog_action ⇒ AWSCDK::IResolvable, ... (readonly)
Defines the action that the bot executes at runtime when the conversation reaches this step.
2485 2486 2487 |
# File 'lex/cfn_bot.rb', line 2485 def dialog_action @dialog_action end |
#intent ⇒ AWSCDK::IResolvable, ... (readonly)
Override settings to configure the intent state.
2490 2491 2492 |
# File 'lex/cfn_bot.rb', line 2490 def intent @intent end |
#session_attributes ⇒ AWSCDK::IResolvable, ... (readonly)
Map of key/value pairs representing session-specific context information.
It contains application information passed between Amazon Lex and a client application.
2497 2498 2499 |
# File 'lex/cfn_bot.rb', line 2497 def session_attributes @session_attributes end |
Class Method Details
.jsii_properties ⇒ Object
2499 2500 2501 2502 2503 2504 2505 |
# File 'lex/cfn_bot.rb', line 2499 def self.jsii_properties { :dialog_action => "dialogAction", :intent => "intent", :session_attributes => "sessionAttributes", } end |
Instance Method Details
#to_jsii ⇒ Object
2507 2508 2509 2510 2511 2512 2513 2514 2515 |
# File 'lex/cfn_bot.rb', line 2507 def to_jsii result = {} result.merge!({ "dialogAction" => @dialog_action, "intent" => @intent, "sessionAttributes" => @session_attributes, }) result.compact end |