amazonka-ec2-1.4.5: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 #

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 #

Contains the parameters for CancelImportTask.

See: cancelImportTask smart constructor.

Instances

Eq CancelImportTask # 
Data CancelImportTask # 

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 # 
Show CancelImportTask # 
Generic CancelImportTask # 
Hashable CancelImportTask # 
NFData CancelImportTask # 

Methods

rnf :: CancelImportTask -> () #

AWSRequest CancelImportTask # 
ToQuery CancelImportTask # 
ToPath CancelImportTask # 
ToHeaders CancelImportTask # 
type Rep CancelImportTask # 
type Rep CancelImportTask = D1 (MetaData "CancelImportTask" "Network.AWS.EC2.CancelImportTask" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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 # 

Request Lenses

citCancelReason :: Lens' CancelImportTask (Maybe Text) #

The reason for canceling the task.

citImportTaskId :: Lens' CancelImportTask (Maybe Text) #

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

citDryRun :: Lens' CancelImportTask (Maybe Bool) #

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 #

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 #

Contains the output for CancelImportTask.

See: cancelImportTaskResponse smart constructor.

Instances

Eq CancelImportTaskResponse # 
Data CancelImportTaskResponse # 

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 # 
Show CancelImportTaskResponse # 
Generic CancelImportTaskResponse # 
NFData CancelImportTaskResponse # 
type Rep CancelImportTaskResponse # 
type Rep CancelImportTaskResponse = D1 (MetaData "CancelImportTaskResponse" "Network.AWS.EC2.CancelImportTask" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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 DecidedUnpack) (Rec0 Int)))))

Response Lenses

citrsState :: Lens' CancelImportTaskResponse (Maybe Text) #

The current state of the task being canceled.

citrsImportTaskId :: Lens' CancelImportTaskResponse (Maybe Text) #

The ID of the task being canceled.

citrsPreviousState :: Lens' CancelImportTaskResponse (Maybe Text) #

The current state of the task being canceled.

citrsResponseStatus :: Lens' CancelImportTaskResponse Int #

  • - | The response status code.