batch_create_memory_records
async
¶
batch_create_memory_records(
memory_id: MemoryId,
records: MemoryRecordsCreateInputList,
*,
config_overrides: Optional[AsyncBedrockAgentCoreClientConfig] = 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/async_bedrock_agent_core.py
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 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 | |