update_memory
async
¶
update_memory(
memory_id: MemoryId,
*,
config_overrides: Optional[AsyncBedrockAgentCoreControlClientConfig] = 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/async_bedrock_agent_core_control.py
9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 | |