AWS::Lex::Bot ConditionalSpecification
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.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "ConditionalBranches" :
[ ConditionalBranch, ... ]
, "DefaultBranch" :DefaultConditionalBranch
, "IsActive" :Boolean
}
YAML
ConditionalBranches:
- ConditionalBranch
DefaultBranch:DefaultConditionalBranch
IsActive:Boolean
Properties
ConditionalBranches
-
A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
Required: Yes
Type: Array of ConditionalBranch
Minimum:
1
Maximum:
4
Update requires: No interruption
DefaultBranch
-
The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.
Required: Yes
Type: DefaultConditionalBranch
Update requires: No interruption
IsActive
-
Determines whether a conditional branch is active. When
IsActive
is false, the conditions are not evaluated.Required: Yes
Type: Boolean
Update requires: No interruption