Class: Aws::LexModelsV2::Types::ResponseSpecification

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

{
  message_groups: [ # required
    {
      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
              },
            ],
          },
        },
      ],
    },
  ],
  allow_interrupt: false,
}

Specifies a list of message groups that Amazon Lex uses to respond the user input.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#allow_interruptBoolean

Indicates whether the user can interrupt a speech response from Amazon Lex.

Returns:

  • (Boolean)


6844
6845
6846
6847
6848
6849
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 6844

class ResponseSpecification < Struct.new(
  :message_groups,
  :allow_interrupt)
  SENSITIVE = []
  include Aws::Structure
end

#message_groupsArray<Types::MessageGroup>

A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.

Returns:



6844
6845
6846
6847
6848
6849
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 6844

class ResponseSpecification < Struct.new(
  :message_groups,
  :allow_interrupt)
  SENSITIVE = []
  include Aws::Structure
end