list_sessions
¶
list_sessions(
application_id: ApplicationId,
*,
config_overrides: Optional[EMRServerlessClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[int] = None,
states: Optional[SessionStateSet] = None,
created_at_after: Optional[Date] = None,
created_at_before: Optional[Date] = None,
) -> ListSessionsResponse
Lists sessions for the specified application. You can filter sessions by state and creation time.
Parameters:
-
application_id(ApplicationId) –The ID of the application to list sessions for.
-
next_token(Optional[NextToken], default:None) –The token for the next set of session results.
-
max_results(Optional[int], default:None) –The maximum number of sessions to return in each page of results.
-
states(Optional[SessionStateSet], default:None) –An optional filter for session states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.
-
created_at_after(Optional[Date], default:None) –The lower bound of the option to filter by creation date and time.
-
created_at_before(Optional[Date], default:None) –The upper bound of the option to filter by creation date and time.
Raises:
-
InternalServerException–Request processing failed because of an error or failure with the service.
-
ResourceNotFoundException–The specified resource was not found.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_emr_serverless/_services/emr_serverless.py
1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 | |