Class: AWSCDK::Lex::CfnBot::ConditionalBranchProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::ConditionalBranchProperty
- Defined in:
- lex/cfn_bot.rb
Overview
A set of actions that Amazon Lex should run if the condition is matched.
Instance Attribute Summary collapse
-
#condition ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::ConditionProperty
readonly
Contains the expression to evaluate.
-
#name ⇒ String
readonly
The name of the branch.
-
#next_step ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::DialogStateProperty
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(condition:, name:, next_step:, response: nil) ⇒ ConditionalBranchProperty
constructor
A new instance of ConditionalBranchProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(condition:, name:, next_step:, response: nil) ⇒ ConditionalBranchProperty
Returns a new instance of ConditionalBranchProperty.
1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 |
# File 'lex/cfn_bot.rb', line 1752 def initialize(condition:, name:, next_step:, response: nil) @condition = condition.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ConditionProperty.new(**condition.transform_keys(&:to_sym)) : condition Jsii::Type.check_type(@condition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkNvbmRpdGlvblByb3BlcnR5In1dfX0=")), "condition") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @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") @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
#condition ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::ConditionProperty (readonly)
Contains the expression to evaluate.
If the condition is true, the branch's actions are taken.
1769 1770 1771 |
# File 'lex/cfn_bot.rb', line 1769 def condition @condition end |
#name ⇒ String (readonly)
The name of the branch.
1774 1775 1776 |
# File 'lex/cfn_bot.rb', line 1774 def name @name end |
#next_step ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::DialogStateProperty (readonly)
The next step in the conversation.
1779 1780 1781 |
# File 'lex/cfn_bot.rb', line 1779 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.
1784 1785 1786 |
# File 'lex/cfn_bot.rb', line 1784 def response @response end |
Class Method Details
.jsii_properties ⇒ Object
1786 1787 1788 1789 1790 1791 1792 1793 |
# File 'lex/cfn_bot.rb', line 1786 def self.jsii_properties { :condition => "condition", :name => "name", :next_step => "nextStep", :response => "response", } end |
Instance Method Details
#to_jsii ⇒ Object
1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 |
# File 'lex/cfn_bot.rb', line 1795 def to_jsii result = {} result.merge!({ "condition" => @condition, "name" => @name, "nextStep" => @next_step, "response" => @response, }) result.compact end |