list_jobs
async
¶
list_jobs(
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
status: Optional[JobStatus] = None,
target_selection: Optional[TargetSelection] = None,
max_results: Optional[LaserMaxResults] = None,
next_token: Optional[NextToken] = None,
thing_group_name: Optional[ThingGroupName] = None,
thing_group_id: Optional[ThingGroupId] = None,
namespace_id: Optional[NamespaceId] = None,
) -> ListJobsResponse
Lists jobs.
Requires permission to access the ListJobs action.
Parameters:
-
status(Optional[JobStatus], default:None) –An optional filter that lets you search for jobs that have the specified status.
-
target_selection(Optional[TargetSelection], default:None) –Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing group targets. By using continuous jobs, devices that join the group receive the job execution even after the job has been created.
-
max_results(Optional[LaserMaxResults], default:None) –The maximum number of results to return per request.
-
next_token(Optional[NextToken], default:None) –The token to retrieve the next set of results.
-
thing_group_name(Optional[ThingGroupName], default:None) –A filter that limits the returned jobs to those for the specified group.
-
thing_group_id(Optional[ThingGroupId], default:None) –A filter that limits the returned jobs to those for the specified group.
-
namespace_id(Optional[NamespaceId], default:None) –The namespace used to indicate that a job is a customer-managed job.
When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.
$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/The
namespaceIdfeature is only supported by IoT Greengrass at this time. For more information, see Setting up IoT Greengrass core devices.
Raises:
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 | |