Class: AWSCDK::Lex::CfnBot::WaitAndContinueSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::WaitAndContinueSpecificationProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.
Instance Attribute Summary collapse
-
#continue_response ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::ResponseSpecificationProperty
readonly
The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.
-
#is_active ⇒ Boolean, ...
readonly
Specifies whether the bot will wait for a user to respond.
-
#still_waiting_response ⇒ AWSCDK::IResolvable, ...
readonly
A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.
-
#waiting_response ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::ResponseSpecificationProperty
readonly
The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(continue_response:, waiting_response:, is_active: nil, still_waiting_response: nil) ⇒ WaitAndContinueSpecificationProperty
constructor
A new instance of WaitAndContinueSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(continue_response:, waiting_response:, is_active: nil, still_waiting_response: nil) ⇒ WaitAndContinueSpecificationProperty
Returns a new instance of WaitAndContinueSpecificationProperty.
6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 |
# File 'lex/cfn_bot.rb', line 6727 def initialize(continue_response:, waiting_response:, is_active: nil, still_waiting_response: nil) @continue_response = continue_response.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ResponseSpecificationProperty.new(**continue_response.transform_keys(&:to_sym)) : continue_response Jsii::Type.check_type(@continue_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlJlc3BvbnNlU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "continueResponse") @waiting_response = waiting_response.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ResponseSpecificationProperty.new(**waiting_response.transform_keys(&:to_sym)) : waiting_response Jsii::Type.check_type(@waiting_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlJlc3BvbnNlU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "waitingResponse") @is_active = is_active Jsii::Type.check_type(@is_active, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isActive") unless @is_active.nil? @still_waiting_response = still_waiting_response.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::StillWaitingResponseSpecificationProperty.new(**still_waiting_response.transform_keys(&:to_sym)) : still_waiting_response Jsii::Type.check_type(@still_waiting_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlN0aWxsV2FpdGluZ1Jlc3BvbnNlU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "stillWaitingResponse") unless @still_waiting_response.nil? end |
Instance Attribute Details
#continue_response ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::ResponseSpecificationProperty (readonly)
The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.
6742 6743 6744 |
# File 'lex/cfn_bot.rb', line 6742 def continue_response @continue_response end |
#is_active ⇒ Boolean, ... (readonly)
Specifies whether the bot will wait for a user to respond.
When this field is false, wait and continue responses for a slot aren't used. If the IsActive field isn't specified, the default is true.
6754 6755 6756 |
# File 'lex/cfn_bot.rb', line 6754 def is_active @is_active end |
#still_waiting_response ⇒ AWSCDK::IResolvable, ... (readonly)
A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.
6759 6760 6761 |
# File 'lex/cfn_bot.rb', line 6759 def still_waiting_response @still_waiting_response end |
#waiting_response ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::ResponseSpecificationProperty (readonly)
The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.
6747 6748 6749 |
# File 'lex/cfn_bot.rb', line 6747 def waiting_response @waiting_response end |
Class Method Details
.jsii_properties ⇒ Object
6761 6762 6763 6764 6765 6766 6767 6768 |
# File 'lex/cfn_bot.rb', line 6761 def self.jsii_properties { :continue_response => "continueResponse", :waiting_response => "waitingResponse", :is_active => "isActive", :still_waiting_response => "stillWaitingResponse", } end |
Instance Method Details
#to_jsii ⇒ Object
6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 |
# File 'lex/cfn_bot.rb', line 6770 def to_jsii result = {} result.merge!({ "continueResponse" => @continue_response, "waitingResponse" => @waiting_response, "isActive" => @is_active, "stillWaitingResponse" => @still_waiting_response, }) result.compact end |