| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- data ListCalculationExecutions = ListCalculationExecutions' {}
- newListCalculationExecutions :: Text -> ListCalculationExecutions
- listCalculationExecutions_maxResults :: Lens' ListCalculationExecutions (Maybe Natural)
- listCalculationExecutions_nextToken :: Lens' ListCalculationExecutions (Maybe Text)
- listCalculationExecutions_stateFilter :: Lens' ListCalculationExecutions (Maybe CalculationExecutionState)
- listCalculationExecutions_sessionId :: Lens' ListCalculationExecutions Text
- data ListCalculationExecutionsResponse = ListCalculationExecutionsResponse' {}
- newListCalculationExecutionsResponse :: Int -> ListCalculationExecutionsResponse
- listCalculationExecutionsResponse_calculations :: Lens' ListCalculationExecutionsResponse (Maybe [CalculationSummary])
- listCalculationExecutionsResponse_nextToken :: Lens' ListCalculationExecutionsResponse (Maybe Text)
- listCalculationExecutionsResponse_httpStatus :: Lens' ListCalculationExecutionsResponse Int
Creating a Request
data ListCalculationExecutions Source #
See: newListCalculationExecutions smart constructor.
Constructors
| ListCalculationExecutions' | |
Fields
| |
Instances
newListCalculationExecutions Source #
Arguments
| :: Text | |
| -> ListCalculationExecutions |
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.
listCalculationExecutions_sessionId :: Lens' ListCalculationExecutions Text Source #
The session ID.
Destructuring the Response
data ListCalculationExecutionsResponse Source #
See: newListCalculationExecutionsResponse smart constructor.
Constructors
| ListCalculationExecutionsResponse' | |
Fields
| |
Instances
newListCalculationExecutionsResponse Source #
Arguments
| :: Int | |
| -> ListCalculationExecutionsResponse |
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_calculations :: Lens' ListCalculationExecutionsResponse (Maybe [CalculationSummary]) Source #
A list of CalculationSummary objects.
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.
listCalculationExecutionsResponse_httpStatus :: Lens' ListCalculationExecutionsResponse Int Source #
The response's http status code.