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

Contents

Description

Creates a job.

Synopsis

Creating a Request

createJob #

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

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

  • cjJobExecutionsRolloutConfig - Allows you to create a staged rollout of the job.
  • cjDocumentSource - An S3 link to the job document.
  • cjDocumentParameters - Parameters for the job document.
  • cjPresignedURLConfig - Configuration information for pre-signed S3 URLs.
  • cjDocument - The job document.
  • cjDescription - A short text description of the job.
  • cjTargetSelection - 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.
  • cjJobId - A job identifier which must be unique for your AWS account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.
  • cjTargets - A list of things and thing groups to which the job should be sent.

data CreateJob #

See: createJob smart constructor.

Instances

Eq CreateJob # 
Data CreateJob # 

Methods

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

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

toConstr :: CreateJob -> Constr #

dataTypeOf :: CreateJob -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateJob # 
Show CreateJob # 
Generic CreateJob # 

Associated Types

type Rep CreateJob :: * -> * #

Hashable CreateJob # 
ToJSON CreateJob # 
NFData CreateJob # 

Methods

rnf :: CreateJob -> () #

AWSRequest CreateJob # 
ToHeaders CreateJob # 

Methods

toHeaders :: CreateJob -> [Header] #

ToPath CreateJob # 
ToQuery CreateJob # 
type Rep CreateJob # 
type Rs CreateJob # 

Request Lenses

cjJobExecutionsRolloutConfig :: Lens' CreateJob (Maybe JobExecutionsRolloutConfig) #

Allows you to create a staged rollout of the job.

cjDocumentSource :: Lens' CreateJob (Maybe Text) #

An S3 link to the job document.

cjDocumentParameters :: Lens' CreateJob (HashMap Text Text) #

Parameters for the job document.

cjPresignedURLConfig :: Lens' CreateJob (Maybe PresignedURLConfig) #

Configuration information for pre-signed S3 URLs.

cjDocument :: Lens' CreateJob (Maybe Text) #

The job document.

cjDescription :: Lens' CreateJob (Maybe Text) #

A short text description of the job.

cjTargetSelection :: Lens' CreateJob (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.

cjJobId :: Lens' CreateJob Text #

A job identifier which must be unique for your AWS account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.

cjTargets :: Lens' CreateJob (NonEmpty Text) #

A list of things and thing groups to which the job should be sent.

Destructuring the Response

createJobResponse #

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

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

data CreateJobResponse #

See: createJobResponse smart constructor.

Instances

Eq CreateJobResponse # 
Data CreateJobResponse # 

Methods

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

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

toConstr :: CreateJobResponse -> Constr #

dataTypeOf :: CreateJobResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateJobResponse # 
Show CreateJobResponse # 
Generic CreateJobResponse # 
NFData CreateJobResponse # 

Methods

rnf :: CreateJobResponse -> () #

type Rep CreateJobResponse # 
type Rep CreateJobResponse = D1 * (MetaData "CreateJobResponse" "Network.AWS.IoT.CreateJob" "amazonka-iot-1.6.0-7DkcvCU69a26FkRzomxomK" False) (C1 * (MetaCons "CreateJobResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cjrsJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cjrsJobARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cjrsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cjrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

cjrsJobId :: Lens' CreateJobResponse (Maybe Text) #

The unique identifier you assigned to this job.

cjrsResponseStatus :: Lens' CreateJobResponse Int #

  • - | The response status code.