amazonka-athena-2.0: Amazon Athena SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Athena.TerminateSession

Description

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

Creating a Request

data TerminateSession Source #

See: newTerminateSession smart constructor.

Constructors

TerminateSession' 

Fields

Instances

Instances details
ToJSON TerminateSession Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

ToHeaders TerminateSession Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

ToPath TerminateSession Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

ToQuery TerminateSession Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

AWSRequest TerminateSession Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

Associated Types

type AWSResponse TerminateSession #

Generic TerminateSession Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

Associated Types

type Rep TerminateSession :: Type -> Type #

Read TerminateSession Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

Show TerminateSession Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

NFData TerminateSession Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

Methods

rnf :: TerminateSession -> () #

Eq TerminateSession Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

Hashable TerminateSession Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

type AWSResponse TerminateSession Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

type Rep TerminateSession Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

type Rep TerminateSession = D1 ('MetaData "TerminateSession" "Amazonka.Athena.TerminateSession" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "TerminateSession'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sessionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newTerminateSession Source #

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

Destructuring the Response

data TerminateSessionResponse Source #

See: newTerminateSessionResponse smart constructor.

Constructors

TerminateSessionResponse' 

Fields

  • state :: Maybe SessionState

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic TerminateSessionResponse Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

Associated Types

type Rep TerminateSessionResponse :: Type -> Type #

Read TerminateSessionResponse Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

Show TerminateSessionResponse Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

NFData TerminateSessionResponse Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

Eq TerminateSessionResponse Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

type Rep TerminateSessionResponse Source # 
Instance details

Defined in Amazonka.Athena.TerminateSession

type Rep TerminateSessionResponse = D1 ('MetaData "TerminateSessionResponse" "Amazonka.Athena.TerminateSession" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "TerminateSessionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SessionState)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.