list_jobs
async
¶
list_jobs(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
job_category: Optional[JobCategory] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
creation_time_after: Optional[Timestamp] = None,
creation_time_before: Optional[Timestamp] = None,
last_modified_time_after: Optional[Timestamp] = None,
last_modified_time_before: Optional[Timestamp] = None,
name_contains: Optional[NameContains] = None,
sort_by: Optional[SortBy] = None,
sort_order: Optional[SortOrder] = None,
status_equals: Optional[JobStatus] = None,
) -> ListJobsResponse
Lists jobs in a specified category. You can filter results by creation time, last modified time, name, and status. Results are sorted by the field you specify in SortBy. Use pagination to retrieve large result sets efficiently.
The following operations are related to ListJobs:
-
CreateJob -
DescribeJob
Parameters:
-
job_category(Optional[JobCategory], default:None) –The category of jobs to list.
-
next_token(Optional[NextToken], default:None) –If the previous response was truncated, this token retrieves the next set of results.
-
max_results(Optional[MaxResults], default:None) –The maximum number of jobs to return in the response. The default value is 50.
-
creation_time_after(Optional[Timestamp], default:None) –A filter that returns only jobs created after the specified time.
-
creation_time_before(Optional[Timestamp], default:None) –A filter that returns only jobs created before the specified time.
-
last_modified_time_after(Optional[Timestamp], default:None) –A filter that returns only jobs modified after the specified time.
-
last_modified_time_before(Optional[Timestamp], default:None) –A filter that returns only jobs modified before the specified time.
-
name_contains(Optional[NameContains], default:None) –A string in the job name to filter results. Only jobs whose name contains the specified string are returned.
-
sort_by(Optional[SortBy], default:None) –The field to sort results by.
-
sort_order(Optional[SortOrder], default:None) –The sort order for results. Valid values are
AscendingandDescending. -
status_equals(Optional[JobStatus], default:None) –A filter that returns only jobs with the specified status.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
23806 23807 23808 23809 23810 23811 23812 23813 23814 23815 23816 23817 23818 23819 23820 23821 23822 23823 23824 23825 23826 23827 23828 23829 23830 23831 23832 23833 23834 23835 23836 23837 23838 23839 23840 23841 23842 23843 23844 23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880 23881 23882 23883 23884 23885 23886 23887 23888 23889 23890 23891 23892 23893 23894 23895 23896 23897 23898 23899 | |