AthenaClient.list_calculation_executions
rboto-athena==0.4.0 · Service index · Types
Model summary (excerpt): Lists the calculations that have been submitted to a session in descending order. Newer calculations are listed first; older calculations are listed later.
Install and imports
from rboto import AthenaClient
from rboto_athena.types import (
CalculationExecutionState,
ListCalculationExecutionsOutput,
)
Signature
async def list_calculation_executions(
*,
session_id: str,
state_filter: CalculationExecutionState | None = None,
max_results: int | None = None,
next_token: str | None = None,
) -> ListCalculationExecutionsOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
session_id |
Yes | The session ID. |
state_filter |
No | 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... |
max_results |
No | The maximum number of calculation executions to return. |
next_token |
No | 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. |
Output
ListCalculationExecutionsOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
next_token |
str | None |
Always present | — |
calculations |
list[CalculationSummaryOutput] | None |
Always present | CalculationSummaryOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
CalculationExecutionState, ListCalculationExecutionsOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_calculation_executions(...) accepts the same arguments and returns AsyncIterator[ListCalculationExecutionsOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_results.
No output stream.
Errors
Import from rboto_athena.exceptions:
InternalServerError, InvalidRequestError, ResourceNotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.