Class: Aws::LexRuntimeV2::Types::Message

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 Message data as a hash:

{
  content: "Text",
  content_type: "CustomPayload", # required, accepts CustomPayload, ImageResponseCard, PlainText, SSML
  image_response_card: {
    title: "AttachmentTitle", # required
    subtitle: "AttachmentTitle",
    image_url: "AttachmentUrl",
    buttons: [
      {
        text: "ButtonText", # required
        value: "ButtonValue", # required
      },
    ],
  },
}

Container for text that is returned to the customer..

Constant Summary collapse

SENSITIVE =
[:content]

Instance Attribute Summary collapse

Instance Attribute Details

#contentString

The text of the message.

Returns:

  • (String)


942
943
944
945
946
947
948
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 942

class Message < Struct.new(
  :content,
  :content_type,
  :image_response_card)
  SENSITIVE = [:content]
  include Aws::Structure
end

#content_typeString

Indicates the type of response.

Returns:

  • (String)


942
943
944
945
946
947
948
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 942

class Message < Struct.new(
  :content,
  :content_type,
  :image_response_card)
  SENSITIVE = [:content]
  include Aws::Structure
end

#image_response_cardTypes::ImageResponseCard

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.



942
943
944
945
946
947
948
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 942

class Message < Struct.new(
  :content,
  :content_type,
  :image_response_card)
  SENSITIVE = [:content]
  include Aws::Structure
end