batch_create_memory_records
¶
batch_create_memory_records(
memory_id: MemoryId,
records: MemoryRecordsCreateInputList,
*,
config_overrides: Optional[BedrockAgentCoreClientConfig] = None,
client_token: Optional[str] = None,
record_expiry_specification: Optional[RecordExpirySpecification] = None,
) -> BatchCreateMemoryRecordsOutput
Creates multiple memory records in a single batch operation for the specified memory with custom content.
Parameters:
-
memory_id(MemoryId) –The unique ID of the memory resource where records will be created.
-
records(MemoryRecordsCreateInputList) –A list of memory record creation inputs to be processed in the batch operation.
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier to ensure idempotent processing of the batch request.
-
record_expiry_specification(Optional[RecordExpirySpecification], default:None) –The record expiry (long-term memory time-to-live) applied to every record created by this request. Set
recordExpiryDurationDaysto 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. TheREMOVEaction does not apply when creating records.
Raises:
-
AccessDeniedException–The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
-
ResourceNotFoundException–The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
-
ServiceException–The service encountered an internal error. Try your request again later.
-
ServiceQuotaExceededException–The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
-
ThrottledException–The request was denied due to request throttling. Reduce the frequency of requests and try again.
-
ValidationException–The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore/_services/bedrock_agent_core.py
3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 | |