v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465766489.0 KB

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

clientTokenstring

A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request, but does not return an error.

Response

Success

codeInterpreterIdentifierstring required

The identifier of the code interpreter.

sessionIdstring required

The identifier of the code interpreter session.

lastUpdatedAtstring date-time required

The timestamp when the code interpreter session was last updated.