ConditionalSpecification - Amazon Lex API Reference

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.

Contents

active

Determines whether a conditional branch is active. When active is false, the conditions are not evaluated.

Type: Boolean

Required: Yes

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.

Type: Array of ConditionalBranch objects

Array Members: Minimum number of 1 item. Maximum number of 4 items.

Required: Yes

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.

Type: DefaultConditionalBranch object

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: