Skip to content

DynamoDBClient.transact_get_items

rboto-dynamodb==0.4.0 · Service index · Types

Model summary (excerpt): TransactGetItems is a synchronous operation that atomically retrieves multiple items from one or more tables (but not from indexes) in a single account and Region. A TransactGetItems call can contain up to 100 TransactGetItem objects, each of which contains a Get structure that specifies an item to retrieve from a table in the account and Region. A call to TransactGetItems cannot retrieve...

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 (
    ReturnConsumedCapacity,
    TransactGetItem,
    TransactGetItemsOutput,
)

Signature

async def transact_get_items(
    *,
    transact_items: Sequence[TransactGetItem],
    return_consumed_capacity: ReturnConsumedCapacity | None = None,
) -> TransactGetItemsOutput: ...

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_items Yes An ordered array of up to 100 TransactGetItem objects, each of which contains a Get structure.
return_consumed_capacity No A value of TOTAL causes consumed capacity information to be returned, and a value of NONE prevents that information from being returned. No other value is valid.

Output

TransactGetItemsOutput.

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
consumed_capacity list[ConsumedCapacityOutput] | None Always present ConsumedCapacityOutput
responses list[ItemResponseOutput] | None Always present ItemResponseOutput

| 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.

ReturnConsumedCapacity, TransactGetItem, TransactGetItemsOutput

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, InvalidEndpointError, ProvisionedThroughputExceededError, RequestLimitExceededError, ResourceNotFoundError, ThrottlingError, TransactionCanceledError.

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

Service guide · Pinned model