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 |
Synopsis
- data PromptSpecification = PromptSpecification' {}
- newPromptSpecification :: NonEmpty MessageGroup -> Natural -> PromptSpecification
- promptSpecification_allowInterrupt :: Lens' PromptSpecification (Maybe Bool)
- promptSpecification_messageSelectionStrategy :: Lens' PromptSpecification (Maybe MessageSelectionStrategy)
- promptSpecification_promptAttemptsSpecification :: Lens' PromptSpecification (Maybe (HashMap PromptAttempt PromptAttemptSpecification))
- promptSpecification_messageGroups :: Lens' PromptSpecification (NonEmpty MessageGroup)
- promptSpecification_maxRetries :: Lens' PromptSpecification Natural
Documentation
data PromptSpecification Source #
Specifies a list of message groups that Amazon Lex sends to a user to elicit a response.
See: newPromptSpecification
smart constructor.
PromptSpecification' | |
|
Instances
newPromptSpecification Source #
Create a value of PromptSpecification
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:
PromptSpecification
, promptSpecification_allowInterrupt
- Indicates whether the user can interrupt a speech prompt from the bot.
$sel:messageSelectionStrategy:PromptSpecification'
, promptSpecification_messageSelectionStrategy
- Indicates how a message is selected from a message group among retries.
$sel:promptAttemptsSpecification:PromptSpecification'
, promptSpecification_promptAttemptsSpecification
- Specifies the advanced settings on each attempt of the prompt.
$sel:messageGroups:PromptSpecification'
, promptSpecification_messageGroups
- A collection of messages that Amazon Lex can send to the user. Amazon
Lex chooses the actual message to send at runtime.
$sel:maxRetries:PromptSpecification'
, promptSpecification_maxRetries
- The maximum number of times the bot tries to elicit a response from the
user using this prompt.
promptSpecification_allowInterrupt :: Lens' PromptSpecification (Maybe Bool) Source #
Indicates whether the user can interrupt a speech prompt from the bot.
promptSpecification_messageSelectionStrategy :: Lens' PromptSpecification (Maybe MessageSelectionStrategy) Source #
Indicates how a message is selected from a message group among retries.
promptSpecification_promptAttemptsSpecification :: Lens' PromptSpecification (Maybe (HashMap PromptAttempt PromptAttemptSpecification)) Source #
Specifies the advanced settings on each attempt of the prompt.
promptSpecification_messageGroups :: Lens' PromptSpecification (NonEmpty MessageGroup) Source #
A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.
promptSpecification_maxRetries :: Lens' PromptSpecification Natural Source #
The maximum number of times the bot tries to elicit a response from the user using this prompt.