list_jobs
¶
list_jobs(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
20977 20978 20979 20980 20981 20982 20983 20984 20985 20986 20987 20988 20989 20990 20991 20992 20993 20994 20995 20996 20997 20998 20999 21000 21001 21002 21003 21004 21005 21006 21007 21008 21009 21010 21011 21012 21013 21014 21015 21016 21017 21018 21019 21020 21021 21022 21023 21024 21025 21026 21027 21028 21029 21030 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 | |