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 |
Removes session information for a specified bot, alias, and user ID.
Synopsis
- data DeleteSession = DeleteSession' {}
- newDeleteSession :: Text -> Text -> Text -> DeleteSession
- deleteSession_botName :: Lens' DeleteSession Text
- deleteSession_botAlias :: Lens' DeleteSession Text
- deleteSession_userId :: Lens' DeleteSession Text
- data DeleteSessionResponse = DeleteSessionResponse' {}
- newDeleteSessionResponse :: Int -> DeleteSessionResponse
- deleteSessionResponse_botAlias :: Lens' DeleteSessionResponse (Maybe Text)
- deleteSessionResponse_botName :: Lens' DeleteSessionResponse (Maybe Text)
- deleteSessionResponse_sessionId :: Lens' DeleteSessionResponse (Maybe Text)
- deleteSessionResponse_userId :: Lens' DeleteSessionResponse (Maybe Text)
- deleteSessionResponse_httpStatus :: Lens' DeleteSessionResponse Int
Creating a Request
data DeleteSession Source #
See: newDeleteSession
smart constructor.
Instances
Create a value of DeleteSession
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:
DeleteSession
, deleteSession_botName
- The name of the bot that contains the session data.
DeleteSession
, deleteSession_botAlias
- The alias in use for the bot that contains the session data.
DeleteSession
, deleteSession_userId
- The identifier of the user associated with the session data.
Request Lenses
deleteSession_botName :: Lens' DeleteSession Text Source #
The name of the bot that contains the session data.
deleteSession_botAlias :: Lens' DeleteSession Text Source #
The alias in use for the bot that contains the session data.
deleteSession_userId :: Lens' DeleteSession Text Source #
The identifier of the user associated with the session data.
Destructuring the Response
data DeleteSessionResponse Source #
See: newDeleteSessionResponse
smart constructor.
DeleteSessionResponse' | |
|
Instances
newDeleteSessionResponse Source #
Create a value of DeleteSessionResponse
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:
DeleteSession
, deleteSessionResponse_botAlias
- The alias in use for the bot associated with the session data.
DeleteSession
, deleteSessionResponse_botName
- The name of the bot associated with the session data.
$sel:sessionId:DeleteSessionResponse'
, deleteSessionResponse_sessionId
- The unique identifier for the session.
DeleteSession
, deleteSessionResponse_userId
- The ID of the client application user.
$sel:httpStatus:DeleteSessionResponse'
, deleteSessionResponse_httpStatus
- The response's http status code.
Response Lenses
deleteSessionResponse_botAlias :: Lens' DeleteSessionResponse (Maybe Text) Source #
The alias in use for the bot associated with the session data.
deleteSessionResponse_botName :: Lens' DeleteSessionResponse (Maybe Text) Source #
The name of the bot associated with the session data.
deleteSessionResponse_sessionId :: Lens' DeleteSessionResponse (Maybe Text) Source #
The unique identifier for the session.
deleteSessionResponse_userId :: Lens' DeleteSessionResponse (Maybe Text) Source #
The ID of the client application user.
deleteSessionResponse_httpStatus :: Lens' DeleteSessionResponse Int Source #
The response's http status code.