Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
Describes a button to use on a response card used to gather slot values from a user.
See: newButton
smart constructor.
Instances
FromJSON Button Source # | |
ToJSON Button Source # | |
Defined in Amazonka.LexV2Models.Types.Button | |
Generic Button Source # | |
Read Button Source # | |
Show Button Source # | |
NFData Button Source # | |
Defined in Amazonka.LexV2Models.Types.Button | |
Eq Button Source # | |
Hashable Button Source # | |
Defined in Amazonka.LexV2Models.Types.Button | |
type Rep Button Source # | |
Defined in Amazonka.LexV2Models.Types.Button type Rep Button = D1 ('MetaData "Button" "Amazonka.LexV2Models.Types.Button" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "Button'" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
Create a value of Button
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:text:Button'
, button_text
- The text that appears on the button. Use this to tell the user what
value is returned when they choose this button.
$sel:value:Button'
, button_value
- The value returned to Amazon Lex when the user chooses this button. This
must be one of the slot values configured for the slot.