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

Contents

Description

Cancels a job.

Synopsis

Creating a Request

cancelJob Source #

Arguments

:: Text

cJobId

-> CancelJob 

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

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

  • cComment - An optional comment string describing why the job was canceled.
  • cJobId - The unique identifier you assigned to this job when it was created.

data CancelJob Source #

See: cancelJob smart constructor.

Instances
Eq CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Data CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Methods

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

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

toConstr :: CancelJob -> Constr #

dataTypeOf :: CancelJob -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Show CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Generic CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Associated Types

type Rep CancelJob :: Type -> Type #

Hashable CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

ToJSON CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

AWSRequest CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Associated Types

type Rs CancelJob :: Type #

ToHeaders CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Methods

toHeaders :: CancelJob -> [Header] #

ToPath CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

ToQuery CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

NFData CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Methods

rnf :: CancelJob -> () #

type Rep CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

type Rep CancelJob = D1 (MetaData "CancelJob" "Network.AWS.IoT.CancelJob" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "CancelJob'" PrefixI True) (S1 (MetaSel (Just "_cComment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs CancelJob Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Request Lenses

cComment :: Lens' CancelJob (Maybe Text) Source #

An optional comment string describing why the job was canceled.

cJobId :: Lens' CancelJob Text Source #

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

Destructuring the Response

cancelJobResponse Source #

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

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

data CancelJobResponse Source #

See: cancelJobResponse smart constructor.

Instances
Eq CancelJobResponse Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Data CancelJobResponse Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Methods

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

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

toConstr :: CancelJobResponse -> Constr #

dataTypeOf :: CancelJobResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CancelJobResponse Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Show CancelJobResponse Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Generic CancelJobResponse Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Associated Types

type Rep CancelJobResponse :: Type -> Type #

NFData CancelJobResponse Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

Methods

rnf :: CancelJobResponse -> () #

type Rep CancelJobResponse Source # 
Instance details

Defined in Network.AWS.IoT.CancelJob

type Rep CancelJobResponse = D1 (MetaData "CancelJobResponse" "Network.AWS.IoT.CancelJob" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "CancelJobResponse'" PrefixI True) ((S1 (MetaSel (Just "_crsJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_crsJobARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_crsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_crsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

crsJobId :: Lens' CancelJobResponse (Maybe Text) Source #

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

crsDescription :: Lens' CancelJobResponse (Maybe Text) Source #

A short text description of the job.

crsResponseStatus :: Lens' CancelJobResponse Int Source #

  • - | The response status code.