create_memory
¶
create_memory(
name: Name,
event_expiry_duration: int,
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = 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/bedrock_agent_core_control.py
8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 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 | |