Terminates an active code interpreter session in Amazon Bedrock AgentCore. This operation stops the session, releases associated resources, and makes the session unavailable for further use.
To stop a code interpreter session, you must specify both the code interpreter identifier and the session ID. Once stopped, a session cannot be restarted; you must create a new session using StartCodeInterpreterSession.
The following operations are related to StopCodeInterpreterSession:
put/code-interpreters/{codeInterpreterIdentifier}/sessions/stop#sessionId
Path parameters
codeInterpreterIdentifierstring required
The unique identifier of the code interpreter associated with the session.
Query parameters
sessionIdstring required
The unique identifier of the code interpreter session to stop.
Headers
X-Amzn-Trace-Idstring
The trace identifier for request tracking.
traceparentstring
The parent trace information for distributed tracing.
Request body
Response
Success