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 |
Stops the session.
Synopsis
- data StopSession = StopSession' {
- requestOrigin :: Maybe Text
- id :: Text
- newStopSession :: Text -> StopSession
- stopSession_requestOrigin :: Lens' StopSession (Maybe Text)
- stopSession_id :: Lens' StopSession Text
- data StopSessionResponse = StopSessionResponse' {
- id :: Maybe Text
- httpStatus :: Int
- newStopSessionResponse :: Int -> StopSessionResponse
- stopSessionResponse_id :: Lens' StopSessionResponse (Maybe Text)
- stopSessionResponse_httpStatus :: Lens' StopSessionResponse Int
Creating a Request
data StopSession Source #
See: newStopSession
smart constructor.
StopSession' | |
|
Instances
Create a value of StopSession
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:requestOrigin:StopSession'
, stopSession_requestOrigin
- The origin of the request.
StopSession
, stopSession_id
- The ID of the session to be stopped.
Request Lenses
stopSession_requestOrigin :: Lens' StopSession (Maybe Text) Source #
The origin of the request.
stopSession_id :: Lens' StopSession Text Source #
The ID of the session to be stopped.
Destructuring the Response
data StopSessionResponse Source #
See: newStopSessionResponse
smart constructor.
StopSessionResponse' | |
|
Instances
newStopSessionResponse Source #
Create a value of StopSessionResponse
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:
StopSession
, stopSessionResponse_id
- Returns the Id of the stopped session.
$sel:httpStatus:StopSessionResponse'
, stopSessionResponse_httpStatus
- The response's http status code.
Response Lenses
stopSessionResponse_id :: Lens' StopSessionResponse (Maybe Text) Source #
Returns the Id of the stopped session.
stopSessionResponse_httpStatus :: Lens' StopSessionResponse Int Source #
The response's http status code.