amazonka-ec2-1.6.0: Amazon Elastic Compute Cloud 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.EC2.CancelImportTask

Contents

Description

Cancels an in-process import virtual machine or import snapshot task.

Synopsis

Creating a Request

cancelImportTask :: CancelImportTask Source #

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

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

  • citCancelReason - The reason for canceling the task.
  • citImportTaskId - The ID of the import image or import snapshot task to be canceled.
  • citDryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

data CancelImportTask Source #

Contains the parameters for CancelImportTask.

See: cancelImportTask smart constructor.

Instances

Eq CancelImportTask Source # 
Data CancelImportTask Source # 

Methods

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

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

toConstr :: CancelImportTask -> Constr #

dataTypeOf :: CancelImportTask -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CancelImportTask Source # 
Show CancelImportTask Source # 
Generic CancelImportTask Source # 
Hashable CancelImportTask Source # 
NFData CancelImportTask Source # 

Methods

rnf :: CancelImportTask -> () #

AWSRequest CancelImportTask Source # 
ToHeaders CancelImportTask Source # 
ToPath CancelImportTask Source # 
ToQuery CancelImportTask Source # 
type Rep CancelImportTask Source # 
type Rep CancelImportTask = D1 * (MetaData "CancelImportTask" "Network.AWS.EC2.CancelImportTask" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "CancelImportTask'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_citCancelReason") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_citImportTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_citDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))))))
type Rs CancelImportTask Source # 

Request Lenses

citCancelReason :: Lens' CancelImportTask (Maybe Text) Source #

The reason for canceling the task.

citImportTaskId :: Lens' CancelImportTask (Maybe Text) Source #

The ID of the import image or import snapshot task to be canceled.

citDryRun :: Lens' CancelImportTask (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

Destructuring the Response

cancelImportTaskResponse Source #

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

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

data CancelImportTaskResponse Source #

Contains the output for CancelImportTask.

See: cancelImportTaskResponse smart constructor.

Instances

Eq CancelImportTaskResponse Source # 
Data CancelImportTaskResponse Source # 

Methods

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

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

toConstr :: CancelImportTaskResponse -> Constr #

dataTypeOf :: CancelImportTaskResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CancelImportTaskResponse Source # 
Show CancelImportTaskResponse Source # 
Generic CancelImportTaskResponse Source # 
NFData CancelImportTaskResponse Source # 
type Rep CancelImportTaskResponse Source # 
type Rep CancelImportTaskResponse = D1 * (MetaData "CancelImportTaskResponse" "Network.AWS.EC2.CancelImportTask" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "CancelImportTaskResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_citrsState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_citrsImportTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_citrsPreviousState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_citrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

citrsState :: Lens' CancelImportTaskResponse (Maybe Text) Source #

The current state of the task being canceled.

citrsImportTaskId :: Lens' CancelImportTaskResponse (Maybe Text) Source #

The ID of the task being canceled.

citrsPreviousState :: Lens' CancelImportTaskResponse (Maybe Text) Source #

The current state of the task being canceled.