list_sessions
async
¶
list_sessions(
application_id: ApplicationId,
*,
config_overrides: Optional[AsyncEMRServerlessClientConfig] = 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/async_emr_serverless.py
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 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 | |