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
3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 | |