amazonka-iot-1.6.0: 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.AssociateTargetsWithJob

Contents

Description

Associates a group with a continuous job. The following criteria must be met:

  • The job must have been created with the targetSelection field set to CONTINUOUS.
  • The job status must currently be IN_PROGRESS.
  • The total number of targets associated with a job must not exceed 100.

Synopsis

Creating a Request

associateTargetsWithJob Source #

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

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

  • atwjComment - An optional comment string describing why the job was associated with the targets.
  • atwjTargets - A list of thing group ARNs that define the targets of the job.
  • atwjJobId - The unique identifier you assigned to this job when it was created.

data AssociateTargetsWithJob Source #

See: associateTargetsWithJob smart constructor.

Instances

Eq AssociateTargetsWithJob Source # 
Data AssociateTargetsWithJob Source # 

Methods

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

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

toConstr :: AssociateTargetsWithJob -> Constr #

dataTypeOf :: AssociateTargetsWithJob -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssociateTargetsWithJob Source # 
Show AssociateTargetsWithJob Source # 
Generic AssociateTargetsWithJob Source # 
Hashable AssociateTargetsWithJob Source # 
ToJSON AssociateTargetsWithJob Source # 
NFData AssociateTargetsWithJob Source # 

Methods

rnf :: AssociateTargetsWithJob -> () #

AWSRequest AssociateTargetsWithJob Source # 
ToHeaders AssociateTargetsWithJob Source # 
ToPath AssociateTargetsWithJob Source # 
ToQuery AssociateTargetsWithJob Source # 
type Rep AssociateTargetsWithJob Source # 
type Rep AssociateTargetsWithJob = D1 * (MetaData "AssociateTargetsWithJob" "Network.AWS.IoT.AssociateTargetsWithJob" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "AssociateTargetsWithJob'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_atwjComment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_atwjTargets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (List1 Text))) (S1 * (MetaSel (Just Symbol "_atwjJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs AssociateTargetsWithJob Source # 

Request Lenses

atwjComment :: Lens' AssociateTargetsWithJob (Maybe Text) Source #

An optional comment string describing why the job was associated with the targets.

atwjTargets :: Lens' AssociateTargetsWithJob (NonEmpty Text) Source #

A list of thing group ARNs that define the targets of the job.

atwjJobId :: Lens' AssociateTargetsWithJob Text Source #

The unique identifier you assigned to this job when it was created.

Destructuring the Response

associateTargetsWithJobResponse Source #

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

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

data AssociateTargetsWithJobResponse Source #

See: associateTargetsWithJobResponse smart constructor.

Instances

Eq AssociateTargetsWithJobResponse Source # 
Data AssociateTargetsWithJobResponse Source # 

Methods

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

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

toConstr :: AssociateTargetsWithJobResponse -> Constr #

dataTypeOf :: AssociateTargetsWithJobResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssociateTargetsWithJobResponse Source # 
Show AssociateTargetsWithJobResponse Source # 
Generic AssociateTargetsWithJobResponse Source # 
NFData AssociateTargetsWithJobResponse Source # 
type Rep AssociateTargetsWithJobResponse Source # 
type Rep AssociateTargetsWithJobResponse = D1 * (MetaData "AssociateTargetsWithJobResponse" "Network.AWS.IoT.AssociateTargetsWithJob" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "AssociateTargetsWithJobResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_atwjrsJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_atwjrsJobARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_atwjrsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_atwjrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

atwjrsJobId :: Lens' AssociateTargetsWithJobResponse (Maybe Text) Source #

The unique identifier you assigned to this job when it was created.

atwjrsDescription :: Lens' AssociateTargetsWithJobResponse (Maybe Text) Source #

A short text description of the job.