Skip to content

get_memory_record

Operation

get_memory_record

get_memory_record(request: GetMemoryRecordInput | GetMemoryRecordInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetMemoryRecordInputDict]) -> GetMemoryRecordOutput

Retrieves a specific memory record from an AgentCore Memory resource.

To use this operation, you must have the bedrock-agentcore:GetMemoryRecord permission.

Parameters:

Name Type Description Default
request GetMemoryRecordInput | GetMemoryRecordInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[GetMemoryRecordInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetMemoryRecordOutput

An instance of GetMemoryRecordOutput.

get_memory_record async

get_memory_record(request: GetMemoryRecordInput | GetMemoryRecordInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetMemoryRecordInputDict]) -> GetMemoryRecordOutput

Retrieves a specific memory record from an AgentCore Memory resource.

To use this operation, you must have the bedrock-agentcore:GetMemoryRecord permission.

Parameters:

Name Type Description Default
request GetMemoryRecordInput | GetMemoryRecordInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[GetMemoryRecordInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetMemoryRecordOutput

An instance of GetMemoryRecordOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

GetMemoryRecordInputDict

Bases: TypedDict

Dictionary form of GetMemoryRecordInput.

Attributes

memory_id instance-attribute
memory_id: Required[str]

The identifier of the AgentCore Memory resource containing the memory record.

memory_record_id instance-attribute
memory_record_id: Required[str]

The identifier of the memory record to retrieve.

namespace instance-attribute
namespace: str | None

The namespace of the memory record to retrieve. This value is used for IAM condition key authorization.

GetMemoryRecordInput dataclass

Bases: _SerdeShape

Dataclass for GetMemoryRecordInput structure.

Attributes

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

The identifier of the AgentCore Memory resource containing the memory record.

memory_record_id class-attribute instance-attribute
memory_record_id: str | None = ...

The identifier of the memory record to retrieve.

namespace class-attribute instance-attribute
namespace: str | None = ...

The namespace of the memory record to retrieve. This value is used for IAM condition key authorization.

Output

GetMemoryRecordOutput dataclass

Bases: _SerdeShape

Dataclass for GetMemoryRecordOutput structure.

Attributes

memory_record instance-attribute
memory_record: MemoryRecord

The requested memory record.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.