DynamoDBClient.execute_transaction
rboto-dynamodb==0.4.0 · Service index · Types
Model summary (excerpt): This operation allows you to perform transactional reads or writes on data stored in DynamoDB, using PartiQL. The entire transaction must consist of either read statements or write statements, you cannot mix both in one transaction. The EXISTS function is an exception and can be used to check the condition of specific attributes of the item in a similar manner to ConditionCheck in the...
Install and imports
from rboto import DynamoDBClient
from collections.abc import Sequence
from rboto_dynamodb.types import (
ExecuteTransactionOutput,
ParameterizedStatement,
ReturnConsumedCapacity,
)
Signature
async def execute_transaction(
*,
transact_statements: Sequence[ParameterizedStatement],
client_request_token: str | None = None,
return_consumed_capacity: ReturnConsumedCapacity | None = None,
) -> ExecuteTransactionOutput: ...
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) |
|---|---|---|
transact_statements |
Yes | The list of PartiQL statements representing the transaction to run. |
client_request_token |
No | Set this value to get remaining results, if NextToken was returned in the statement response. |
return_consumed_capacity |
No | Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response. For more information, see TransactGetItems and TransactWriteItems . |
Output
ExecuteTransactionOutput.
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 |
|---|---|---|---|
responses |
list[ItemResponseOutput] | None |
Always present | ItemResponseOutput |
consumed_capacity |
list[ConsumedCapacityOutput] | None |
Always present | ConsumedCapacityOutput |
| 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
ExecuteTransactionOutput, ParameterizedStatement, ReturnConsumedCapacity
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_dynamodb.exceptions:
IdempotentParameterMismatchError, InternalServerError, ProvisionedThroughputExceededError, RequestLimitExceededError, ResourceNotFoundError, ThrottlingError, TransactionCanceledError, TransactionInProgressError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.