BedrockAgentCoreClient.stop_runtime_session
rboto-bedrock-agentcore==0.4.0 · Service index · Types
Model summary (excerpt): Stops a session that is running in an running AgentCore Runtime agent.
Install and imports
from rboto import BedrockAgentCoreClient
from rboto_bedrock_agentcore.types import (
StopRuntimeSessionOutput,
)
Signature
async def stop_runtime_session(
*,
runtime_session_id: str,
agent_runtime_arn: str,
qualifier: str | None = None,
client_token: str | None = None,
) -> StopRuntimeSessionOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
runtime_session_id |
Yes | The ID of the session that you want to stop. |
agent_runtime_arn |
Yes | The ARN of the agent that contains the session that you want to stop. |
qualifier |
No | Optional qualifier to specify an agent alias, such as prod code> or dev . If you don't provide a value, the DEFAULT alias is used. |
client_token |
No | Idempotent token used to identify the request. If you use the same token with multiple requests, the same response is returned. Use ClientToken to prevent the same request from being processed more than once. |
Output
StopRuntimeSessionOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
runtime_session_id |
str | None |
Always present | — |
status_code |
int | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_bedrock_agentcore.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, RetryableConflictError, RuntimeClientError, ServiceQuotaExceededError, ThrottlingError, UnauthorizedError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.