Interface CfnBot.IMessageProperty
The object that provides message text and its type.
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.AWS.Lex.dll
Syntax (csharp)
public interface IMessageProperty
Syntax (vb)
Public Interface IMessageProperty
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-message.html
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.AWS.Lex;
var messageProperty = new MessageProperty {
CustomPayload = new CustomPayloadProperty {
Value = "value"
},
ImageResponseCard = new ImageResponseCardProperty {
Title = "title",
// the properties below are optional
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle"
},
PlainTextMessage = new PlainTextMessageProperty {
Value = "value"
},
SsmlMessage = new SSMLMessageProperty {
Value = "value"
}
};
Synopsis
Properties
CustomPayload | A message in a custom format defined by the client application. |
ImageResponseCard | A message that defines a response card that the client application can show to the user. |
PlainTextMessage | A message in plain text format. |
SsmlMessage | A message in Speech Synthesis Markup Language (SSML). |
Properties
CustomPayload
A message in a custom format defined by the client application.
virtual object CustomPayload { get; }
Property Value
System.Object
Remarks
ImageResponseCard
A message that defines a response card that the client application can show to the user.
virtual object ImageResponseCard { get; }
Property Value
System.Object
Remarks
PlainTextMessage
A message in plain text format.
virtual object PlainTextMessage { get; }
Property Value
System.Object
Remarks
SsmlMessage
A message in Speech Synthesis Markup Language (SSML).
virtual object SsmlMessage { get; }
Property Value
System.Object