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 |
Terminates an active session. A TerminateSession
call on a session
that is already inactive (for example, in a FAILED
, TERMINATED
or
TERMINATING
state) succeeds but has no effect. Calculations running in
the session when TerminateSession
is called are forcefully stopped,
but may display as FAILED
instead of STOPPED
.
Synopsis
- data TerminateSession = TerminateSession' {}
- newTerminateSession :: Text -> TerminateSession
- terminateSession_sessionId :: Lens' TerminateSession Text
- data TerminateSessionResponse = TerminateSessionResponse' {
- state :: Maybe SessionState
- httpStatus :: Int
- newTerminateSessionResponse :: Int -> TerminateSessionResponse
- terminateSessionResponse_state :: Lens' TerminateSessionResponse (Maybe SessionState)
- terminateSessionResponse_httpStatus :: Lens' TerminateSessionResponse Int
Creating a Request
data TerminateSession Source #
See: newTerminateSession
smart constructor.
Instances
Create a value of TerminateSession
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:
TerminateSession
, terminateSession_sessionId
- The session ID.
Request Lenses
terminateSession_sessionId :: Lens' TerminateSession Text Source #
The session ID.
Destructuring the Response
data TerminateSessionResponse Source #
See: newTerminateSessionResponse
smart constructor.
TerminateSessionResponse' | |
|
Instances
newTerminateSessionResponse Source #
Create a value of TerminateSessionResponse
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:
TerminateSessionResponse
, terminateSessionResponse_state
- The state of the session. A description of each state follows.
CREATING
- The session is being started, including acquiring
resources.
CREATED
- The session has been started.
IDLE
- The session is able to accept a calculation.
BUSY
- The session is processing another task and is unable to accept
a calculation.
TERMINATING
- The session is in the process of shutting down.
TERMINATED
- The session and its resources are no longer running.
DEGRADED
- The session has no healthy coordinators.
FAILED
- Due to a failure, the session and its resources are no longer
running.
$sel:httpStatus:TerminateSessionResponse'
, terminateSessionResponse_httpStatus
- The response's http status code.
Response Lenses
terminateSessionResponse_state :: Lens' TerminateSessionResponse (Maybe SessionState) Source #
The state of the session. A description of each state follows.
CREATING
- The session is being started, including acquiring
resources.
CREATED
- The session has been started.
IDLE
- The session is able to accept a calculation.
BUSY
- The session is processing another task and is unable to accept
a calculation.
TERMINATING
- The session is in the process of shutting down.
TERMINATED
- The session and its resources are no longer running.
DEGRADED
- The session has no healthy coordinators.
FAILED
- Due to a failure, the session and its resources are no longer
running.
terminateSessionResponse_httpStatus :: Lens' TerminateSessionResponse Int Source #
The response's http status code.