AWS Security ChangesHomeSearch

AWS bedrock-agentcore documentation change

Service: bedrock-agentcore · 2026-03-19 · Documentation low

File: bedrock-agentcore/latest/devguide/runtime-get-started-websocket.md

Summary

Replaced stop_runtime_session code example with documentation reference

Security assessment

Simplifies documentation by removing code sample without changing security controls or exposing vulnerabilities

Diff

diff --git a/bedrock-agentcore/latest/devguide/runtime-get-started-websocket.md b/bedrock-agentcore/latest/devguide/runtime-get-started-websocket.md
index 59e1cbbcb..3816d4ba1 100644
--- a//bedrock-agentcore/latest/devguide/runtime-get-started-websocket.md
+++ b//bedrock-agentcore/latest/devguide/runtime-get-started-websocket.md
@@ -633,19 +633 @@ For more information about configuring lifecycle settings, see [Configure Amazon
-To stop the running session before the configurable `IdleRuntimeSessionTimeout` (defaulted at 15 minutes) and save on any potential runaway costs, use the `stop_runtime_session` API.
-
-Create a file named `stop_runtime_session.py` with the following content:
-    
-    
-    from bedrock_agentcore.runtime import AgentCoreRuntimeClient
-    import os
-    
-    runtime_arn = os.getenv('AGENT_ARN')
-    if not runtime_arn:
-        raise ValueError("AGENT_ARN environment variable is required")
-    
-    client = AgentCoreRuntimeClient(region="us-west-2")
-    session_id = "user-123-conversation-456"
-    response = client.stop_runtime_session(
-        runtime_arn=runtime_arn,
-        session_id=session_id,
-        qualifier="DEFAULT"
-    )
+To stop a running session before the configurable `IdleRuntimeSessionTimeout` (defaulted at 15 minutes), see [Stop a running session](./runtime-stop-session.html).