AthenaClient.start_calculation_execution
rboto-athena==0.4.0 · Service index · Types
Model summary (excerpt): Submits calculations for execution within a session. You can supply the code to run as an inline code block within the request. The request syntax requires the StartCalculationExecutionRequest$CodeBlock parameter or the CalculationConfiguration$CodeBlock parameter, but not both. Because CalculationConfiguration$CodeBlock is deprecated, use the StartCalculationExecutionRequest$CodeBlock...
Install and imports
from rboto import AthenaClient
from rboto_athena.types import (
CalculationConfiguration,
StartCalculationExecutionOutput,
)
Signature
async def start_calculation_execution(
*,
session_id: str,
description: str | None = None,
calculation_configuration: CalculationConfiguration | None = None,
code_block: str | None = None,
client_request_token: str | None = None,
) -> StartCalculationExecutionOutput: ...
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. |
description |
No | A description of the calculation. |
calculation_configuration |
No | Contains configuration information for the calculation. |
code_block |
No | A string that contains the code of the calculation. Use this parameter instead of CalculationConfiguration$CodeBlock , which is deprecated. |
client_request_token |
No | 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... |
Output
StartCalculationExecutionOutput.
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 |
|---|---|---|---|
calculation_execution_id |
str | None |
Always present | — |
state |
CalculationExecutionStateOutput | None |
Always present | CalculationExecutionStateOutput |
| 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
CalculationConfiguration, StartCalculationExecutionOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
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.