Class CfnBot.MessageGroupProperty
Provides one or more messages that Amazon Lex should send to the user.
Inheritance
System.Object
CfnBot.MessageGroupProperty
Implements
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class MessageGroupProperty : Object, CfnBot.IMessageGroupProperty
Syntax (vb)
Public Class MessageGroupProperty
Inherits Object
Implements CfnBot.IMessageGroupProperty
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.AWS.Lex;
var messageGroupProperty = new MessageGroupProperty {
Message = 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"
}
},
// the properties below are optional
Variations = new [] { 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
Constructors
MessageGroupProperty() |
Properties
Message | The primary message that Amazon Lex should send to the user. |
Variations | Message variations to send to the user. |
Constructors
MessageGroupProperty()
public MessageGroupProperty()
Properties
Message
The primary message that Amazon Lex should send to the user.
public object Message { get; set; }
Property Value
System.Object
Remarks
Variations
Message variations to send to the user.
public object Variations { get; set; }
Property Value
System.Object
Remarks
When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.