amazonka-importexport-1.5.0: Amazon Import/Export SDK.

Copyright(c) 2013-2017 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.ImportExport.CancelJob

Contents

Description

This operation cancels a specified job. Only the job owner can cancel it. The operation fails if the job has already started or is complete.

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:

data CancelJob Source #

Input structure for the CancelJob operation.

See: cancelJob smart constructor.

Instances

Eq CancelJob Source # 
Data CancelJob Source # 

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 # 
Show CancelJob Source # 
Generic CancelJob Source # 

Associated Types

type Rep CancelJob :: * -> * #

Hashable CancelJob Source # 
NFData CancelJob Source # 

Methods

rnf :: CancelJob -> () #

AWSRequest CancelJob Source # 
ToQuery CancelJob Source # 
ToPath CancelJob Source # 
ToHeaders CancelJob Source # 

Methods

toHeaders :: CancelJob -> [Header] #

type Rep CancelJob Source # 
type Rep CancelJob = D1 (MetaData "CancelJob" "Network.AWS.ImportExport.CancelJob" "amazonka-importexport-1.5.0-Cw4Z8XONDIx1zxYwsDV1d3" False) (C1 (MetaCons "CancelJob'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cAPIVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CancelJob Source # 

Request Lenses

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

Undocumented member.

cJobId :: Lens' CancelJob Text Source #

Undocumented member.

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 #

Output structure for the CancelJob operation.

See: cancelJobResponse smart constructor.

Instances

Eq CancelJobResponse Source # 
Data CancelJobResponse Source # 

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 # 
Show CancelJobResponse Source # 
Generic CancelJobResponse Source # 
NFData CancelJobResponse Source # 

Methods

rnf :: CancelJobResponse -> () #

type Rep CancelJobResponse Source # 
type Rep CancelJobResponse = D1 (MetaData "CancelJobResponse" "Network.AWS.ImportExport.CancelJob" "amazonka-importexport-1.5.0-Cw4Z8XONDIx1zxYwsDV1d3" False) (C1 (MetaCons "CancelJobResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_crsSuccess") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_crsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

crsResponseStatus :: Lens' CancelJobResponse Int Source #

  • - | The response status code.