Class: Aws::LexModelsV2::Types::Button

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

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

Describes a button to use on a response card used to gather slot values from a user.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#textString

The text that appears on the button. Use this to tell the user what value is returned when they choose this button.

Returns:

  • (String)


908
909
910
911
912
913
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 908

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

#valueString

The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values configured for the slot.

Returns:

  • (String)


908
909
910
911
912
913
# File 'gems/aws-sdk-lexmodelsv2/lib/aws-sdk-lexmodelsv2/types.rb', line 908

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