Skip to content

Cancel Export Task

ec2_cancel_export_task R Documentation

Cancels an active export task

Description

Cancels an active export task. The request removes all artifacts of the export, including any partially-created Amazon S3 objects. If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.

Usage

ec2_cancel_export_task(ExportTaskId)

Arguments

ExportTaskId

[required] The ID of the export task. This is the ID returned by the create_instance_export_task and export_image operations.

Value

An empty list.

Request syntax

svc$cancel_export_task(
  ExportTaskId = "string"
)