Skip to main content

snapshot_tier_status

Creates, updates, deletes, gets or lists a snapshot_tier_status resource.

Overview

Namesnapshot_tier_status
TypeResource
Idaws.ec2.snapshot_tier_status

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
archival_complete_timestringThe date and time when the last archive process was completed.
last_tiering_operation_statusstringThe status of the last archive or restore process.
last_tiering_operation_status_detailstringA message describing the status of the last archive or restore process.
last_tiering_progressintegerThe progress of the last archive or restore process, as a percentage.
last_tiering_start_timestringThe date and time when the last archive or restore process was started.
owner_idstringThe ID of the Amazon Web Services account that owns the snapshot.
restore_expiry_timestringOnly for archived snapshots that are temporarily restored. Indicates the date and time when a temporarily restored snapshot will be automatically re-archived.
snapshot_idstringThe ID of the snapshot.
statusstringThe state of the snapshot.
storage_tierstringThe storage tier in which the snapshot is stored. standard indicates that the snapshot is stored in the standard snapshot storage tier and that it is ready for use. archive indicates that the snapshot is currently archived and that it must be restored before it can be used.
tagsstringThe tags that are assigned to the snapshot.
volume_idstringThe ID of the volume from which the snapshot was created.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_snapshot_tier_statusselectregionFilter, DryRun, NextToken, MaxResultsDescribes the storage tier status of one or more Amazon EBS snapshots.

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.
FilterarrayThe filters. snapshot-id - The snapshot ID. volume-id - The ID of the volume the snapshot is for. last-tiering-operation - The state of the last archive or restore action. (archival-in-progress | archival-completed | archival-failed | permanent-restore-in-progress | permanent-restore-completed | permanent-restore-failed | temporary-restore-in-progress | temporary-restore-completed | temporary-restore-failed)
MaxResultsintegerThe maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
NextTokenstringThe token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

SELECT examples

Describes the storage tier status of one or more Amazon EBS snapshots.

SELECT
archival_complete_time,
last_tiering_operation_status,
last_tiering_operation_status_detail,
last_tiering_progress,
last_tiering_start_time,
owner_id,
restore_expiry_time,
snapshot_id,
status,
storage_tier,
tags,
volume_id
FROM aws.ec2.snapshot_tier_status
WHERE region = '{{ region }}' -- required
AND Filter = '{{ Filter }}'
AND DryRun = '{{ DryRun }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
;