import_tasks
Creates, updates, deletes, gets or lists an import_tasks resource.
Overview​
| Name | import_tasks |
| Type | Resource |
| Id | aws.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
cancel_import_task | exec | region | CancelReason, DryRun, ImportTaskId | Cancels 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
CancelReason | string | The reason for canceling the task. |
DryRun | boolean | 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 | string | The ID of the import image or import snapshot task to be canceled. |
Lifecycle Methods​
- cancel_import_task
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 }}'
;