amazonka-ec2-1.6.1: 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 # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

Data CancelImportTask Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

Show CancelImportTask Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

Generic CancelImportTask Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

Associated Types

type Rep CancelImportTask :: Type -> Type #

Hashable CancelImportTask Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

AWSRequest CancelImportTask Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

Associated Types

type Rs CancelImportTask :: Type #

ToHeaders CancelImportTask Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

ToPath CancelImportTask Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

ToQuery CancelImportTask Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

NFData CancelImportTask Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

Methods

rnf :: CancelImportTask -> () #

type Rep CancelImportTask Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

type Rep CancelImportTask = D1 (MetaData "CancelImportTask" "Network.AWS.EC2.CancelImportTask" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "CancelImportTask'" PrefixI True) (S1 (MetaSel (Just "_citCancelReason") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_citImportTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_citDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))
type Rs CancelImportTask Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

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 # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

Data CancelImportTaskResponse Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

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 # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

Show CancelImportTaskResponse Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

Generic CancelImportTaskResponse Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

Associated Types

type Rep CancelImportTaskResponse :: Type -> Type #

NFData CancelImportTaskResponse Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

type Rep CancelImportTaskResponse Source # 
Instance details

Defined in Network.AWS.EC2.CancelImportTask

type Rep CancelImportTaskResponse = D1 (MetaData "CancelImportTaskResponse" "Network.AWS.EC2.CancelImportTask" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "CancelImportTaskResponse'" PrefixI True) ((S1 (MetaSel (Just "_citrsState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_citrsImportTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_citrsPreviousState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.