Class: Aws::LexRuntimeV2::Types::ImageResponseCard

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb

Overview

Note:

When making an API call, you may pass ImageResponseCard data as a hash:

{
  title: "AttachmentTitle", # required
  subtitle: "AttachmentTitle",
  image_url: "AttachmentUrl",
  buttons: [
    {
      text: "ButtonText", # required
      value: "ButtonValue", # required
    },
  ],
}

A card that is shown to the user by a messaging platform. 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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#buttonsArray<Types::Button>

A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.

Returns:



767
768
769
770
771
772
773
774
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 767

class ImageResponseCard < Struct.new(
  :title,
  :subtitle,
  :image_url,
  :buttons)
  SENSITIVE = []
  include Aws::Structure
end

#image_urlString

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

Returns:

  • (String)


767
768
769
770
771
772
773
774
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 767

class ImageResponseCard < Struct.new(
  :title,
  :subtitle,
  :image_url,
  :buttons)
  SENSITIVE = []
  include Aws::Structure
end

#subtitleString

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

Returns:

  • (String)


767
768
769
770
771
772
773
774
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 767

class ImageResponseCard < Struct.new(
  :title,
  :subtitle,
  :image_url,
  :buttons)
  SENSITIVE = []
  include Aws::Structure
end

#titleString

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

Returns:

  • (String)


767
768
769
770
771
772
773
774
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 767

class ImageResponseCard < Struct.new(
  :title,
  :subtitle,
  :image_url,
  :buttons)
  SENSITIVE = []
  include Aws::Structure
end