You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Lex::Types::ResponseCard

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

Overview

If you configure a response card when creating your bots, Amazon Lex substitutes the session attributes and slot values that are available, and then returns it. The response card can also come from a Lambda function ( dialogCodeHook and fulfillmentActivity on an intent).

Instance Attribute Summary collapse

Instance Attribute Details

#content_typeString

The content type of the response.

Returns:

  • (String)


594
595
596
597
598
599
# File 'gems/aws-sdk-lex/lib/aws-sdk-lex/types.rb', line 594

class ResponseCard < Struct.new(
  :version,
  :content_type,
  :generic_attachments)
  include Aws::Structure
end

#generic_attachmentsArray<Types::GenericAttachment>

An array of attachment objects representing options.

Returns:



594
595
596
597
598
599
# File 'gems/aws-sdk-lex/lib/aws-sdk-lex/types.rb', line 594

class ResponseCard < Struct.new(
  :version,
  :content_type,
  :generic_attachments)
  include Aws::Structure
end

#versionString

The version of the response card format.

Returns:

  • (String)


594
595
596
597
598
599
# File 'gems/aws-sdk-lex/lib/aws-sdk-lex/types.rb', line 594

class ResponseCard < Struct.new(
  :version,
  :content_type,
  :generic_attachments)
  include Aws::Structure
end