Skip to main content

import_tasks

Creates, updates, deletes, gets or lists an import_tasks resource.

Overview​

Nameimport_tasks
TypeResource
Idaws.ec2.import_tasks

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
cancel_import_taskexecregionCancelReason, DryRun, ImportTaskIdCancels an in-process import virtual machine or import snapshot task.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
CancelReasonstringThe reason for canceling the task.
DryRunbooleanChecks 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.
ImportTaskIdstringThe ID of the import image or import snapshot task to be canceled.

Lifecycle Methods​

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

EXEC aws.ec2.import_tasks.cancel_import_task
@region='{{ region }}' --required,
@CancelReason='{{ CancelReason }}',
@DryRun={{ DryRun }},
@ImportTaskId='{{ ImportTaskId }}'
;