Class: Aws::LexModelsV2::Types::MessageGroup

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

Overview

Note:

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

{
  message: { # required
    plain_text_message: {
      value: "PlainTextMessageValue", # required
    },
    custom_payload: {
      value: "CustomPayloadValue", # required
    },
    ssml_message: {
      value: "SSMLMessageValue", # required
    },
    image_response_card: {
      title: "AttachmentTitle", # required
      subtitle: "AttachmentTitle",
      image_url: "AttachmentUrl",
      buttons: [
        {
          text: "ButtonText", # required
          value: "ButtonValue", # required
        },
      ],
    },
  },
  variations: [
    {
      plain_text_message: {
        value: "PlainTextMessageValue", # required
      },
      custom_payload: {
        value: "CustomPayloadValue", # required
      },
      ssml_message: {
        value: "SSMLMessageValue", # required
      },
      image_response_card: {
        title: "AttachmentTitle", # required
        subtitle: "AttachmentTitle",
        image_url: "AttachmentUrl",
        buttons: [
          {
            text: "ButtonText", # required
            value: "ButtonValue", # required
          },
        ],
      },
    },
  ],
}

Provides one or more messages that Amazon Lex should send to the user.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#messageTypes::Message

The primary message that Amazon Lex should send to the user.

Returns:



7826
7827
7828
7829
7830
7831
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 7826

class MessageGroup < Struct.new(
  :message,
  :variations)
  SENSITIVE = []
  include Aws::Structure
end

#variationsArray<Types::Message>

Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.

Returns:



7826
7827
7828
7829
7830
7831
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 7826

class MessageGroup < Struct.new(
  :message,
  :variations)
  SENSITIVE = []
  include Aws::Structure
end