| 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 | 
Amazonka.LexModels.Types.Prompt
Description
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.
Constructors
| Prompt' | |
Fields 
  | |
Instances
| FromJSON Prompt Source # | |
| ToJSON Prompt Source # | |
Defined in Amazonka.LexModels.Types.Prompt  | |
| Generic Prompt Source # | |
| Read Prompt Source # | |
| Show Prompt Source # | |
| NFData Prompt Source # | |
Defined in Amazonka.LexModels.Types.Prompt  | |
| Eq Prompt Source # | |
| Hashable Prompt Source # | |
Defined in Amazonka.LexModels.Types.Prompt  | |
| type Rep Prompt Source # | |
Defined in Amazonka.LexModels.Types.Prompt type Rep Prompt = D1 ('MetaData "Prompt" "Amazonka.LexModels.Types.Prompt" "amazonka-lex-models-2.0-8Q1WIjnrCCIAMPuyNOCiG7" '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.