getBrowserSession method
Retrieves detailed information about a specific browser session in Amazon Bedrock AgentCore. This operation returns the session's configuration, current status, associated streams, and metadata.
To get a browser session, you must specify both the browser identifier and the session ID. The response includes information about the session's viewport configuration, timeout settings, and stream endpoints.
The following operations are related to GetBrowserSession:
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter browserIdentifier :
The unique identifier of the browser associated with the session.
Parameter sessionId :
The unique identifier of the browser session to retrieve.
Implementation
Future<GetBrowserSessionResponse> getBrowserSession({
required String browserIdentifier,
required String sessionId,
}) async {
final $query = <String, List<String>>{
'sessionId': [sessionId],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/browsers/${Uri.encodeComponent(browserIdentifier)}/sessions/get',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetBrowserSessionResponse.fromJson(response);
}