BedrockAgentCoreDataPlaneFrontingLayer / Client / stop_browser_session
stop_browser_session¶
- BedrockAgentCoreDataPlaneFrontingLayer.Client.stop_browser_session(**kwargs)¶
Terminates an active browser session in Amazon Bedrock. This operation stops the session, releases associated resources, and makes the session unavailable for further use.
To stop a browser session, you must specify both the browser identifier and the session ID. Once stopped, a session cannot be restarted; you must create a new session using
StartBrowserSession
.The following operations are related to
StopBrowserSession
:See also: AWS API Documentation
Request Syntax
response = client.stop_browser_session( browserIdentifier='string', sessionId='string', clientToken='string' )
- Parameters:
browserIdentifier (string) –
[REQUIRED]
The unique identifier of the browser associated with the session.
sessionId (string) –
[REQUIRED]
The unique identifier of the browser session to stop.
clientToken (string) –
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 ignores the request, but does not return an error.
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'browserIdentifier': 'string', 'sessionId': 'string', 'lastUpdatedAt': datetime(2015, 1, 1) }
Response Structure
(dict) –
browserIdentifier (string) –
The identifier of the browser.
sessionId (string) –
The identifier of the browser session.
lastUpdatedAt (datetime) –
The time at which the browser session was last updated.
Exceptions
BedrockAgentCoreDataPlaneFrontingLayer.Client.exceptions.ServiceQuotaExceededException
BedrockAgentCoreDataPlaneFrontingLayer.Client.exceptions.AccessDeniedException
BedrockAgentCoreDataPlaneFrontingLayer.Client.exceptions.ConflictException
BedrockAgentCoreDataPlaneFrontingLayer.Client.exceptions.ValidationException
BedrockAgentCoreDataPlaneFrontingLayer.Client.exceptions.ResourceNotFoundException
BedrockAgentCoreDataPlaneFrontingLayer.Client.exceptions.ThrottlingException
BedrockAgentCoreDataPlaneFrontingLayer.Client.exceptions.InternalServerException