Class: AWSCDK::Lex::CfnBot::PostFulfillmentStatusSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::PostFulfillmentStatusSpecificationProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Instance Attribute Summary collapse
-
#failure_conditional ⇒ AWSCDK::IResolvable, ...
readonly
A list of conditional branches to evaluate after the fulfillment code hook throws an exception or returns with the
Statefield of theIntentobject set toFailed. -
#failure_next_step ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the next step the bot runs after the fulfillment code hook throws an exception or returns with the
Statefield of theIntentobject set toFailed. -
#failure_response ⇒ AWSCDK::IResolvable, ...
readonly
Specifies a list of message groups that Amazon Lex uses to respond when fulfillment isn't successful.
-
#success_conditional ⇒ AWSCDK::IResolvable, ...
readonly
A list of conditional branches to evaluate after the fulfillment code hook finishes successfully.
-
#success_next_step ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the next step in the conversation that Amazon Lex invokes when the fulfillment code hook completes successfully.
-
#success_response ⇒ AWSCDK::IResolvable, ...
readonly
Specifies a list of message groups that Amazon Lex uses to respond when the fulfillment is successful.
-
#timeout_conditional ⇒ AWSCDK::IResolvable, ...
readonly
A list of conditional branches to evaluate if the fulfillment code hook times out.
-
#timeout_next_step ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the next step that the bot runs when the fulfillment code hook times out.
-
#timeout_response ⇒ AWSCDK::IResolvable, ...
readonly
Specifies a list of message groups that Amazon Lex uses to respond when fulfillment isn't completed within the timeout period.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(failure_conditional: nil, failure_next_step: nil, failure_response: nil, success_conditional: nil, success_next_step: nil, success_response: nil, timeout_conditional: nil, timeout_next_step: nil, timeout_response: nil) ⇒ PostFulfillmentStatusSpecificationProperty
constructor
A new instance of PostFulfillmentStatusSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(failure_conditional: nil, failure_next_step: nil, failure_response: nil, success_conditional: nil, success_next_step: nil, success_response: nil, timeout_conditional: nil, timeout_next_step: nil, timeout_response: nil) ⇒ PostFulfillmentStatusSpecificationProperty
Returns a new instance of PostFulfillmentStatusSpecificationProperty.
4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 |
# File 'lex/cfn_bot.rb', line 4389 def initialize(failure_conditional: nil, failure_next_step: nil, failure_response: nil, success_conditional: nil, success_next_step: nil, success_response: nil, timeout_conditional: nil, timeout_next_step: nil, timeout_response: nil) @failure_conditional = failure_conditional.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ConditionalSpecificationProperty.new(**failure_conditional.transform_keys(&:to_sym)) : failure_conditional Jsii::Type.check_type(@failure_conditional, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkNvbmRpdGlvbmFsU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "failureConditional") unless @failure_conditional.nil? @failure_next_step = failure_next_step.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::DialogStateProperty.new(**failure_next_step.transform_keys(&:to_sym)) : failure_next_step Jsii::Type.check_type(@failure_next_step, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkRpYWxvZ1N0YXRlUHJvcGVydHkifV19fQ==")), "failureNextStep") unless @failure_next_step.nil? @failure_response = failure_response.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ResponseSpecificationProperty.new(**failure_response.transform_keys(&:to_sym)) : failure_response Jsii::Type.check_type(@failure_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlJlc3BvbnNlU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "failureResponse") unless @failure_response.nil? @success_conditional = success_conditional.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ConditionalSpecificationProperty.new(**success_conditional.transform_keys(&:to_sym)) : success_conditional Jsii::Type.check_type(@success_conditional, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkNvbmRpdGlvbmFsU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "successConditional") unless @success_conditional.nil? @success_next_step = success_next_step.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::DialogStateProperty.new(**success_next_step.transform_keys(&:to_sym)) : success_next_step Jsii::Type.check_type(@success_next_step, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkRpYWxvZ1N0YXRlUHJvcGVydHkifV19fQ==")), "successNextStep") unless @success_next_step.nil? @success_response = success_response.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ResponseSpecificationProperty.new(**success_response.transform_keys(&:to_sym)) : success_response Jsii::Type.check_type(@success_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlJlc3BvbnNlU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "successResponse") unless @success_response.nil? @timeout_conditional = timeout_conditional.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ConditionalSpecificationProperty.new(**timeout_conditional.transform_keys(&:to_sym)) : timeout_conditional Jsii::Type.check_type(@timeout_conditional, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkNvbmRpdGlvbmFsU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "timeoutConditional") unless @timeout_conditional.nil? @timeout_next_step = timeout_next_step.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::DialogStateProperty.new(**timeout_next_step.transform_keys(&:to_sym)) : timeout_next_step Jsii::Type.check_type(@timeout_next_step, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkRpYWxvZ1N0YXRlUHJvcGVydHkifV19fQ==")), "timeoutNextStep") unless @timeout_next_step.nil? @timeout_response = timeout_response.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ResponseSpecificationProperty.new(**timeout_response.transform_keys(&:to_sym)) : timeout_response Jsii::Type.check_type(@timeout_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlJlc3BvbnNlU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "timeoutResponse") unless @timeout_response.nil? end |
Instance Attribute Details
#failure_conditional ⇒ AWSCDK::IResolvable, ... (readonly)
A list of conditional branches to evaluate after the fulfillment code hook throws an exception or returns with the State field of the Intent object set to Failed .
4414 4415 4416 |
# File 'lex/cfn_bot.rb', line 4414 def failure_conditional @failure_conditional end |
#failure_next_step ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the next step the bot runs after the fulfillment code hook throws an exception or returns with the State field of the Intent object set to Failed .
4419 4420 4421 |
# File 'lex/cfn_bot.rb', line 4419 def failure_next_step @failure_next_step end |
#failure_response ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies a list of message groups that Amazon Lex uses to respond when fulfillment isn't successful.
4424 4425 4426 |
# File 'lex/cfn_bot.rb', line 4424 def failure_response @failure_response end |
#success_conditional ⇒ AWSCDK::IResolvable, ... (readonly)
A list of conditional branches to evaluate after the fulfillment code hook finishes successfully.
4429 4430 4431 |
# File 'lex/cfn_bot.rb', line 4429 def success_conditional @success_conditional end |
#success_next_step ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the next step in the conversation that Amazon Lex invokes when the fulfillment code hook completes successfully.
4434 4435 4436 |
# File 'lex/cfn_bot.rb', line 4434 def success_next_step @success_next_step end |
#success_response ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies a list of message groups that Amazon Lex uses to respond when the fulfillment is successful.
4439 4440 4441 |
# File 'lex/cfn_bot.rb', line 4439 def success_response @success_response end |
#timeout_conditional ⇒ AWSCDK::IResolvable, ... (readonly)
A list of conditional branches to evaluate if the fulfillment code hook times out.
4444 4445 4446 |
# File 'lex/cfn_bot.rb', line 4444 def timeout_conditional @timeout_conditional end |
#timeout_next_step ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the next step that the bot runs when the fulfillment code hook times out.
4449 4450 4451 |
# File 'lex/cfn_bot.rb', line 4449 def timeout_next_step @timeout_next_step end |
#timeout_response ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies a list of message groups that Amazon Lex uses to respond when fulfillment isn't completed within the timeout period.
4454 4455 4456 |
# File 'lex/cfn_bot.rb', line 4454 def timeout_response @timeout_response end |
Class Method Details
.jsii_properties ⇒ Object
4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 |
# File 'lex/cfn_bot.rb', line 4456 def self.jsii_properties { :failure_conditional => "failureConditional", :failure_next_step => "failureNextStep", :failure_response => "failureResponse", :success_conditional => "successConditional", :success_next_step => "successNextStep", :success_response => "successResponse", :timeout_conditional => "timeoutConditional", :timeout_next_step => "timeoutNextStep", :timeout_response => "timeoutResponse", } end |
Instance Method Details
#to_jsii ⇒ Object
4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 |
# File 'lex/cfn_bot.rb', line 4470 def to_jsii result = {} result.merge!({ "failureConditional" => @failure_conditional, "failureNextStep" => @failure_next_step, "failureResponse" => @failure_response, "successConditional" => @success_conditional, "successNextStep" => @success_next_step, "successResponse" => @success_response, "timeoutConditional" => @timeout_conditional, "timeoutNextStep" => @timeout_next_step, "timeoutResponse" => @timeout_response, }) result.compact end |