interface MessageProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Lex.CfnBot.MessageProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_MessageProperty |
![]() | software.amazon.awscdk.services.lex.CfnBot.MessageProperty |
![]() | aws_cdk.aws_lex.CfnBot.MessageProperty |
![]() | aws-cdk-lib » aws_lex » CfnBot » MessageProperty |
The object that provides message text and its type.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-message.html
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-lib';
const messageProperty: lex.CfnBot.MessageProperty = {
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 |
---|---|---|
custom | IResolvable | Custom | A message in a custom format defined by the client application. |
image | IResolvable | Image | A message that defines a response card that the client application can show to the user. |
plain | IResolvable | Plain | A message in plain text format. |
ssml | IResolvable | SSMLMessage | A message in Speech Synthesis Markup Language (SSML). |
customPayload?
Type:
IResolvable
|
Custom
(optional)
A message in a custom format defined by the client application.
imageResponseCard?
Type:
IResolvable
|
Image
(optional)
A message that defines a response card that the client application can show to the user.
plainTextMessage?
Type:
IResolvable
|
Plain
(optional)
A message in plain text format.
ssmlMessage?
Type:
IResolvable
|
SSMLMessage
(optional)
A message in Speech Synthesis Markup Language (SSML).