Skip to content

DynamoDBClient.batch_execute_statement

rboto-dynamodb==0.4.0 · Service index · Types

Model summary (excerpt): This operation allows you to perform batch reads or writes on data stored in DynamoDB, using PartiQL. Each read statement in a BatchExecuteStatement must specify an equality condition on all key attributes. This enforces that each SELECT statement in a batch returns at most a single item. For more information, see Running batch operations with PartiQL for DynamoDB . The entire batch must...

Install and imports

python -m pip install "rboto[dynamodb]==0.4.0"
from rboto import DynamoDBClient
from collections.abc import Sequence
from rboto_dynamodb.types import (
    BatchExecuteStatementOutput,
    BatchStatementRequest,
    ReturnConsumedCapacity,
)

Signature

async def batch_execute_statement(
    *,
    statements: Sequence[BatchStatementRequest],
    return_consumed_capacity: ReturnConsumedCapacity | None = None,
) -> BatchExecuteStatementOutput: ...

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)
statements Yes The list of PartiQL statements representing the batch to run.
return_consumed_capacity No

Output

BatchExecuteStatementOutput.

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[BatchStatementResponseOutput] | None Always present BatchStatementResponseOutput
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.

BatchExecuteStatementOutput, BatchStatementRequest, 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:

InternalServerError, RequestLimitExceededError, ThrottlingError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model