Class: Aws::LexRuntimeV2::Types::Button

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

{
  text: "ButtonText", # required
  value: "ButtonValue", # required
}

A button that appears on a response card show to the user.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#textString

The text that is displayed on the button.

Returns:

  • (String)


221
222
223
224
225
226
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 221

class Button < Struct.new(
  :text,
  :value)
  SENSITIVE = []
  include Aws::Structure
end

#valueString

The value returned to Amazon Lex V2 when a user chooses the button.

Returns:

  • (String)


221
222
223
224
225
226
# File 'gems/aws-sdk-lexruntimev2/lib/aws-sdk-lexruntimev2/types.rb', line 221

class Button < Struct.new(
  :text,
  :value)
  SENSITIVE = []
  include Aws::Structure
end