Class CfnBotPropsMixin.MessageGroupProperty
Provides one or more messages that Amazon Lex should send to the user.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnBotPropsMixin.MessageGroupProperty : CfnBotPropsMixin.IMessageGroupProperty
Syntax (vb)
Public Class CfnBotPropsMixin.MessageGroupProperty Implements CfnBotPropsMixin.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.Mixins.Preview.AWS.Lex.Mixins;
var messageGroupProperty = new MessageGroupProperty {
Message = new MessageProperty {
CustomPayload = new CustomPayloadProperty {
Value = "value"
},
ImageResponseCard = new ImageResponseCardProperty {
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle",
Title = "title"
},
PlainTextMessage = new PlainTextMessageProperty {
Value = "value"
},
SsmlMessage = new SSMLMessageProperty {
Value = "value"
}
},
Variations = new [] { new MessageProperty {
CustomPayload = new CustomPayloadProperty {
Value = "value"
},
ImageResponseCard = new ImageResponseCardProperty {
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle",
Title = "title"
},
PlainTextMessage = new PlainTextMessageProperty {
Value = "value"
},
SsmlMessage = new SSMLMessageProperty {
Value = "value"
}
} }
};
Synopsis
Constructors
| MessageGroupProperty() | Provides one or more messages that Amazon Lex should send to the user. |
Properties
| Message | The primary message that Amazon Lex should send to the user. |
| Variations | Message variations to send to the user. |
Constructors
MessageGroupProperty()
Provides one or more messages that Amazon Lex should send to the user.
public MessageGroupProperty()
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.Mixins.Preview.AWS.Lex.Mixins;
var messageGroupProperty = new MessageGroupProperty {
Message = new MessageProperty {
CustomPayload = new CustomPayloadProperty {
Value = "value"
},
ImageResponseCard = new ImageResponseCardProperty {
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle",
Title = "title"
},
PlainTextMessage = new PlainTextMessageProperty {
Value = "value"
},
SsmlMessage = new SSMLMessageProperty {
Value = "value"
}
},
Variations = new [] { new MessageProperty {
CustomPayload = new CustomPayloadProperty {
Value = "value"
},
ImageResponseCard = new ImageResponseCardProperty {
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle",
Title = "title"
},
PlainTextMessage = new PlainTextMessageProperty {
Value = "value"
},
SsmlMessage = new SSMLMessageProperty {
Value = "value"
}
} }
};
Properties
Message
The primary message that Amazon Lex should send to the user.
public object? Message { get; set; }
Property Value
Remarks
Variations
Message variations to send to the user.
public object? Variations { get; set; }
Property Value
Remarks
When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
Type union: either IResolvable or (either IResolvable or CfnBotPropsMixin.IMessageProperty)[]