Skip to main content

import_snapshot_tasks

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

Overview

Nameimport_snapshot_tasks
TypeResource
Idaws.ec2.import_snapshot_tasks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringA description of the import snapshot task.
import_task_idstringThe ID of the import snapshot task.
snapshot_task_detailstringDescribes an import snapshot task.
tagsstringThe tags for the import snapshot task.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_import_snapshot_tasksselectregionDryRun, Filters, ImportTaskId, MaxResults, NextTokenDescribes 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
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.
FiltersarrayThe filters.
ImportTaskIdarrayA list of import snapshot task IDs.
MaxResultsintegerThe maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.
NextTokenstringA token that indicates the next page of results.

SELECT examples

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 }}'
;