DynamoDBClient.batch_get_item
rboto-dynamodb==0.4.0 · Service index · Types
Model summary (excerpt): The BatchGetItem operation returns the attributes of one or more items from one or more tables. You identify requested items by primary key. A single operation can retrieve up to 16 MB of data, which can contain as many as 100 items. BatchGetItem returns a partial result if the response size limit is exceeded, the table's provisioned throughput is exceeded, more than 1MB per partition is...
Install and imports
from rboto import DynamoDBClient
from rboto_dynamodb.types import (
BatchGetItemOutput,
KeysAndAttributes,
ReturnConsumedCapacity,
)
Signature
async def batch_get_item(
*,
request_items: dict[str, KeysAndAttributes],
return_consumed_capacity: ReturnConsumedCapacity | None = None,
) -> BatchGetItemOutput: ...
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) |
|---|---|---|
request_items |
Yes | A map of one or more table names or table ARNs and, for each table, a map that describes one or more items to retrieve from that table. Each table name or ARN can be used only once per BatchGetItem request. Each element in the map of items to retrieve consists of the following: ConsistentRead - If true , a strongly consistent read is used; if false (the default), an eventually consistent read... |
return_consumed_capacity |
No |
Output
BatchGetItemOutput.
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 |
dict[str, list[dict[str, AttributeValueOutput]]] | None |
Always present | AttributeValueOutput |
unprocessed_keys |
dict[str, KeysAndAttributesOutput] | None |
Always present | KeysAndAttributesOutput |
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
BatchGetItemOutput, KeysAndAttributes, 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, InvalidEndpointError, ProvisionedThroughputExceededError, RequestLimitExceededError, ResourceNotFoundError, ThrottlingError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.