Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists jobs.
Requires permission to access the ListJobs action.
This operation returns paginated results.
Synopsis
- data ListJobs = ListJobs' {}
- newListJobs :: ListJobs
- listJobs_status :: Lens' ListJobs (Maybe JobStatus)
- listJobs_thingGroupId :: Lens' ListJobs (Maybe Text)
- listJobs_namespaceId :: Lens' ListJobs (Maybe Text)
- listJobs_nextToken :: Lens' ListJobs (Maybe Text)
- listJobs_thingGroupName :: Lens' ListJobs (Maybe Text)
- listJobs_maxResults :: Lens' ListJobs (Maybe Natural)
- listJobs_targetSelection :: Lens' ListJobs (Maybe TargetSelection)
- 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:status:ListJobs'
, listJobs_status
- An optional filter that lets you search for jobs that have the specified
status.
$sel:thingGroupId:ListJobs'
, listJobs_thingGroupId
- A filter that limits the returned jobs to those for the specified group.
$sel:namespaceId: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.
$sel:nextToken:ListJobs'
, listJobs_nextToken
- The token to retrieve the next set of results.
$sel:thingGroupName:ListJobs'
, listJobs_thingGroupName
- A filter that limits the returned jobs to those for the specified group.
$sel:maxResults:ListJobs'
, listJobs_maxResults
- The maximum number of results to return per request.
$sel:targetSelection: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.
Request Lenses
listJobs_status :: Lens' ListJobs (Maybe JobStatus) Source #
An optional filter that lets you search for jobs that have the specified status.
listJobs_thingGroupId :: Lens' ListJobs (Maybe Text) Source #
A filter that limits the returned jobs to those for the specified group.
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_thingGroupName :: Lens' ListJobs (Maybe Text) Source #
A filter that limits the returned jobs to those for the specified group.
listJobs_maxResults :: Lens' ListJobs (Maybe Natural) Source #
The maximum number of results to return per request.
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.
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.
$sel:nextToken: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.