Class: AWSCDK::Lex::CfnBot::ResponseSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::ResponseSpecificationProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Specifies a list of message groups that Amazon Lex uses to respond the user input.
Instance Attribute Summary collapse
-
#allow_interrupt ⇒ Boolean, ...
readonly
Indicates whether the user can interrupt a speech response from Amazon Lex.
-
#message_groups_list ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::MessageGroupProperty>
readonly
A collection of responses that Amazon Lex can send to the user.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message_groups_list:, allow_interrupt: nil) ⇒ ResponseSpecificationProperty
constructor
A new instance of ResponseSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(message_groups_list:, allow_interrupt: nil) ⇒ ResponseSpecificationProperty
Returns a new instance of ResponseSpecificationProperty.
4828 4829 4830 4831 4832 4833 |
# File 'lex/cfn_bot.rb', line 4828 def initialize(message_groups_list:, allow_interrupt: nil) @message_groups_list = Jsii::Type.check_type(@message_groups_list, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdC5NZXNzYWdlR3JvdXBQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "messageGroupsList") @allow_interrupt = allow_interrupt Jsii::Type.check_type(@allow_interrupt, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "allowInterrupt") unless @allow_interrupt.nil? end |
Instance Attribute Details
#allow_interrupt ⇒ Boolean, ... (readonly)
Indicates whether the user can interrupt a speech response from Amazon Lex.
4846 4847 4848 |
# File 'lex/cfn_bot.rb', line 4846 def allow_interrupt @allow_interrupt end |
#message_groups_list ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::MessageGroupProperty> (readonly)
A collection of responses that Amazon Lex can send to the user.
Amazon Lex chooses the actual response to send at runtime.
4841 4842 4843 |
# File 'lex/cfn_bot.rb', line 4841 def @message_groups_list end |
Class Method Details
.jsii_properties ⇒ Object
4848 4849 4850 4851 4852 4853 |
# File 'lex/cfn_bot.rb', line 4848 def self.jsii_properties { :message_groups_list => "messageGroupsList", :allow_interrupt => "allowInterrupt", } end |
Instance Method Details
#to_jsii ⇒ Object
4855 4856 4857 4858 4859 4860 4861 4862 |
# File 'lex/cfn_bot.rb', line 4855 def to_jsii result = {} result.merge!({ "messageGroupsList" => @message_groups_list, "allowInterrupt" => @allow_interrupt, }) result.compact end |