Skip to content

Bedrock Agentcore Control  >  Operations  >  update_memory

update_memory

Operation

update_memory async

update_memory(input: UpdateMemoryInput, plugins: list[Plugin] | None = None) -> UpdateMemoryOutput

Update an Amazon Bedrock AgentCore Memory resource memory.

Parameters:

Name Type Description Default
input UpdateMemoryInput

An instance of UpdateMemoryInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
UpdateMemoryOutput

An instance of UpdateMemoryOutput.

Input

UpdateMemoryInput dataclass

Dataclass for UpdateMemoryInput structure.

Attributes

add_indexed_keys class-attribute instance-attribute
add_indexed_keys: list[IndexedKey] | None = None

Additional metadata keys to index. Previously indexed keys cannot be removed.

client_token class-attribute instance-attribute
client_token: str | None = None

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

description class-attribute instance-attribute
description: str | None = field(repr=False, default=None)

The updated description of the AgentCore Memory resource.

event_expiry_duration class-attribute instance-attribute
event_expiry_duration: int | None = None

The number of days after which memory events will expire, between 7 and 365 days.

memory_execution_role_arn class-attribute instance-attribute
memory_execution_role_arn: str | None = None

The ARN of the IAM role that provides permissions for the AgentCore Memory resource.

memory_id class-attribute instance-attribute
memory_id: str | None = None

The unique identifier of the memory to update.

memory_strategies class-attribute instance-attribute
memory_strategies: ModifyMemoryStrategies | None = None

The memory strategies to add, modify, or delete.

stream_delivery_resources class-attribute instance-attribute
stream_delivery_resources: StreamDeliveryResources | None = None

Configuration for streaming memory record data to external resources.

Output

UpdateMemoryOutput dataclass

Dataclass for UpdateMemoryOutput structure.

Attributes

memory class-attribute instance-attribute
memory: Memory | None = None

The updated AgentCore Memory resource details.