BedrockAgentCoreClient.batch_update_memory_records
rboto-bedrock-agentcore==0.4.0 · Service index · Types
Model summary (excerpt): Updates multiple memory records with custom content in a single batch operation within the specified memory.
Install and imports
from rboto import BedrockAgentCoreClient
from collections.abc import Sequence
from rboto_bedrock_agentcore.types import (
BatchUpdateMemoryRecordsOutput,
MemoryRecordUpdateInput,
RecordExpirySpecification,
)
Signature
async def batch_update_memory_records(
*,
memory_id: str,
records: Sequence[MemoryRecordUpdateInput],
record_expiry_specification: RecordExpirySpecification | None = None,
) -> BatchUpdateMemoryRecordsOutput: ...
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) |
|---|---|---|
memory_id |
Yes | The unique ID of the memory resource where records will be updated. |
records |
Yes | A list of memory record update inputs to be processed in the batch operation. |
record_expiry_specification |
No | The record expiry (long-term memory time-to-live) applied to every record updated by this request. Set recordExpiryDurationDays to configure or overwrite the number of days after which the records expire, or set action to REMOVE to clear a previously configured expiry so that the records no longer expire. When you do not provide this value, the service determines each record's expiry from its... |
Output
BatchUpdateMemoryRecordsOutput.
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 |
|---|---|---|---|
successful_records |
list[MemoryRecordValueValueOutput] |
Always present | MemoryRecordValueValueOutput |
failed_records |
list[MemoryRecordValueValueOutput] |
Always present | MemoryRecordValueValueOutput |
| 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
BatchUpdateMemoryRecordsOutput, MemoryRecordUpdateInput, RecordExpirySpecification
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_bedrock_agentcore.exceptions:
AccessDeniedError, ResourceNotFoundError, ServiceError, ServiceQuotaExceededError, ThrottledError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.