Show / Hide Table of Contents

Class CfnBotPropsMixin.ImageResponseCardProperty

A card that is shown to the user by a messaging platform.

Inheritance
object
CfnBotPropsMixin.ImageResponseCardProperty
Implements
CfnBotPropsMixin.IImageResponseCardProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-imageresponsecard.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.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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-imageresponsecard.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.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

object

Remarks

The arrangement of the buttons is determined by the platform that displays the button.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-imageresponsecard.html#cfn-lex-bot-imageresponsecard-buttons

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

string

Remarks

The image URL must be publicly available so that the platform displaying the response card has access to the image.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-imageresponsecard.html#cfn-lex-bot-imageresponsecard-imageurl

Subtitle

The subtitle to display on the response card.

public string? Subtitle { get; set; }
Property Value

string

Remarks

The format of the subtitle is determined by the platform displaying the response card.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-imageresponsecard.html#cfn-lex-bot-imageresponsecard-subtitle

Title

The title to display on the response card.

public string? Title { get; set; }
Property Value

string

Remarks

The format of the title is determined by the platform displaying the response card.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-imageresponsecard.html#cfn-lex-bot-imageresponsecard-title

Implements

CfnBotPropsMixin.IImageResponseCardProperty
Back to top Generated by DocFX