import_snapshot_tasks
Creates, updates, deletes, gets or lists an import_snapshot_tasks resource.
Overview
| Name | import_snapshot_tasks |
| Type | Resource |
| Id | aws.ec2.import_snapshot_tasks |
Fields
The following fields are returned by SELECT queries:
- describe_import_snapshot_tasks
| Name | Datatype | Description |
|---|---|---|
description | string | A description of the import snapshot task. |
import_task_id | string | The ID of the import snapshot task. |
snapshot_task_detail | string | Describes an import snapshot task. |
tags | string | The tags for the import snapshot task. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_import_snapshot_tasks | select | region | DryRun, Filters, ImportTaskId, MaxResults, NextToken | Describes your import snapshot 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. |
Filters | array | The filters. |
ImportTaskId | array | A list of import snapshot task IDs. |
MaxResults | integer | The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. |
NextToken | string | A token that indicates the next page of results. |
SELECT examples
- describe_import_snapshot_tasks
Describes your import snapshot tasks.
SELECT
description,
import_task_id,
snapshot_task_detail,
tags
FROM aws.ec2.import_snapshot_tasks
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Filters = '{{ Filters }}'
AND ImportTaskId = '{{ ImportTaskId }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;