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

Copyright(c) 2013-2015 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.

See: AWS API Reference for CancelImportTask.

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:

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:

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.