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

Description

Submits calculations for execution within a session. You can supply the code to run as an inline code block within the request or as an Amazon S3 URL.

Synopsis

Creating a Request

data StartCalculationExecution Source #

See: newStartCalculationExecution smart constructor.

Constructors

StartCalculationExecution' 

Fields

  • calculationConfiguration :: Maybe CalculationConfiguration

    Contains configuration information for the calculation.

  • clientRequestToken :: Maybe Text

    A unique case-sensitive string used to ensure the request to create the calculation is idempotent (executes only once). If another StartCalculationExecutionRequest is received, the same response is returned and another calculation is not created. If a parameter has changed, an error is returned.

    This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.

  • codeBlock :: Maybe Text

    A string that contains the code of the calculation.

  • description :: Maybe Text

    A description of the calculation.

  • sessionId :: Text

    The session ID.

Instances

Instances details
ToJSON StartCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

ToHeaders StartCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

ToPath StartCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

ToQuery StartCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

AWSRequest StartCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

Generic StartCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

Associated Types

type Rep StartCalculationExecution :: Type -> Type #

Read StartCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

Show StartCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

NFData StartCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

Eq StartCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

Hashable StartCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

type AWSResponse StartCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

type Rep StartCalculationExecution Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

type Rep StartCalculationExecution = D1 ('MetaData "StartCalculationExecution" "Amazonka.Athena.StartCalculationExecution" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "StartCalculationExecution'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "calculationConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CalculationConfiguration)) :*: S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "codeBlock") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sessionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newStartCalculationExecution Source #

Create a value of StartCalculationExecution 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:calculationConfiguration:StartCalculationExecution', startCalculationExecution_calculationConfiguration - Contains configuration information for the calculation.

$sel:clientRequestToken:StartCalculationExecution', startCalculationExecution_clientRequestToken - A unique case-sensitive string used to ensure the request to create the calculation is idempotent (executes only once). If another StartCalculationExecutionRequest is received, the same response is returned and another calculation is not created. If a parameter has changed, an error is returned.

This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.

StartCalculationExecution, startCalculationExecution_codeBlock - A string that contains the code of the calculation.

StartCalculationExecution, startCalculationExecution_description - A description of the calculation.

StartCalculationExecution, startCalculationExecution_sessionId - The session ID.

Request Lenses

startCalculationExecution_clientRequestToken :: Lens' StartCalculationExecution (Maybe Text) Source #

A unique case-sensitive string used to ensure the request to create the calculation is idempotent (executes only once). If another StartCalculationExecutionRequest is received, the same response is returned and another calculation is not created. If a parameter has changed, an error is returned.

This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.

startCalculationExecution_codeBlock :: Lens' StartCalculationExecution (Maybe Text) Source #

A string that contains the code of the calculation.

Destructuring the Response

data StartCalculationExecutionResponse Source #

See: newStartCalculationExecutionResponse smart constructor.

Constructors

StartCalculationExecutionResponse' 

Fields

  • calculationExecutionId :: Maybe Text

    The calculation execution UUID.

  • 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 StartCalculationExecutionResponse Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

Associated Types

type Rep StartCalculationExecutionResponse :: Type -> Type #

Read StartCalculationExecutionResponse Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

Show StartCalculationExecutionResponse Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

NFData StartCalculationExecutionResponse Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

Eq StartCalculationExecutionResponse Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

type Rep StartCalculationExecutionResponse Source # 
Instance details

Defined in Amazonka.Athena.StartCalculationExecution

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

newStartCalculationExecutionResponse Source #

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

StartCalculationExecutionResponse, startCalculationExecutionResponse_calculationExecutionId - The calculation execution UUID.

StartCalculationExecutionResponse, startCalculationExecutionResponse_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:StartCalculationExecutionResponse', startCalculationExecutionResponse_httpStatus - The response's http status code.

Response Lenses

startCalculationExecutionResponse_state :: Lens' StartCalculationExecutionResponse (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.