interface ConditionalBranchProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins.CfnBotPropsMixin.ConditionalBranchProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslex/mixins#CfnBotPropsMixin_ConditionalBranchProperty |
Java | software.amazon.awscdk.mixins.preview.services.lex.mixins.CfnBotPropsMixin.ConditionalBranchProperty |
Python | aws_cdk.mixins_preview.aws_lex.mixins.CfnBotPropsMixin.ConditionalBranchProperty |
TypeScript | @aws-cdk/mixins-preview » aws_lex » mixins » CfnBotPropsMixin » ConditionalBranchProperty |
A set of actions that Amazon Lex should run if the condition is matched.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as lex_mixins } from '@aws-cdk/mixins-preview/aws-lex';
declare const slotValueOverrideProperty_: lex_mixins.CfnBotPropsMixin.SlotValueOverrideProperty;
const conditionalBranchProperty: lex_mixins.CfnBotPropsMixin.ConditionalBranchProperty = {
condition: {
expressionString: 'expressionString',
},
name: 'name',
nextStep: {
dialogAction: {
slotToElicit: 'slotToElicit',
suppressNextMessage: false,
type: 'type',
},
intent: {
name: 'name',
slots: [{
slotName: 'slotName',
slotValueOverride: {
shape: 'shape',
value: {
interpretedValue: 'interpretedValue',
},
values: [slotValueOverrideProperty_],
},
}],
},
sessionAttributes: [{
key: 'key',
value: 'value',
}],
},
response: {
allowInterrupt: false,
messageGroupsList: [{
message: {
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
},
variations: [{
customPayload: {
value: 'value',
},
imageResponseCard: {
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
title: 'title',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
}],
}],
},
};
Properties
| Name | Type | Description |
|---|---|---|
| condition? | IResolvable | Condition | Contains the expression to evaluate. |
| name? | string | The name of the branch. |
| next | IResolvable | Dialog | The next step in the conversation. |
| response? | IResolvable | Response | Specifies a list of message groups that Amazon Lex uses to respond the user input. |
condition?
Type:
IResolvable | Condition
(optional)
Contains the expression to evaluate.
If the condition is true, the branch's actions are taken.
name?
Type:
string
(optional)
The name of the branch.
nextStep?
Type:
IResolvable | Dialog
(optional)
The next step in the conversation.
response?
Type:
IResolvable | Response
(optional)
Specifies a list of message groups that Amazon Lex uses to respond the user input.

.NET
Go
Java
Python
TypeScript