amazonka-iot-2.0: Amazon IoT SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoT.ListJobs

Description

Lists jobs.

Requires permission to access the ListJobs action.

This operation returns paginated results.

Synopsis

Creating a Request

data ListJobs Source #

See: newListJobs smart constructor.

Constructors

ListJobs' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to return per request.

  • namespaceId :: Maybe Text

    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.

  • nextToken :: Maybe Text

    The token to retrieve the next set of results.

  • status :: Maybe JobStatus

    An optional filter that lets you search for jobs that have the specified status.

  • targetSelection :: Maybe 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.

  • thingGroupId :: Maybe Text

    A filter that limits the returned jobs to those for the specified group.

  • thingGroupName :: Maybe Text

    A filter that limits the returned jobs to those for the specified group.

Instances

Instances details
ToHeaders ListJobs Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

Methods

toHeaders :: ListJobs -> [Header] #

ToPath ListJobs Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

ToQuery ListJobs Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

AWSPager ListJobs Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

AWSRequest ListJobs Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

Associated Types

type AWSResponse ListJobs #

Generic ListJobs Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

Associated Types

type Rep ListJobs :: Type -> Type #

Methods

from :: ListJobs -> Rep ListJobs x #

to :: Rep ListJobs x -> ListJobs #

Read ListJobs Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

Show ListJobs Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

NFData ListJobs Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

Methods

rnf :: ListJobs -> () #

Eq ListJobs Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

Hashable ListJobs Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

Methods

hashWithSalt :: Int -> ListJobs -> Int #

hash :: ListJobs -> Int #

type AWSResponse ListJobs Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

type Rep ListJobs Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

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.

Constructors

ListJobsResponse' 

Fields

Instances

Instances details
Generic ListJobsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

Associated Types

type Rep ListJobsResponse :: Type -> Type #

Read ListJobsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

Show ListJobsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

NFData ListJobsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

Methods

rnf :: ListJobsResponse -> () #

Eq ListJobsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

type Rep ListJobsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListJobs

type Rep ListJobsResponse = D1 ('MetaData "ListJobsResponse" "Amazonka.IoT.ListJobs" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "ListJobsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [JobSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListJobsResponse Source #

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_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.