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.StopCalculationExecution

Description

Requests the cancellation of a calculation. A StopCalculationExecution call on a calculation that is already in a terminal state (for example, STOPPED, FAILED, or COMPLETED) succeeds but has no effect.

Cancelling a calculation is done on a best effort basis. If a calculation cannot be cancelled, you can be charged for its completion. If you are concerned about being charged for a calculation that cannot be cancelled, consider terminating the session in which the calculation is running.

Synopsis

Creating a Request

data StopCalculationExecution Source #

See: newStopCalculationExecution smart constructor.

Constructors

StopCalculationExecution' 

Fields

Instances

Instances details
ToJSON StopCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

ToHeaders StopCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

ToPath StopCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

ToQuery StopCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

AWSRequest StopCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

Generic StopCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

Associated Types

type Rep StopCalculationExecution :: Type -> Type #

Read StopCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

Show StopCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

NFData StopCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

Eq StopCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

Hashable StopCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

type AWSResponse StopCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

type Rep StopCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

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

newStopCalculationExecution Source #

Create a value of StopCalculationExecution 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:

StopCalculationExecution, stopCalculationExecution_calculationExecutionId - The calculation execution UUID.

Request Lenses

Destructuring the Response

data StopCalculationExecutionResponse Source #

See: newStopCalculationExecutionResponse smart constructor.

Constructors

StopCalculationExecutionResponse' 

Fields

  • state :: Maybe CalculationExecutionState

    CREATING - The calculation is in the process of being created.

    CREATED - The calculation has been created and is ready to run.

    QUEUED - The calculation has been queued for processing.

    RUNNING - The calculation is running.

    CANCELING - A request to cancel the calculation has been received and the system is working to stop it.

    CANCELED - The calculation is no longer running as the result of a cancel request.

    COMPLETED - The calculation has completed without error.

    FAILED - The calculation failed and is no longer running.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic StopCalculationExecutionResponse Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

Associated Types

type Rep StopCalculationExecutionResponse :: Type -> Type #

Read StopCalculationExecutionResponse Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

Show StopCalculationExecutionResponse Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

NFData StopCalculationExecutionResponse Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

Eq StopCalculationExecutionResponse Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

type Rep StopCalculationExecutionResponse Source # 
Instance details

Defined in Amazonka.Athena.StopCalculationExecution

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

newStopCalculationExecutionResponse Source #

Create a value of StopCalculationExecutionResponse 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:

StopCalculationExecutionResponse, stopCalculationExecutionResponse_state - CREATING - The calculation is in the process of being created.

CREATED - The calculation has been created and is ready to run.

QUEUED - The calculation has been queued for processing.

RUNNING - The calculation is running.

CANCELING - A request to cancel the calculation has been received and the system is working to stop it.

CANCELED - The calculation is no longer running as the result of a cancel request.

COMPLETED - The calculation has completed without error.

FAILED - The calculation failed and is no longer running.

$sel:httpStatus:StopCalculationExecutionResponse', stopCalculationExecutionResponse_httpStatus - The response's http status code.

Response Lenses

stopCalculationExecutionResponse_state :: Lens' StopCalculationExecutionResponse (Maybe CalculationExecutionState) Source #

CREATING - The calculation is in the process of being created.

CREATED - The calculation has been created and is ready to run.

QUEUED - The calculation has been queued for processing.

RUNNING - The calculation is running.

CANCELING - A request to cancel the calculation has been received and the system is working to stop it.

CANCELED - The calculation is no longer running as the result of a cancel request.

COMPLETED - The calculation has completed without error.

FAILED - The calculation failed and is no longer running.