list_sessions
¶
list_sessions(
*,
config_overrides: Optional[EMRClientConfig] = None,
cluster_id: Optional[ClusterId] = None,
session_states: Optional[SessionStateList] = None,
next_token: Optional[String] = None,
max_results: Optional[MaxResultsNumber] = None,
) -> ListSessionsOutput
Lists the sessions on a cluster. You can filter the results by session state. Newer sessions are returned first.
Parameters:
-
cluster_id(Optional[ClusterId], default:None) –The ID of the cluster to list sessions for.
-
session_states(Optional[SessionStateList], default:None) –An optional filter that limits the results to sessions in the specified states.
-
next_token(Optional[String], default:None) –The pagination token returned by a previous
ListSessionscall. Use it to retrieve the next page of results. -
max_results(Optional[MaxResultsNumber], default:None) –The maximum number of sessions to return in each page of results.
Raises:
-
InternalServerException–This exception occurs when there is an internal failure in the Amazon EMR service.
-
InvalidRequestException–This exception occurs when there is something wrong with user input.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_emr/_services/emr.py
2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 | |