list_notebook_sessions
async
¶
list_notebook_sessions(
notebook_id: NotebookId,
*,
config_overrides: Optional[AsyncAthenaClientConfig] = None,
max_results: Optional[MaxSessionsCount] = None,
next_token: Optional[Token] = None,
) -> ListNotebookSessionsResponse
Lists, in descending order, the sessions that have been created in a notebook that are in an active state like CREATING, CREATED, IDLE or BUSY. Newer sessions are listed first; older sessions are listed later.
Parameters:
-
notebook_id(NotebookId) –The ID of the notebook to list sessions for.
-
max_results(Optional[MaxSessionsCount], default:None) –The maximum number of notebook sessions to return.
-
next_token(Optional[Token], default:None) –A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the
NextTokenfrom the response object of the previous page call.
Raises:
-
InternalServerException–Indicates a platform issue, which may be due to a transient condition or outage.
-
InvalidRequestException–Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.
-
ResourceNotFoundException–A resource, such as a workgroup, was not found.
-
UnknownServiceError–The service returned an error code this client does not model.