Class: AWSCDK::Lex::CfnBot::InitialResponseSettingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::InitialResponseSettingProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Configuration setting for a response sent to the user before Amazon Lex starts eliciting slots.
Instance Attribute Summary collapse
-
#code_hook ⇒ AWSCDK::IResolvable, ...
readonly
Settings that specify the dialog code hook that is called by Amazon Lex at a step of the conversation.
-
#conditional ⇒ AWSCDK::IResolvable, ...
readonly
Provides a list of conditional branches.
-
#initial_response ⇒ AWSCDK::IResolvable, ...
readonly
Specifies a list of message groups that Amazon Lex uses to respond the user input.
-
#next_step ⇒ AWSCDK::IResolvable, ...
readonly
The next step in the conversation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code_hook: nil, conditional: nil, initial_response: nil, next_step: nil) ⇒ InitialResponseSettingProperty
constructor
A new instance of InitialResponseSettingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(code_hook: nil, conditional: nil, initial_response: nil, next_step: nil) ⇒ InitialResponseSettingProperty
Returns a new instance of InitialResponseSettingProperty.
3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 |
# File 'lex/cfn_bot.rb', line 3124 def initialize(code_hook: nil, conditional: nil, initial_response: nil, next_step: nil) @code_hook = code_hook.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::DialogCodeHookInvocationSettingProperty.new(**code_hook.transform_keys(&:to_sym)) : code_hook Jsii::Type.check_type(@code_hook, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkRpYWxvZ0NvZGVIb29rSW52b2NhdGlvblNldHRpbmdQcm9wZXJ0eSJ9XX19")), "codeHook") unless @code_hook.nil? @conditional = conditional.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ConditionalSpecificationProperty.new(**conditional.transform_keys(&:to_sym)) : conditional Jsii::Type.check_type(@conditional, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkNvbmRpdGlvbmFsU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "conditional") unless @conditional.nil? @initial_response = initial_response.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ResponseSpecificationProperty.new(**initial_response.transform_keys(&:to_sym)) : initial_response Jsii::Type.check_type(@initial_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlJlc3BvbnNlU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "initialResponse") unless @initial_response.nil? @next_step = next_step.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::DialogStateProperty.new(**next_step.transform_keys(&:to_sym)) : next_step Jsii::Type.check_type(@next_step, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkRpYWxvZ1N0YXRlUHJvcGVydHkifV19fQ==")), "nextStep") unless @next_step.nil? end |
Instance Attribute Details
#code_hook ⇒ AWSCDK::IResolvable, ... (readonly)
Settings that specify the dialog code hook that is called by Amazon Lex at a step of the conversation.
3139 3140 3141 |
# File 'lex/cfn_bot.rb', line 3139 def code_hook @code_hook end |
#conditional ⇒ AWSCDK::IResolvable, ... (readonly)
Provides a list of conditional branches.
Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.
3146 3147 3148 |
# File 'lex/cfn_bot.rb', line 3146 def conditional @conditional end |
#initial_response ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies a list of message groups that Amazon Lex uses to respond the user input.
3151 3152 3153 |
# File 'lex/cfn_bot.rb', line 3151 def initial_response @initial_response end |
#next_step ⇒ AWSCDK::IResolvable, ... (readonly)
The next step in the conversation.
3156 3157 3158 |
# File 'lex/cfn_bot.rb', line 3156 def next_step @next_step end |
Class Method Details
.jsii_properties ⇒ Object
3158 3159 3160 3161 3162 3163 3164 3165 |
# File 'lex/cfn_bot.rb', line 3158 def self.jsii_properties { :code_hook => "codeHook", :conditional => "conditional", :initial_response => "initialResponse", :next_step => "nextStep", } end |
Instance Method Details
#to_jsii ⇒ Object
3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 |
# File 'lex/cfn_bot.rb', line 3167 def to_jsii result = {} result.merge!({ "codeHook" => @code_hook, "conditional" => @conditional, "initialResponse" => @initial_response, "nextStep" => @next_step, }) result.compact end |