Skip to content

Bedrock Agentcore Control  >  Structures  >  Memory

Memory

Structure Class

Memory dataclass

Contains information about a memory resource.

Attributes

arn instance-attribute
arn: str

The Amazon Resource Name (ARN) of the memory.

created_at instance-attribute
created_at: datetime

The timestamp when the memory was created.

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

The description of the memory.

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

The ARN of the KMS key used to encrypt the memory.

event_expiry_duration instance-attribute
event_expiry_duration: int

The number of days after which memory events will expire.

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

The reason for failure if the memory is in a failed state.

id instance-attribute
id: str

The unique identifier of the memory.

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

The indexed metadata keys for this memory. Only indexed keys can be used in metadata filters.

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

ARN of the resource managing this memory (e.g. a harness). When set, strategy modifications and deletion are only allowed through the managing resource.

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

name instance-attribute
name: str

The name of the memory.

status instance-attribute
status: MemoryStatus

The current status of the memory.

strategies class-attribute instance-attribute
strategies: list[MemoryStrategy] | None = None

The list of memory strategies associated with this memory.

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

Configuration for streaming memory record data to external resources.

updated_at instance-attribute
updated_at: datetime

The timestamp when the memory was last updated.