BedrockAgentCoreControlClient.create_memory
rboto-bedrock-agentcore-control==0.4.0 · Service index · Types
Model summary (excerpt): Creates a new Amazon Bedrock AgentCore Memory resource.
Install and imports
from rboto import BedrockAgentCoreControlClient
from collections.abc import Sequence
from rboto_bedrock_agentcore_control.types import (
CreateMemoryOutput,
IndexedKey,
MemoryStrategyInput,
NamespaceKeyEntry,
StreamDeliveryResources,
)
Signature
async def create_memory(
*,
name: str,
event_expiry_duration: int,
client_token: str | None = None,
description: str | None = None,
encryption_key_arn: str | None = None,
memory_execution_role_arn: str | None = None,
memory_strategies: Sequence[MemoryStrategyInput] | None = None,
indexed_keys: Sequence[IndexedKey] | None = None,
namespace_keys: Sequence[NamespaceKeyEntry] | None = None,
stream_delivery_resources: StreamDeliveryResources | None = None,
tags: dict[str, str] | None = None,
) -> CreateMemoryOutput: ...
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) |
|---|---|---|
name |
Yes | The name of the memory. The name must be unique within your account. |
event_expiry_duration |
Yes | The number of days after which memory events expire, between 7 and 3650 days. |
client_token |
No | A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error. |
description |
No | The description of the memory. |
encryption_key_arn |
No | The Amazon Resource Name (ARN) of the KMS key used to encrypt the memory data. |
memory_execution_role_arn |
No | The Amazon Resource Name (ARN) of the IAM role that provides permissions for the memory to access Amazon Web Services services. |
memory_strategies |
No | The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated. |
indexed_keys |
No | Metadata keys to index for filtering. Once declared, indexed keys cannot be removed. |
namespace_keys |
No | The namespace variable key definitions with optional validation rules. Use these namespaceKeys in namespaceTemplates to control namespace hierarchy. |
stream_delivery_resources |
No | Configuration for streaming memory record data to external resources. |
tags |
No | A map of tag keys and values to assign to an AgentCore Memory. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment. |
Output
CreateMemoryOutput.
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.
Related types
CreateMemoryOutput, IndexedKey, MemoryStrategyInput, NamespaceKeyEntry, StreamDeliveryResources
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.