import_image_tasks
Creates, updates, deletes, gets or lists an import_image_tasks resource.
Overview
| Name | import_image_tasks |
| Type | Resource |
| Id | aws.ec2.import_image_tasks |
Fields
The following fields are returned by SELECT queries:
- describe_import_image_tasks
| Name | Datatype | Description |
|---|---|---|
architecture | string | The architecture of the virtual machine. Valid values: i386 | x86_64 | arm64 |
boot_mode | string | The boot mode of the virtual machine. |
description | string | A description of the import task. |
encrypted | boolean | Indicates whether the image is encrypted. |
hypervisor | string | The target hypervisor for the import task. Valid values: xen |
image_id | string | The ID of the Amazon Machine Image (AMI) of the imported virtual machine. |
import_task_id | string | The ID of the import image task. |
kms_key_id | string | The identifier for the KMS key that was used to create the encrypted image. |
license_specifications | string | The ARNs of the license configurations that are associated with the import image task. |
license_type | string | The license type of the virtual machine. |
platform | string | The description string for the import image task. |
progress | string | The percentage of progress of the import image task. |
snapshot_details | string | Information about the snapshots. |
status | string | A brief status for the import image task. |
status_message | string | A descriptive status message for the import image task. |
tags | string | The tags for the import image task. |
usage_operation | string | The usage operation value. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_import_image_tasks | select | region | DryRun, Filters, ImportTaskId, MaxResults, NextToken | Displays details about an import virtual machine or import snapshot tasks that are already created. |
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) |
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. |
Filters | array | Filter tasks using the task-state filter and one of the following values: active, completed, deleting, or deleted. |
ImportTaskId | array | The IDs of the import image tasks. |
MaxResults | integer | The maximum number of results to return in a single call. |
NextToken | string | A token that indicates the next page of results. |
SELECT examples
- describe_import_image_tasks
Displays details about an import virtual machine or import snapshot tasks that are already created.
SELECT
architecture,
boot_mode,
description,
encrypted,
hypervisor,
image_id,
import_task_id,
kms_key_id,
license_specifications,
license_type,
platform,
progress,
snapshot_details,
status,
status_message,
tags,
usage_operation
FROM aws.ec2.import_image_tasks
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Filters = '{{ Filters }}'
AND ImportTaskId = '{{ ImportTaskId }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;