Class: Aws::LexModelsV2::Types::IntentClosingSetting

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

{
  closing_response: { # required
    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,
  },
  active: false,
}

Provides a statement the Amazon Lex conveys to the user when the intent is successfully fulfilled.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#activeBoolean

Specifies whether an intent's closing response is used. When this field is false, the closing response isn't sent to the user. If the active field isn't specified, the default is true.

Returns:

  • (Boolean)


6390
6391
6392
6393
6394
6395
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 6390

class IntentClosingSetting < Struct.new(
  :closing_response,
  :active)
  SENSITIVE = []
  include Aws::Structure
end

#closing_responseTypes::ResponseSpecification

The response that Amazon Lex sends to the user when the intent is complete.



6390
6391
6392
6393
6394
6395
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 6390

class IntentClosingSetting < Struct.new(
  :closing_response,
  :active)
  SENSITIVE = []
  include Aws::Structure
end