amazonka-greengrass-1.6.0: Amazon Greengrass 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.Greengrass.CreateSoftwareUpdateJob

Contents

Description

Creates a software update for a core or group of cores (specified as an IoT thing group.) Use this to update the OTA Agent as well as the Greengrass core software. It makes use of the IoT Jobs feature which provides additional commands to manage a Greengrass core software update job.

Synopsis

Creating a Request

createSoftwareUpdateJob :: CreateSoftwareUpdateJob Source #

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

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

data CreateSoftwareUpdateJob Source #

See: createSoftwareUpdateJob smart constructor.

Instances

Eq CreateSoftwareUpdateJob Source # 
Data CreateSoftwareUpdateJob Source # 

Methods

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

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

toConstr :: CreateSoftwareUpdateJob -> Constr #

dataTypeOf :: CreateSoftwareUpdateJob -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: CreateSoftwareUpdateJob -> () #

AWSRequest CreateSoftwareUpdateJob Source # 
ToHeaders CreateSoftwareUpdateJob Source # 
ToPath CreateSoftwareUpdateJob Source # 
ToQuery CreateSoftwareUpdateJob Source # 
type Rep CreateSoftwareUpdateJob Source # 
type Rep CreateSoftwareUpdateJob = D1 * (MetaData "CreateSoftwareUpdateJob" "Network.AWS.Greengrass.CreateSoftwareUpdateJob" "amazonka-greengrass-1.6.0-UQvTNoJiEcHgaWALQEura" False) (C1 * (MetaCons "CreateSoftwareUpdateJob'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_csujUpdateAgentLogLevel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe UpdateAgentLogLevel))) ((:*:) * (S1 * (MetaSel (Just Symbol "_csujAmznClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_csujSoftwareToUpdate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe SoftwareToUpdate))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_csujUpdateTargetsOperatingSystem") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe UpdateTargetsOperatingSystem))) (S1 * (MetaSel (Just Symbol "_csujS3URLSignerRole") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_csujUpdateTargets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) (S1 * (MetaSel (Just Symbol "_csujUpdateTargetsArchitecture") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe UpdateTargetsArchitecture)))))))
type Rs CreateSoftwareUpdateJob Source # 

Request Lenses

csujAmznClientToken :: Lens' CreateSoftwareUpdateJob (Maybe Text) Source #

A client token used to correlate requests and responses.

Destructuring the Response

createSoftwareUpdateJobResponse Source #

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

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

data CreateSoftwareUpdateJobResponse Source #

See: createSoftwareUpdateJobResponse smart constructor.

Instances

Eq CreateSoftwareUpdateJobResponse Source # 
Data CreateSoftwareUpdateJobResponse Source # 

Methods

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

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

toConstr :: CreateSoftwareUpdateJobResponse -> Constr #

dataTypeOf :: CreateSoftwareUpdateJobResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateSoftwareUpdateJobResponse Source # 
Show CreateSoftwareUpdateJobResponse Source # 
Generic CreateSoftwareUpdateJobResponse Source # 
NFData CreateSoftwareUpdateJobResponse Source # 
type Rep CreateSoftwareUpdateJobResponse Source # 
type Rep CreateSoftwareUpdateJobResponse = D1 * (MetaData "CreateSoftwareUpdateJobResponse" "Network.AWS.Greengrass.CreateSoftwareUpdateJob" "amazonka-greengrass-1.6.0-UQvTNoJiEcHgaWALQEura" False) (C1 * (MetaCons "CreateSoftwareUpdateJobResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_csujrsIotJobARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_csujrsIotJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_csujrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

csujrsIotJobARN :: Lens' CreateSoftwareUpdateJobResponse (Maybe Text) Source #

The IoT Job ARN corresponding to this update.

csujrsIotJobId :: Lens' CreateSoftwareUpdateJobResponse (Maybe Text) Source #

The IoT Job Id corresponding to this update.