amazonka-iot-1.6.1: Amazon IoT SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.IoT.ListJobs

Contents

Description

Lists jobs.

Synopsis

Creating a Request

listJobs :: ListJobs Source #

Creates a value of ListJobs with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ljStatus - An optional filter that lets you search for jobs that have the specified status.
  • ljThingGroupId - A filter that limits the returned jobs to those for the specified group.
  • ljNextToken - The token to retrieve the next set of results.
  • ljThingGroupName - A filter that limits the returned jobs to those for the specified group.
  • ljMaxResults - The maximum number of results to return per request.
  • ljTargetSelection - 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.

data ListJobs Source #

See: listJobs smart constructor.

Instances
Eq ListJobs Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Data ListJobs Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListJobs -> c ListJobs #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListJobs #

toConstr :: ListJobs -> Constr #

dataTypeOf :: ListJobs -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListJobs) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListJobs) #

gmapT :: (forall b. Data b => b -> b) -> ListJobs -> ListJobs #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListJobs -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListJobs -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListJobs -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListJobs -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListJobs -> m ListJobs #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListJobs -> m ListJobs #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListJobs -> m ListJobs #

Read ListJobs Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Show ListJobs Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Generic ListJobs Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Associated Types

type Rep ListJobs :: Type -> Type #

Methods

from :: ListJobs -> Rep ListJobs x #

to :: Rep ListJobs x -> ListJobs #

Hashable ListJobs Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Methods

hashWithSalt :: Int -> ListJobs -> Int #

hash :: ListJobs -> Int #

AWSRequest ListJobs Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Associated Types

type Rs ListJobs :: Type #

ToHeaders ListJobs Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Methods

toHeaders :: ListJobs -> [Header] #

ToPath ListJobs Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

ToQuery ListJobs Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

NFData ListJobs Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Methods

rnf :: ListJobs -> () #

type Rep ListJobs Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

type Rs ListJobs Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Request Lenses

ljStatus :: Lens' ListJobs (Maybe JobStatus) Source #

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

ljThingGroupId :: Lens' ListJobs (Maybe Text) Source #

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

ljNextToken :: Lens' ListJobs (Maybe Text) Source #

The token to retrieve the next set of results.

ljThingGroupName :: Lens' ListJobs (Maybe Text) Source #

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

ljMaxResults :: Lens' ListJobs (Maybe Natural) Source #

The maximum number of results to return per request.

ljTargetSelection :: 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

listJobsResponse Source #

Creates a value of ListJobsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ListJobsResponse Source #

See: listJobsResponse smart constructor.

Instances
Eq ListJobsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Data ListJobsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListJobsResponse -> c ListJobsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListJobsResponse #

toConstr :: ListJobsResponse -> Constr #

dataTypeOf :: ListJobsResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListJobsResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListJobsResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListJobsResponse -> ListJobsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListJobsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListJobsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListJobsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListJobsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListJobsResponse -> m ListJobsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListJobsResponse -> m ListJobsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListJobsResponse -> m ListJobsResponse #

Read ListJobsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Show ListJobsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Generic ListJobsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Associated Types

type Rep ListJobsResponse :: Type -> Type #

NFData ListJobsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

Methods

rnf :: ListJobsResponse -> () #

type Rep ListJobsResponse Source # 
Instance details

Defined in Network.AWS.IoT.ListJobs

type Rep ListJobsResponse = D1 (MetaData "ListJobsResponse" "Network.AWS.IoT.ListJobs" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "ListJobsResponse'" PrefixI True) (S1 (MetaSel (Just "_ljrsJobs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [JobSummary])) :*: (S1 (MetaSel (Just "_ljrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ljrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

ljrsNextToken :: Lens' ListJobsResponse (Maybe Text) Source #

The token for the next set of results, or null if there are no additional results.

ljrsResponseStatus :: Lens' ListJobsResponse Int Source #

  • - | The response status code.