stop_code_interpreter_session¶
Operation¶
stop_code_interpreter_session
async
¶
stop_code_interpreter_session(input: StopCodeInterpreterSessionInput, plugins: list[Plugin] | None = None) -> StopCodeInterpreterSessionOutput
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:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
StopCodeInterpreterSessionInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
StopCodeInterpreterSessionOutput
|
An instance of |
Input¶
StopCodeInterpreterSessionInput
dataclass
¶
Dataclass for StopCodeInterpreterSessionInput structure.
Attributes¶
client_token
class-attribute
instance-attribute
¶
client_token: str | None = None
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.
code_interpreter_identifier
class-attribute
instance-attribute
¶
code_interpreter_identifier: str | None = None
The unique identifier of the code interpreter associated with the session.
session_id
class-attribute
instance-attribute
¶
session_id: str | None = None
The unique identifier of the code interpreter session to stop.
trace_id
class-attribute
instance-attribute
¶
trace_id: str | None = None
The trace identifier for request tracking.
trace_parent
class-attribute
instance-attribute
¶
trace_parent: str | None = None
The parent trace information for distributed tracing.
Output¶
StopCodeInterpreterSessionOutput
dataclass
¶
Dataclass for StopCodeInterpreterSessionOutput structure.