CancelImportTask - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

CancelImportTask

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

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

CancelReason

The reason for canceling the task.

Type: String

Required: No

DryRun

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.

Type: Boolean

Required: No

ImportTaskId

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

Type: String

Required: No

Response Elements

The following elements are returned by the service.

importTaskId

The ID of the task being canceled.

Type: String

previousState

The current state of the task being canceled.

Type: String

requestId

The ID of the request.

Type: String

state

The current state of the task being canceled.

Type: String

Errors

For information about the errors that are common to all actions, see Common client error codes.