Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Lists jobs.
Requires permission to access the ListJobs action.
This operation returns paginated results.
Synopsis
- data ListJobs = ListJobs' {}
- newListJobs :: ListJobs
- listJobs_maxResults :: Lens' ListJobs (Maybe Natural)
- listJobs_namespaceId :: Lens' ListJobs (Maybe Text)
- listJobs_nextToken :: Lens' ListJobs (Maybe Text)
- listJobs_status :: Lens' ListJobs (Maybe JobStatus)
- listJobs_targetSelection :: Lens' ListJobs (Maybe TargetSelection)
- listJobs_thingGroupId :: Lens' ListJobs (Maybe Text)
- listJobs_thingGroupName :: Lens' ListJobs (Maybe Text)
- data ListJobsResponse = ListJobsResponse' {
- jobs :: Maybe [JobSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListJobsResponse :: Int -> ListJobsResponse
- listJobsResponse_jobs :: Lens' ListJobsResponse (Maybe [JobSummary])
- listJobsResponse_nextToken :: Lens' ListJobsResponse (Maybe Text)
- listJobsResponse_httpStatus :: Lens' ListJobsResponse Int
Creating a Request
See: newListJobs
smart constructor.
ListJobs' | |
|
Instances
newListJobs :: ListJobs Source #
Create a value of ListJobs
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:maxResults:ListJobs'
, listJobs_maxResults
- The maximum number of results to return per request.
ListJobs
, listJobs_namespaceId
- 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 namespaceId
feature is in public preview.
ListJobs
, listJobs_nextToken
- The token to retrieve the next set of results.
ListJobs
, listJobs_status
- An optional filter that lets you search for jobs that have the specified
status.
ListJobs
, listJobs_targetSelection
- 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.
ListJobs
, listJobs_thingGroupId
- A filter that limits the returned jobs to those for the specified group.
ListJobs
, listJobs_thingGroupName
- A filter that limits the returned jobs to those for the specified group.
Request Lenses
listJobs_maxResults :: Lens' ListJobs (Maybe Natural) Source #
The maximum number of results to return per request.
listJobs_namespaceId :: Lens' ListJobs (Maybe Text) Source #
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 namespaceId
feature is in public preview.
listJobs_nextToken :: Lens' ListJobs (Maybe Text) Source #
The token to retrieve the next set of results.
listJobs_status :: Lens' ListJobs (Maybe JobStatus) Source #
An optional filter that lets you search for jobs that have the specified status.
listJobs_targetSelection :: Lens' ListJobs (Maybe TargetSelection) Source #
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.
listJobs_thingGroupId :: Lens' ListJobs (Maybe Text) Source #
A filter that limits the returned jobs to those for the specified group.
listJobs_thingGroupName :: Lens' ListJobs (Maybe Text) Source #
A filter that limits the returned jobs to those for the specified group.
Destructuring the Response
data ListJobsResponse Source #
See: newListJobsResponse
smart constructor.
ListJobsResponse' | |
|
Instances
Create a value of ListJobsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:jobs:ListJobsResponse'
, listJobsResponse_jobs
- A list of jobs.
ListJobs
, listJobsResponse_nextToken
- The token for the next set of results, or null if there are no
additional results.
$sel:httpStatus:ListJobsResponse'
, listJobsResponse_httpStatus
- The response's http status code.
Response Lenses
listJobsResponse_jobs :: Lens' ListJobsResponse (Maybe [JobSummary]) Source #
A list of jobs.
listJobsResponse_nextToken :: Lens' ListJobsResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no additional results.
listJobsResponse_httpStatus :: Lens' ListJobsResponse Int Source #
The response's http status code.