interface MessageGroupProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lex.CfnBot.MessageGroupProperty |
Java | software.amazon.awscdk.services.lex.CfnBot.MessageGroupProperty |
Python | aws_cdk.aws_lex.CfnBot.MessageGroupProperty |
TypeScript | @aws-cdk/aws-lex » CfnBot » MessageGroupProperty |
Provides one or more messages that Amazon Lex should send to the user.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lex from '@aws-cdk/aws-lex';
const messageGroupProperty: lex.CfnBot.MessageGroupProperty = {
message: {
customPayload: {
value: 'value',
},
imageResponseCard: {
title: 'title',
// the properties below are optional
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
},
// the properties below are optional
variations: [{
customPayload: {
value: 'value',
},
imageResponseCard: {
title: 'title',
// the properties below are optional
buttons: [{
text: 'text',
value: 'value',
}],
imageUrl: 'imageUrl',
subtitle: 'subtitle',
},
plainTextMessage: {
value: 'value',
},
ssmlMessage: {
value: 'value',
},
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| message | IResolvable | Message | The primary message that Amazon Lex should send to the user. |
| variations? | IResolvable | IResolvable | Message[] | Message variations to send to the user. |
message
Type:
IResolvable | Message
The primary message that Amazon Lex should send to the user.
variations?
Type:
IResolvable | IResolvable | Message[]
(optional)
Message variations to send to the user.
When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.

.NET
Java
Python
TypeScript