Indicates to the service that the specified transaction is still active and should not be treated as idle and aborted.
Write transactions that remain idle for a long period are automatically aborted unless explicitly extended.
Parameters:
Raises:
Source code in docs_src/capo_lakeformation/_services/async_lake_formation.py
| async def extend_transaction(
self,
*,
config_overrides: Optional[AsyncLakeFormationClientConfig] = None,
transaction_id: Optional[
"capo_lakeformation.types.transaction_id_string.TransactionIdString"
] = None,
) -> (
"capo_lakeformation.types.extend_transaction_response.ExtendTransactionResponse"
):
"""<p>Indicates to the service that the specified transaction is still active and should not be treated as idle and aborted.</p> <p>Write transactions that remain idle for a long period are automatically aborted unless explicitly extended.</p>
Args:
transaction_id: <p>The transaction to extend.</p>
Raises:
capo_lakeformation.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist.</p>
capo_lakeformation.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
capo_lakeformation.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
capo_lakeformation.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
capo_lakeformation.errors.transaction_canceled_exception.TransactionCanceledException: <p>Contains details about an error related to a transaction that was cancelled.</p>
capo_lakeformation.errors.transaction_commit_in_progress_exception.TransactionCommitInProgressException: <p>Contains details about an error related to a transaction commit that was in progress.</p>
capo_lakeformation.errors.transaction_committed_exception.TransactionCommittedException: <p>Contains details about an error where the specified transaction has already been committed and cannot be used for <code>UpdateTableObjects</code>.</p>
capo_lakeformation.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_lakeformation.types.extend_transaction_request.ExtendTransactionRequest]",
) -> AsyncOperationResponse[
"capo_lakeformation.types.extend_transaction_response.ExtendTransactionResponse"
]:
import capo_lakeformation._operations.aws_lake_formation.extend_transaction
(
output,
http_response,
) = await capo_lakeformation._operations.aws_lake_formation.extend_transaction.async_extend_transaction(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ExtendTransaction")
)
input_: capo_lakeformation.types.extend_transaction_request.ExtendTransactionRequest = {}
if transaction_id is not None:
input_["transaction_id"] = transaction_id
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|