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

Contents

Description

Creates a job.

Synopsis

Creating a Request

createJob Source #

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 Source #

See: createJob smart constructor.

Instances
Eq CreateJob Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

Data CreateJob Source # 
Instance details

Defined in Network.AWS.IoT.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 Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

Show CreateJob Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

Generic CreateJob Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

Associated Types

type Rep CreateJob :: Type -> Type #

Hashable CreateJob Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

ToJSON CreateJob Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

AWSRequest CreateJob Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

Associated Types

type Rs CreateJob :: Type #

ToHeaders CreateJob Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

Methods

toHeaders :: CreateJob -> [Header] #

ToPath CreateJob Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

ToQuery CreateJob Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

NFData CreateJob Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

Methods

rnf :: CreateJob -> () #

type Rep CreateJob Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

type Rs CreateJob Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

Request Lenses

cjJobExecutionsRolloutConfig :: Lens' CreateJob (Maybe JobExecutionsRolloutConfig) Source #

Allows you to create a staged rollout of the job.

cjDocumentSource :: Lens' CreateJob (Maybe Text) Source #

An S3 link to the job document.

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

Parameters for the job document.

cjPresignedURLConfig :: Lens' CreateJob (Maybe PresignedURLConfig) Source #

Configuration information for pre-signed S3 URLs.

cjDocument :: Lens' CreateJob (Maybe Text) Source #

The job document.

cjDescription :: Lens' CreateJob (Maybe Text) Source #

A short text description of the job.

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

cjJobId :: Lens' CreateJob Text Source #

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) Source #

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

Destructuring the Response

createJobResponse Source #

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 Source #

See: createJobResponse smart constructor.

Instances
Eq CreateJobResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

Data CreateJobResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

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 Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

Show CreateJobResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

Generic CreateJobResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

Associated Types

type Rep CreateJobResponse :: Type -> Type #

NFData CreateJobResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

Methods

rnf :: CreateJobResponse -> () #

type Rep CreateJobResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateJob

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

Response Lenses

cjrsJobId :: Lens' CreateJobResponse (Maybe Text) Source #

The unique identifier you assigned to this job.

cjrsResponseStatus :: Lens' CreateJobResponse Int Source #

  • - | The response status code.