batch_update_memory_records
async
¶
batch_update_memory_records(
memory_id: MemoryId,
records: MemoryRecordsUpdateInputList,
*,
config_overrides: Optional[AsyncBedrockAgentCoreClientConfig] = None,
record_expiry_specification: Optional[RecordExpirySpecification] = None,
) -> BatchUpdateMemoryRecordsOutput
Updates multiple memory records with custom content in a single batch operation within the specified memory.
Parameters:
-
memory_id(MemoryId) –The unique ID of the memory resource where records will be updated.
-
records(MemoryRecordsUpdateInputList) –A list of memory record update inputs to be processed in the batch operation.
-
record_expiry_specification(Optional[RecordExpirySpecification], default:None) –The record expiry (long-term memory time-to-live) applied to every record updated by this request. Set
recordExpiryDurationDaysto configure or overwrite the number of days after which the records expire, or setactiontoREMOVEto 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 current state:
-
If the record already has an expiry configured, the service resets and reapplies the expiry based on the last applied
recordExpiryDurationDays. -
If the record does not have an expiry configured, no expiry is applied and the record remains non-expiring. This is the outcome regardless of whether the record's strategy configures an expiry.
Providing an explicit
recordExpiryDurationDaysalways takes precedence: it overwrites an existing expiry, or sets one on a record that previously had none. -
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/async_bedrock_agent_core.py
3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 | |