Interface CfnBot.IImageResponseCardProperty
A card that is shown to the user by a messaging platform.
Namespace: Amazon.CDK.AWS.Lex
Assembly: Amazon.CDK.AWS.Lex.dll
Syntax (csharp)
public interface IImageResponseCardProperty
Syntax (vb)
Public Interface IImageResponseCardProperty
Remarks
You define the contents of the card, the card is displayed by the platform.
When you use a response card, the response from the user is constrained to the text associated with a button on the card.
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 imageResponseCardProperty = new ImageResponseCardProperty {
Title = "title",
// the properties below are optional
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle"
};
Synopsis
Properties
Buttons | A list of buttons that should be displayed on the response card. |
ImageUrl | The URL of an image to display on the response card. |
Subtitle | The subtitle to display on the response card. |
Title | The title to display on the response card. |
Properties
Buttons
A list of buttons that should be displayed on the response card.
virtual object Buttons { get; }
Property Value
System.Object
Remarks
The arrangement of the buttons is determined by the platform that displays the button.
ImageUrl
The URL of an image to display on the response card.
virtual string ImageUrl { get; }
Property Value
System.String
Remarks
The image URL must be publicly available so that the platform displaying the response card has access to the image.
Subtitle
The subtitle to display on the response card.
virtual string Subtitle { get; }
Property Value
System.String
Remarks
The format of the subtitle is determined by the platform displaying the response card.
Title
The title to display on the response card.
string Title { get; }
Property Value
System.String
Remarks
The format of the title is determined by the platform displaying the response card.