amazonka-lex-models-2.0: Amazon Lex Model Building Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.LexModels.Types.Prompt

Description

 
Synopsis

Documentation

data Prompt Source #

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

  • responseCard :: Maybe Text

    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.

  • messages :: NonEmpty Message

    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).

  • maxAttempts :: Natural

    The number of times to prompt the user for information.

Instances

Instances details
FromJSON Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

ToJSON Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

Generic Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

Associated Types

type Rep Prompt :: Type -> Type #

Methods

from :: Prompt -> Rep Prompt x #

to :: Rep Prompt x -> Prompt #

Read Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

Show Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

NFData Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

Methods

rnf :: Prompt -> () #

Eq Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

Methods

(==) :: Prompt -> Prompt -> Bool #

(/=) :: Prompt -> Prompt -> Bool #

Hashable Prompt Source # 
Instance details

Defined in Amazonka.LexModels.Types.Prompt

Methods

hashWithSalt :: Int -> Prompt -> Int #

hash :: Prompt -> Int #

type Rep Prompt Source # 
Instance details

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))))

newPrompt Source #

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.

prompt_messages :: Lens' Prompt (NonEmpty Message) Source #

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).

prompt_maxAttempts :: Lens' Prompt Natural Source #

The number of times to prompt the user for information.