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 |
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.
Instances
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:
$sel:botName: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.
Instances
Eq DeleteUtterancesResponse Source # | |
Defined in Amazonka.LexModels.DeleteUtterances | |
Read DeleteUtterancesResponse Source # | |
Show DeleteUtterancesResponse Source # | |
Defined in Amazonka.LexModels.DeleteUtterances showsPrec :: Int -> DeleteUtterancesResponse -> ShowS # show :: DeleteUtterancesResponse -> String # showList :: [DeleteUtterancesResponse] -> ShowS # | |
Generic DeleteUtterancesResponse Source # | |
Defined in Amazonka.LexModels.DeleteUtterances type Rep DeleteUtterancesResponse :: Type -> Type # | |
NFData DeleteUtterancesResponse Source # | |
Defined in Amazonka.LexModels.DeleteUtterances rnf :: DeleteUtterancesResponse -> () # | |
type Rep DeleteUtterancesResponse Source # | |
Defined in Amazonka.LexModels.DeleteUtterances |
newDeleteUtterancesResponse :: DeleteUtterancesResponse Source #
Create a value of DeleteUtterancesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.