Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
Represents an option to be shown on the client platform (Facebook, Slack, etc.)
See: newButton
smart constructor.
Instances
Eq Button Source # | |
Read Button Source # | |
Show Button Source # | |
Generic Button Source # | |
NFData Button Source # | |
Defined in Amazonka.LexRuntime.Types.Button | |
Hashable Button Source # | |
Defined in Amazonka.LexRuntime.Types.Button | |
FromJSON Button Source # | |
type Rep Button Source # | |
Defined in Amazonka.LexRuntime.Types.Button type Rep Button = D1 ('MetaData "Button" "Amazonka.LexRuntime.Types.Button" "libZSservicesZSamazonka-lex-runtimeZSamazonka-lex-runtime" '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
- Text that is visible to the user on the button.
$sel:value:Button'
, button_value
- The value sent to Amazon Lex when a user chooses the button. For
example, consider button text "NYC." When the user chooses the button,
the value sent can be "New York City."