BedrockAgentCoreClient.batch_create_memory_records
rboto-bedrock-agentcore==0.4.0 · Service index · Types
Model summary (excerpt): Creates multiple memory records in a single batch operation for the specified memory with custom content.
Install and imports
from rboto import BedrockAgentCoreClient
from collections.abc import Sequence
from rboto_bedrock_agentcore.types import (
BatchCreateMemoryRecordsOutput,
MemoryRecordCreateInput,
RecordExpirySpecification,
)
Signature
async def batch_create_memory_records(
*,
memory_id: str,
records: Sequence[MemoryRecordCreateInput],
client_token: str | None = None,
record_expiry_specification: RecordExpirySpecification | None = None,
) -> BatchCreateMemoryRecordsOutput: ...
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 created. |
records |
Yes | A list of memory record creation inputs to be processed in the batch operation. |
client_token |
No | A unique, case-sensitive identifier to ensure idempotent processing of the batch request. |
record_expiry_specification |
No | The record expiry (long-term memory time-to-live) applied to every record created by this request. Set recordExpiryDurationDays to the number of days after which the records expire. Only the expiry provided here is applied; the records' strategy association has no effect on their expiry. If you do not provide this value, the records do not expire. The REMOVE action does not apply when creating... |
Output
BatchCreateMemoryRecordsOutput.
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
BatchCreateMemoryRecordsOutput, MemoryRecordCreateInput, 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.