| 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.DeleteUtterances
Description
Deletes stored utterances.
Amazon Lex stores the utterances that users send to your bot. Utterances are stored for 15 days for use with the GetUtterancesView operation, and then stored indefinitely for use in improving the ability of your bot to respond to user input.
Use the DeleteUtterances operation to manually delete stored
 utterances for a specific user. When you use the DeleteUtterances
 operation, utterances stored for improving your bot's ability to
 respond to user input are deleted immediately. Utterances stored for use
 with the GetUtterancesView operation are deleted after 15 days.
This operation requires permissions for the lex:DeleteUtterances
 action.
Synopsis
- data DeleteUtterances = DeleteUtterances' {}
 - newDeleteUtterances :: Text -> Text -> DeleteUtterances
 - deleteUtterances_botName :: Lens' DeleteUtterances Text
 - deleteUtterances_userId :: Lens' DeleteUtterances Text
 - data DeleteUtterancesResponse = DeleteUtterancesResponse' {
 - newDeleteUtterancesResponse :: DeleteUtterancesResponse
 
Creating a Request
data DeleteUtterances Source #
See: newDeleteUtterances smart constructor.
Constructors
| DeleteUtterances' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> DeleteUtterances | 
Create a value of DeleteUtterances 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:
DeleteUtterances, deleteUtterances_botName - The name of the bot that stored the utterances.
$sel:userId:DeleteUtterances', deleteUtterances_userId - The unique identifier for the user that made the utterances. This is the
 user ID that was sent in the
 PostContent
 or
 PostText
 operation request that contained the utterance.
Request Lenses
deleteUtterances_botName :: Lens' DeleteUtterances Text Source #
The name of the bot that stored the utterances.
deleteUtterances_userId :: Lens' DeleteUtterances Text Source #
The unique identifier for the user that made the utterances. This is the user ID that was sent in the PostContent or PostText operation request that contained the utterance.
Destructuring the Response
data DeleteUtterancesResponse Source #
See: newDeleteUtterancesResponse smart constructor.
Constructors
| DeleteUtterancesResponse' | |
Instances
newDeleteUtterancesResponse :: DeleteUtterancesResponse Source #
Create a value of DeleteUtterancesResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.