Skip to content

Cancel Import Task

ec2_cancel_import_task R Documentation

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

Description

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

Usage

ec2_cancel_import_task(CancelReason, DryRun, ImportTaskId)

Arguments

CancelReason

The reason for canceling the task.

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.

ImportTaskId

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

Value

A list with the following syntax:

list(
  ImportTaskId = "string",
  PreviousState = "string",
  State = "string"
)

Request syntax

svc$cancel_import_task(
  CancelReason = "string",
  DryRun = TRUE|FALSE,
  ImportTaskId = "string"
)