Class: AWSCDK::Lex::CfnBot::DefaultConditionalBranchProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::DefaultConditionalBranchProperty
- Defined in:
- lex/cfn_bot.rb
Overview
A set of actions that Amazon Lex should run if none of the other conditions are met.
Instance Attribute Summary collapse
-
#next_step ⇒ AWSCDK::IResolvable, ...
readonly
The next step in the conversation.
-
#response ⇒ AWSCDK::IResolvable, ...
readonly
Specifies a list of message groups that Amazon Lex uses to respond the user input.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(next_step: nil, response: nil) ⇒ DefaultConditionalBranchProperty
constructor
A new instance of DefaultConditionalBranchProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(next_step: nil, response: nil) ⇒ DefaultConditionalBranchProperty
Returns a new instance of DefaultConditionalBranchProperty.
2236 2237 2238 2239 2240 2241 |
# File 'lex/cfn_bot.rb', line 2236 def initialize(next_step: nil, 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? @response = response.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ResponseSpecificationProperty.new(**response.transform_keys(&:to_sym)) : response Jsii::Type.check_type(@response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlJlc3BvbnNlU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "response") unless @response.nil? end |
Instance Attribute Details
#next_step ⇒ AWSCDK::IResolvable, ... (readonly)
The next step in the conversation.
2247 2248 2249 |
# File 'lex/cfn_bot.rb', line 2247 def next_step @next_step end |
#response ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies a list of message groups that Amazon Lex uses to respond the user input.
2252 2253 2254 |
# File 'lex/cfn_bot.rb', line 2252 def response @response end |
Class Method Details
.jsii_properties ⇒ Object
2254 2255 2256 2257 2258 2259 |
# File 'lex/cfn_bot.rb', line 2254 def self.jsii_properties { :next_step => "nextStep", :response => "response", } end |
Instance Method Details
#to_jsii ⇒ Object
2261 2262 2263 2264 2265 2266 2267 2268 |
# File 'lex/cfn_bot.rb', line 2261 def to_jsii result = {} result.merge!({ "nextStep" => @next_step, "response" => @response, }) result.compact end |