list_jobs
¶
list_jobs(
*,
config_overrides: Optional[IoTClientConfig] = 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/io_t.py
11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 | |