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

Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.CancelImportTask

Contents

Description

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

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CancelImportTask.html

Synopsis

Request

Request constructor

cancelImportTask :: CancelImportTask Source

CancelImportTask constructor.

The fields accessible through corresponding lenses are:

Request lenses

citCancelReason :: Lens' CancelImportTask (Maybe Text) Source

The reason for canceling the task.

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.

citImportTaskId :: Lens' CancelImportTask (Maybe Text) Source

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

Response

Response constructor

Response lenses

citrImportTaskId :: Lens' CancelImportTaskResponse (Maybe Text) Source

The ID of the task being canceled.

citrPreviousState :: Lens' CancelImportTaskResponse (Maybe Text) Source

The current state of the task being canceled.

citrState :: Lens' CancelImportTaskResponse (Maybe Text) Source

The current state of the task being canceled.