Class CfnBotPropsMixin.ImageResponseCardProperty
A card that is shown to the user by a messaging platform.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Lex.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnBotPropsMixin.ImageResponseCardProperty : CfnBotPropsMixin.IImageResponseCardProperty
Syntax (vb)
Public Class CfnBotPropsMixin.ImageResponseCardProperty Implements CfnBotPropsMixin.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.Mixins.Preview.AWS.Lex.Mixins;
var imageResponseCardProperty = new ImageResponseCardProperty {
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle",
Title = "title"
};
Synopsis
Constructors
| ImageResponseCardProperty() | A card that is shown to the user by a messaging platform. |
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. |
Constructors
ImageResponseCardProperty()
A card that is shown to the user by a messaging platform.
public ImageResponseCardProperty()
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.Mixins.Preview.AWS.Lex.Mixins;
var imageResponseCardProperty = new ImageResponseCardProperty {
Buttons = new [] { new ButtonProperty {
Text = "text",
Value = "value"
} },
ImageUrl = "imageUrl",
Subtitle = "subtitle",
Title = "title"
};
Properties
Buttons
A list of buttons that should be displayed on the response card.
public object? Buttons { get; set; }
Property Value
Remarks
The arrangement of the buttons is determined by the platform that displays the button.
Type union: either IResolvable or (either IResolvable or CfnBotPropsMixin.IButtonProperty)[]
ImageUrl
The URL of an image to display on the response card.
public string? ImageUrl { get; set; }
Property Value
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.
public string? Subtitle { get; set; }
Property Value
Remarks
The format of the subtitle is determined by the platform displaying the response card.
Title
The title to display on the response card.
public string? Title { get; set; }
Property Value
Remarks
The format of the title is determined by the platform displaying the response card.