Class CfnBotPropsMixin.ConditionalBranchProperty
A set of actions that Amazon Lex should run if the condition is matched.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnBotPropsMixin.ConditionalBranchProperty : CfnBotPropsMixin.IConditionalBranchProperty
Syntax (vb)
Public Class CfnBotPropsMixin.ConditionalBranchProperty Implements CfnBotPropsMixin.IConditionalBranchProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins;
SlotValueOverrideProperty slotValueOverrideProperty_;
var conditionalBranchProperty = new ConditionalBranchProperty {
Condition = new ConditionProperty {
ExpressionString = "expressionString"
},
Name = "name",
NextStep = new DialogStateProperty {
DialogAction = new DialogActionProperty {
SlotToElicit = "slotToElicit",
SuppressNextMessage = false,
Type = "type"
},
Intent = new IntentOverrideProperty {
Name = "name",
Slots = new [] { new SlotValueOverrideMapProperty {
SlotName = "slotName",
SlotValueOverride = new SlotValueOverrideProperty {
Shape = "shape",
Value = new SlotValueProperty {
InterpretedValue = "interpretedValue"
},
Values = new [] { slotValueOverrideProperty_ }
}
} }
},
SessionAttributes = new [] { new SessionAttributeProperty {
Key = "key",
Value = "value"
} }
},
Response = new ResponseSpecificationProperty {
AllowInterrupt = false,
MessageGroupsList = new [] { new MessageGroupProperty {
Message = new MessageProperty {
CustomPayload = new CustomPayloadProperty {
Value = "value"
},
ImageResponseCard = new ImageResponseCardProperty {
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle",
Title = "title"
},
PlainTextMessage = new PlainTextMessageProperty {
Value = "value"
},
SsmlMessage = new SSMLMessageProperty {
Value = "value"
}
},
Variations = new [] { new MessageProperty {
CustomPayload = new CustomPayloadProperty {
Value = "value"
},
ImageResponseCard = new ImageResponseCardProperty {
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle",
Title = "title"
},
PlainTextMessage = new PlainTextMessageProperty {
Value = "value"
},
SsmlMessage = new SSMLMessageProperty {
Value = "value"
}
} }
} }
}
};
Synopsis
Constructors
| ConditionalBranchProperty() | A set of actions that Amazon Lex should run if the condition is matched. |
Properties
| Condition | Contains the expression to evaluate. |
| Name | The name of the branch. |
| NextStep | The next step in the conversation. |
| Response | Specifies a list of message groups that Amazon Lex uses to respond the user input. |
Constructors
ConditionalBranchProperty()
A set of actions that Amazon Lex should run if the condition is matched.
public ConditionalBranchProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins;
SlotValueOverrideProperty slotValueOverrideProperty_;
var conditionalBranchProperty = new ConditionalBranchProperty {
Condition = new ConditionProperty {
ExpressionString = "expressionString"
},
Name = "name",
NextStep = new DialogStateProperty {
DialogAction = new DialogActionProperty {
SlotToElicit = "slotToElicit",
SuppressNextMessage = false,
Type = "type"
},
Intent = new IntentOverrideProperty {
Name = "name",
Slots = new [] { new SlotValueOverrideMapProperty {
SlotName = "slotName",
SlotValueOverride = new SlotValueOverrideProperty {
Shape = "shape",
Value = new SlotValueProperty {
InterpretedValue = "interpretedValue"
},
Values = new [] { slotValueOverrideProperty_ }
}
} }
},
SessionAttributes = new [] { new SessionAttributeProperty {
Key = "key",
Value = "value"
} }
},
Response = new ResponseSpecificationProperty {
AllowInterrupt = false,
MessageGroupsList = new [] { new MessageGroupProperty {
Message = new MessageProperty {
CustomPayload = new CustomPayloadProperty {
Value = "value"
},
ImageResponseCard = new ImageResponseCardProperty {
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle",
Title = "title"
},
PlainTextMessage = new PlainTextMessageProperty {
Value = "value"
},
SsmlMessage = new SSMLMessageProperty {
Value = "value"
}
},
Variations = new [] { new MessageProperty {
CustomPayload = new CustomPayloadProperty {
Value = "value"
},
ImageResponseCard = new ImageResponseCardProperty {
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle",
Title = "title"
},
PlainTextMessage = new PlainTextMessageProperty {
Value = "value"
},
SsmlMessage = new SSMLMessageProperty {
Value = "value"
}
} }
} }
}
};
Properties
Condition
Contains the expression to evaluate.
public object? Condition { get; set; }
Property Value
Remarks
If the condition is true, the branch's actions are taken.
Type union: either IResolvable or CfnBotPropsMixin.IConditionProperty
Name
The name of the branch.
public string? Name { get; set; }
Property Value
Remarks
NextStep
The next step in the conversation.
public object? NextStep { get; set; }
Property Value
Remarks
Response
Specifies a list of message groups that Amazon Lex uses to respond the user input.
public object? Response { get; set; }