libZSservicesZSamazonka-athenaZSamazonka-athena
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Athena.Types.QueryExecutionStatus

Description

 
Synopsis

Documentation

data QueryExecutionStatus Source #

The completion date, current state, submission time, and state change reason (if applicable) for the query execution.

See: newQueryExecutionStatus smart constructor.

Constructors

QueryExecutionStatus' 

Fields

  • state :: Maybe QueryExecutionState

    The state of query execution. QUEUED indicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available. RUNNING indicates that the query is in execution phase. SUCCEEDED indicates that the query completed without errors. FAILED indicates that the query experienced an error and did not complete processing. CANCELLED indicates that a user input interrupted query execution.

    Athena automatically retries your queries in cases of certain transient errors. As a result, you may see the query state transition from RUNNING or FAILED to QUEUED.

  • stateChangeReason :: Maybe Text

    Further detail about the status of the query.

  • submissionDateTime :: Maybe POSIX

    The date and time that the query was submitted.

  • completionDateTime :: Maybe POSIX

    The date and time that the query completed.

Instances

Instances details
Eq QueryExecutionStatus Source # 
Instance details

Defined in Amazonka.Athena.Types.QueryExecutionStatus

Read QueryExecutionStatus Source # 
Instance details

Defined in Amazonka.Athena.Types.QueryExecutionStatus

Show QueryExecutionStatus Source # 
Instance details

Defined in Amazonka.Athena.Types.QueryExecutionStatus

Generic QueryExecutionStatus Source # 
Instance details

Defined in Amazonka.Athena.Types.QueryExecutionStatus

Associated Types

type Rep QueryExecutionStatus :: Type -> Type #

NFData QueryExecutionStatus Source # 
Instance details

Defined in Amazonka.Athena.Types.QueryExecutionStatus

Methods

rnf :: QueryExecutionStatus -> () #

Hashable QueryExecutionStatus Source # 
Instance details

Defined in Amazonka.Athena.Types.QueryExecutionStatus

FromJSON QueryExecutionStatus Source # 
Instance details

Defined in Amazonka.Athena.Types.QueryExecutionStatus

type Rep QueryExecutionStatus Source # 
Instance details

Defined in Amazonka.Athena.Types.QueryExecutionStatus

type Rep QueryExecutionStatus = D1 ('MetaData "QueryExecutionStatus" "Amazonka.Athena.Types.QueryExecutionStatus" "libZSservicesZSamazonka-athenaZSamazonka-athena" 'False) (C1 ('MetaCons "QueryExecutionStatus'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe QueryExecutionState)) :*: S1 ('MetaSel ('Just "stateChangeReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "submissionDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "completionDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))))

newQueryExecutionStatus :: QueryExecutionStatus Source #

Create a value of QueryExecutionStatus 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:state:QueryExecutionStatus', queryExecutionStatus_state - The state of query execution. QUEUED indicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available. RUNNING indicates that the query is in execution phase. SUCCEEDED indicates that the query completed without errors. FAILED indicates that the query experienced an error and did not complete processing. CANCELLED indicates that a user input interrupted query execution.

Athena automatically retries your queries in cases of certain transient errors. As a result, you may see the query state transition from RUNNING or FAILED to QUEUED.

$sel:stateChangeReason:QueryExecutionStatus', queryExecutionStatus_stateChangeReason - Further detail about the status of the query.

$sel:submissionDateTime:QueryExecutionStatus', queryExecutionStatus_submissionDateTime - The date and time that the query was submitted.

$sel:completionDateTime:QueryExecutionStatus', queryExecutionStatus_completionDateTime - The date and time that the query completed.

queryExecutionStatus_state :: Lens' QueryExecutionStatus (Maybe QueryExecutionState) Source #

The state of query execution. QUEUED indicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available. RUNNING indicates that the query is in execution phase. SUCCEEDED indicates that the query completed without errors. FAILED indicates that the query experienced an error and did not complete processing. CANCELLED indicates that a user input interrupted query execution.

Athena automatically retries your queries in cases of certain transient errors. As a result, you may see the query state transition from RUNNING or FAILED to QUEUED.

queryExecutionStatus_stateChangeReason :: Lens' QueryExecutionStatus (Maybe Text) Source #

Further detail about the status of the query.

queryExecutionStatus_submissionDateTime :: Lens' QueryExecutionStatus (Maybe UTCTime) Source #

The date and time that the query was submitted.