Class: AWSCDK::Lex::CfnBot::DialogActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::DialogActionProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Defines the action that the bot executes at runtime when the conversation reaches this step.
Instance Attribute Summary collapse
-
#slot_to_elicit ⇒ String?
readonly
If the dialog action is
ElicitSlot, defines the slot to elicit from the user. -
#suppress_next_message ⇒ Boolean, ...
readonly
When true the next message for the intent is not used.
-
#type ⇒ String
readonly
The action that the bot should execute.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, slot_to_elicit: nil, suppress_next_message: nil) ⇒ DialogActionProperty
constructor
A new instance of DialogActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, slot_to_elicit: nil, suppress_next_message: nil) ⇒ DialogActionProperty
Returns a new instance of DialogActionProperty.
2323 2324 2325 2326 2327 2328 2329 2330 |
# File 'lex/cfn_bot.rb', line 2323 def initialize(type:, slot_to_elicit: nil, suppress_next_message: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @slot_to_elicit = slot_to_elicit Jsii::Type.check_type(@slot_to_elicit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "slotToElicit") unless @slot_to_elicit.nil? @suppress_next_message = Jsii::Type.check_type(@suppress_next_message, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "suppressNextMessage") unless @suppress_next_message.nil? end |
Instance Attribute Details
#slot_to_elicit ⇒ String? (readonly)
If the dialog action is ElicitSlot , defines the slot to elicit from the user.
2341 2342 2343 |
# File 'lex/cfn_bot.rb', line 2341 def slot_to_elicit @slot_to_elicit end |
#suppress_next_message ⇒ Boolean, ... (readonly)
When true the next message for the intent is not used.
2346 2347 2348 |
# File 'lex/cfn_bot.rb', line 2346 def @suppress_next_message end |
#type ⇒ String (readonly)
The action that the bot should execute.
2336 2337 2338 |
# File 'lex/cfn_bot.rb', line 2336 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
2348 2349 2350 2351 2352 2353 2354 |
# File 'lex/cfn_bot.rb', line 2348 def self.jsii_properties { :type => "type", :slot_to_elicit => "slotToElicit", :suppress_next_message => "suppressNextMessage", } end |
Instance Method Details
#to_jsii ⇒ Object
2356 2357 2358 2359 2360 2361 2362 2363 2364 |
# File 'lex/cfn_bot.rb', line 2356 def to_jsii result = {} result.merge!({ "type" => @type, "slotToElicit" => @slot_to_elicit, "suppressNextMessage" => @suppress_next_message, }) result.compact end |