export_image_tasks
Creates, updates, deletes, gets or lists an export_image_tasks resource.
Overview
| Name | export_image_tasks |
| Type | Resource |
| Id | aws.ec2.export_image_tasks |
Fields
The following fields are returned by SELECT queries:
- describe_export_image_tasks
| Name | Datatype | Description |
|---|---|---|
description | string | A description of the image being exported. |
export_image_task_id | string | The ID of the export image task. |
image_id | string | The ID of the image. |
progress | string | The percent complete of the export image task. |
s3_export_location | string | Information about the destination Amazon S3 bucket. |
status | string | The status of the export image task. The possible values are active, completed, deleting, and deleted. |
status_message | string | The status message for the export image task. |
tags | string | Any tags assigned to the export image task. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_export_image_tasks | select | region | DryRun, Filter, ExportImageTaskId, MaxResults, NextToken | Describes the specified export image tasks or all of your export image tasks. |
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. |
ExportImageTaskId | array | The IDs of the export image tasks. |
Filter | array | Filter tasks using the task-state filter and one of the following values: active, completed, deleting, or deleted. |
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_export_image_tasks
Describes the specified export image tasks or all of your export image tasks.
SELECT
description,
export_image_task_id,
image_id,
progress,
s3_export_location,
status,
status_message,
tags
FROM aws.ec2.export_image_tasks
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Filter = '{{ Filter }}'
AND ExportImageTaskId = '{{ ExportImageTaskId }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;