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

Description

Lists the calculations that have been submitted to a session in descending order. Newer calculations are listed first; older calculations are listed later.

Synopsis

Creating a Request

data ListCalculationExecutions Source #

See: newListCalculationExecutions smart constructor.

Constructors

ListCalculationExecutions' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of calculation executions to return.

  • nextToken :: Maybe Text

    A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

  • stateFilter :: Maybe CalculationExecutionState

    A filter for a specific calculation execution state. A description of each state follows.

    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.

  • sessionId :: Text

    The session ID.

Instances

Instances details
ToJSON ListCalculationExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

ToHeaders ListCalculationExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

ToPath ListCalculationExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

ToQuery ListCalculationExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

AWSRequest ListCalculationExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

Generic ListCalculationExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

Associated Types

type Rep ListCalculationExecutions :: Type -> Type #

Read ListCalculationExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

Show ListCalculationExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

NFData ListCalculationExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

Eq ListCalculationExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

Hashable ListCalculationExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

type AWSResponse ListCalculationExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

type Rep ListCalculationExecutions Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

type Rep ListCalculationExecutions = D1 ('MetaData "ListCalculationExecutions" "Amazonka.Athena.ListCalculationExecutions" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "ListCalculationExecutions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "stateFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CalculationExecutionState)) :*: S1 ('MetaSel ('Just "sessionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListCalculationExecutions Source #

Create a value of ListCalculationExecutions 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:maxResults:ListCalculationExecutions', listCalculationExecutions_maxResults - The maximum number of calculation executions to return.

ListCalculationExecutions, listCalculationExecutions_nextToken - A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

$sel:stateFilter:ListCalculationExecutions', listCalculationExecutions_stateFilter - A filter for a specific calculation execution state. A description of each state follows.

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.

ListCalculationExecutions, listCalculationExecutions_sessionId - The session ID.

Request Lenses

listCalculationExecutions_maxResults :: Lens' ListCalculationExecutions (Maybe Natural) Source #

The maximum number of calculation executions to return.

listCalculationExecutions_nextToken :: Lens' ListCalculationExecutions (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

listCalculationExecutions_stateFilter :: Lens' ListCalculationExecutions (Maybe CalculationExecutionState) Source #

A filter for a specific calculation execution state. A description of each state follows.

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.

Destructuring the Response

data ListCalculationExecutionsResponse Source #

See: newListCalculationExecutionsResponse smart constructor.

Constructors

ListCalculationExecutionsResponse' 

Fields

  • calculations :: Maybe [CalculationSummary]

    A list of CalculationSummary objects.

  • nextToken :: Maybe Text

    A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListCalculationExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

Associated Types

type Rep ListCalculationExecutionsResponse :: Type -> Type #

Read ListCalculationExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

Show ListCalculationExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

NFData ListCalculationExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

Eq ListCalculationExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

type Rep ListCalculationExecutionsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListCalculationExecutions

type Rep ListCalculationExecutionsResponse = D1 ('MetaData "ListCalculationExecutionsResponse" "Amazonka.Athena.ListCalculationExecutions" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "ListCalculationExecutionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "calculations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CalculationSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListCalculationExecutionsResponse Source #

Create a value of ListCalculationExecutionsResponse 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:calculations:ListCalculationExecutionsResponse', listCalculationExecutionsResponse_calculations - A list of CalculationSummary objects.

ListCalculationExecutions, listCalculationExecutionsResponse_nextToken - A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

$sel:httpStatus:ListCalculationExecutionsResponse', listCalculationExecutionsResponse_httpStatus - The response's http status code.

Response Lenses

listCalculationExecutionsResponse_nextToken :: Lens' ListCalculationExecutionsResponse (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.