start_calculation_execution
async
¶
start_calculation_execution(
session_id: SessionId,
*,
config_overrides: Optional[AsyncAthenaClientConfig] = None,
description: Optional[DescriptionString] = None,
calculation_configuration: Optional[CalculationConfiguration] = None,
code_block: Optional[CodeBlock] = None,
client_request_token: Optional[IdempotencyToken] = None,
) -> StartCalculationExecutionResponse
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 parameter instead.
Parameters:
-
session_id(SessionId) –The session ID.
-
description(Optional[DescriptionString], default:None) –A description of the calculation.
-
calculation_configuration(Optional[CalculationConfiguration], default:None) –Contains configuration information for the calculation.
-
code_block(Optional[CodeBlock], default:None) –A string that contains the code of the calculation. Use this parameter instead of CalculationConfiguration$CodeBlock, which is deprecated.
-
client_request_token(Optional[IdempotencyToken], default:None) –A unique case-sensitive string used to ensure the request to create the calculation is idempotent (executes only once). If another
StartCalculationExecutionRequestis 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 Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
Raises:
-
InternalServerException–Indicates a platform issue, which may be due to a transient condition or outage.
-
InvalidRequestException–Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.
-
ResourceNotFoundException–A resource, such as a workgroup, was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_athena/_services/async_athena.py
4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 | |