interface MessageGroupProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Lex.CfnBotPropsMixin.MessageGroupProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awslex#CfnBotPropsMixin_MessageGroupProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.MessageGroupProperty |
Python | aws_cdk.cfn_property_mixins.aws_lex.CfnBotPropsMixin.MessageGroupProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_lex » CfnBotPropsMixin » 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 { aws_lex as lex } from '@aws-cdk/cfn-property-mixins';
const messageGroupProperty: lex.CfnBotPropsMixin.MessageGroupProperty = {
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 |
|---|---|---|
| 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
(optional)
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
Go
Java
Python
TypeScript