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
Obtains information from the user. To define a prompt, provide one or more messages and specify the number of attempts to get information from the user. If you provide more than one message, Amazon Lex chooses one of the messages to use to prompt the user. For more information, see how-it-works.
See: newPrompt
smart constructor.
Prompt' | |
|
Instances
Eq Prompt Source # | |
Read Prompt Source # | |
Show Prompt Source # | |
Generic Prompt Source # | |
NFData Prompt Source # | |
Defined in Amazonka.LexModels.Types.Prompt | |
Hashable Prompt Source # | |
Defined in Amazonka.LexModels.Types.Prompt | |
ToJSON Prompt Source # | |
Defined in Amazonka.LexModels.Types.Prompt | |
FromJSON Prompt Source # | |
type Rep Prompt Source # | |
Defined in Amazonka.LexModels.Types.Prompt type Rep Prompt = D1 ('MetaData "Prompt" "Amazonka.LexModels.Types.Prompt" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "Prompt'" 'PrefixI 'True) (S1 ('MetaSel ('Just "responseCard") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Message)) :*: S1 ('MetaSel ('Just "maxAttempts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))) |
Create a value of Prompt
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:responseCard:Prompt'
, prompt_responseCard
- A response card. Amazon Lex uses this prompt at runtime, in the
PostText
API response. It substitutes session attributes and slot
values for placeholders in the response card. For more information, see
ex-resp-card.
$sel:messages:Prompt'
, prompt_messages
- An array of objects, each of which provides a message string and its
type. You can specify the message string in plain text or in Speech
Synthesis Markup Language (SSML).
$sel:maxAttempts:Prompt'
, prompt_maxAttempts
- The number of times to prompt the user for information.
prompt_responseCard :: Lens' Prompt (Maybe Text) Source #
A response card. Amazon Lex uses this prompt at runtime, in the
PostText
API response. It substitutes session attributes and slot
values for placeholders in the response card. For more information, see
ex-resp-card.