create_memory
async
¶
create_memory(
name: Name,
event_expiry_duration: int,
*,
config_overrides: Optional[AsyncBedrockAgentCoreControlClientConfig] = None,
client_token: Optional[NonEmptyString] = None,
description: Optional[Description] = None,
encryption_key_arn: Optional[Arn] = None,
memory_execution_role_arn: Optional[Arn] = None,
memory_strategies: Optional[MemoryStrategyInputList] = None,
indexed_keys: Optional[IndexedKeysList] = None,
namespace_keys: Optional[NamespaceKeysList] = None,
stream_delivery_resources: Optional[StreamDeliveryResources] = None,
tags: Optional[TagsMap] = None,
) -> CreateMemoryOutput
Creates a new Amazon Bedrock AgentCore Memory resource.
Parameters:
-
client_token(Optional[NonEmptyString], default:None) –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.
-
name(Name) –The name of the memory. The name must be unique within your account.
-
description(Optional[Description], default:None) –The description of the memory.
-
encryption_key_arn(Optional[Arn], default:None) –The Amazon Resource Name (ARN) of the KMS key used to encrypt the memory data.
-
memory_execution_role_arn(Optional[Arn], default:None) –The Amazon Resource Name (ARN) of the IAM role that provides permissions for the memory to access Amazon Web Services services.
-
event_expiry_duration(int) –The duration after which memory events expire. Specified as an ISO 8601 duration.
-
memory_strategies(Optional[MemoryStrategyInputList], default:None) –The memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated.
-
indexed_keys(Optional[IndexedKeysList], default:None) –Metadata keys to index for filtering. Once declared, indexed keys cannot be removed.
-
namespace_keys(Optional[NamespaceKeysList], default:None) –The namespace variable key definitions with optional validation rules. Use these
namespaceKeysinnamespaceTemplatesto control namespace hierarchy. -
stream_delivery_resources(Optional[StreamDeliveryResources], default:None) –Configuration for streaming memory record data to external resources.
-
tags(Optional[TagsMap], default:None) –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.
Raises:
-
AccessDeniedException–This exception is thrown when a request is denied per access permissions
-
ConflictException–This exception is thrown when there is a conflict performing an operation
-
ResourceNotFoundException–This exception is thrown when a resource referenced by the operation does not exist
-
ServiceException–An internal error occurred.
-
ServiceQuotaExceededException–This exception is thrown when a request is made beyond the service quota
-
ThrottledException–API rate limit has been exceeded.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore_control/_services/async_bedrock_agent_core_control.py
8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 | |