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 |
Deletes stored utterances.
Amazon Lex stores the utterances that users send to your bot. Utterances are stored for 15 days for use with the ListAggregatedUtterances 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 utterances for a
specific session. 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
ListAggregatedUtterances
operation are deleted after 15 days.
Synopsis
- data DeleteUtterances = DeleteUtterances' {}
- newDeleteUtterances :: Text -> DeleteUtterances
- deleteUtterances_localeId :: Lens' DeleteUtterances (Maybe Text)
- deleteUtterances_sessionId :: Lens' DeleteUtterances (Maybe Text)
- deleteUtterances_botId :: Lens' DeleteUtterances Text
- data DeleteUtterancesResponse = DeleteUtterancesResponse' {
- httpStatus :: Int
- newDeleteUtterancesResponse :: Int -> DeleteUtterancesResponse
- deleteUtterancesResponse_httpStatus :: Lens' DeleteUtterancesResponse Int
Creating a Request
data DeleteUtterances Source #
See: newDeleteUtterances
smart constructor.
DeleteUtterances' | |
|
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:
DeleteUtterances
, deleteUtterances_localeId
- The identifier of the language and locale where the utterances were
collected. The string must match one of the supported locales. For more
information, see
Supported languages.
$sel:sessionId:DeleteUtterances'
, deleteUtterances_sessionId
- The unique identifier of the session with the user. The ID is returned
in the response from the
RecognizeText
and
RecognizeUtterance
operations.
DeleteUtterances
, deleteUtterances_botId
- The unique identifier of the bot that contains the utterances.
Request Lenses
deleteUtterances_localeId :: Lens' DeleteUtterances (Maybe Text) Source #
The identifier of the language and locale where the utterances were collected. The string must match one of the supported locales. For more information, see Supported languages.
deleteUtterances_sessionId :: Lens' DeleteUtterances (Maybe Text) Source #
The unique identifier of the session with the user. The ID is returned in the response from the RecognizeText and RecognizeUtterance operations.
deleteUtterances_botId :: Lens' DeleteUtterances Text Source #
The unique identifier of the bot that contains the utterances.
Destructuring the Response
data DeleteUtterancesResponse Source #
See: newDeleteUtterancesResponse
smart constructor.
DeleteUtterancesResponse' | |
|
Instances
newDeleteUtterancesResponse Source #
Create a value of DeleteUtterancesResponse
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:httpStatus:DeleteUtterancesResponse'
, deleteUtterancesResponse_httpStatus
- The response's http status code.
Response Lenses
deleteUtterancesResponse_httpStatus :: Lens' DeleteUtterancesResponse Int Source #
The response's http status code.