update_memory
¶
update_memory(
memory_id: MemoryId,
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = None,
client_token: Optional[NonEmptyString] = None,
description: Optional[Description] = None,
event_expiry_duration: Optional[int] = None,
memory_execution_role_arn: Optional[Arn] = None,
memory_strategies: Optional[ModifyMemoryStrategies] = None,
add_indexed_keys: Optional[IndexedKeysList] = None,
namespace_keys: Optional[NamespaceKeysList] = None,
stream_delivery_resources: Optional[StreamDeliveryResources] = None,
) -> UpdateMemoryOutput
Update an Amazon Bedrock AgentCore Memory resource memory.
Parameters:
-
client_token(Optional[NonEmptyString], default:None) –A client token is used for keeping track of idempotent requests. It can contain a session id which can be around 250 chars, combined with a unique Amazon Web Services identifier.
-
memory_id(MemoryId) –The unique identifier of the memory to update.
-
description(Optional[Description], default:None) –The updated description of the AgentCore Memory resource.
-
event_expiry_duration(Optional[int], default:None) –The number of days after which memory events will expire, between 7 and 365 days.
-
memory_execution_role_arn(Optional[Arn], default:None) –The ARN of the IAM role that provides permissions for the AgentCore Memory resource.
-
memory_strategies(Optional[ModifyMemoryStrategies], default:None) –The memory strategies to add, modify, or delete.
-
add_indexed_keys(Optional[IndexedKeysList], default:None) –Additional metadata keys to index. Previously indexed keys cannot be removed.
-
namespace_keys(Optional[NamespaceKeysList], default:None) –The namespace variable key definitions with validation rules for this memory. This value fully replaces the existing set — any key you omit is removed. Any referenced
namespaceKeyomission will throw ValidationException. -
stream_delivery_resources(Optional[StreamDeliveryResources], default:None) –Configuration for streaming memory record data to external resources.
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
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 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 | |