Skip to content

BedrockAgentCoreControlClient.get_memory

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

Model summary (excerpt): Retrieve an existing Amazon Bedrock AgentCore Memory resource.

Install and imports

python -m pip install "rboto[bedrock-agentcore-control]==0.4.0"
from rboto import BedrockAgentCoreControlClient
from rboto_bedrock_agentcore_control.types import (
    GetMemoryOutput,
    MemoryView,
)

Signature

async def get_memory(
    *,
    memory_id: str,
    view: MemoryView | None = None,
) -> GetMemoryOutput: ...

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 retrieve.
view No The level of detail to return for the memory.

Output

GetMemoryOutput.

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.

GetMemoryOutput, MemoryView

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.

Waiters

from rboto import WaiterConfig. Calls use this public operation, including configured middleware and native retries. Polling, deadlines and errors.

client.waiters.memory_created:

async def memory_created(
    *,
    memory_id: str,
    view: MemoryView | None = None,
    waiter_config: WaiterConfig | None = None,
) -> GetMemoryOutput: ...

Default fixed delay: 2 seconds. Default maximum: 40 polls. No overall timeout unless configured.

Returns the successful polling Output.

Acceptor index State Matcher Model path Expected
0 retry stringEquals memory.status CREATING
1 success stringEquals memory.status ACTIVE
2 failure stringEquals memory.status FAILED

Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.

Errors

Import from rboto_bedrock_agentcore_control.exceptions:

AccessDeniedError, ResourceNotFoundError, ServiceError, ThrottledError, ValidationError.

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

Service guide · Pinned model