Skip to content

BedrockAgentCoreControlClient.update_memory

rboto-bedrock-agentcore-control==0.4.0 · Service index · Types

Model summary (excerpt): Update an Amazon Bedrock AgentCore Memory resource memory.

Install and imports

python -m pip install "rboto[bedrock-agentcore-control]==0.4.0"
from rboto import BedrockAgentCoreControlClient
from collections.abc import Sequence
from rboto_bedrock_agentcore_control.types import (
    IndexedKey,
    ModifyMemoryStrategies,
    NamespaceKeyEntry,
    StreamDeliveryResources,
    UpdateMemoryOutput,
)

Signature

async def update_memory(
    *,
    memory_id: str,
    client_token: str | None = None,
    description: str | None = None,
    event_expiry_duration: int | None = None,
    memory_execution_role_arn: str | None = None,
    memory_strategies: ModifyMemoryStrategies | None = None,
    add_indexed_keys: Sequence[IndexedKey] | None = None,
    namespace_keys: Sequence[NamespaceKeyEntry] | None = None,
    stream_delivery_resources: StreamDeliveryResources | None = None,
) -> UpdateMemoryOutput: ...

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 identifier of the memory to update.
client_token No A client token is used for keeping track of idempotent requests. It can contain a session id which can be around 250 chars, combined with a unique Amazon Web Services identifier.
description No The updated description of the AgentCore Memory resource.
event_expiry_duration No The number of days after which memory events expire, between 7 and 3650 days.
memory_execution_role_arn No The ARN of the IAM role that provides permissions for the AgentCore Memory resource.
memory_strategies No The memory strategies to add, modify, or delete.
add_indexed_keys No Additional metadata keys to index. Previously indexed keys cannot be removed.
namespace_keys No The namespace variable key definitions with validation rules for this memory. This value fully replaces the existing set — any key you omit is removed. Any referenced namespaceKey omission will throw ValidationException.
stream_delivery_resources No Configuration for streaming memory record data to external resources.

Output

UpdateMemoryOutput.

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
memory MemoryOutput | None Always present MemoryOutput

| 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.

IndexedKey, ModifyMemoryStrategies, NamespaceKeyEntry, StreamDeliveryResources, UpdateMemoryOutput

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_control.exceptions:

AccessDeniedError, ConflictError, ResourceNotFoundError, ServiceError, ServiceQuotaExceededError, ThrottledError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model