Skip to content

RestoreSnapshotTierRequest

Source code in docs_src/capo_ec2/types/restore_snapshot_tier_request.py
class RestoreSnapshotTierRequest(TypedDict, closed=True):
    snapshot_id: NotRequired["capo_ec2.types.snapshot_id.SnapshotId"]
    """<p>The ID of the snapshot to restore.</p>"""
    temporary_restore_days: NotRequired[
        "capo_ec2.types.restore_snapshot_tier_request_temporary_restore_days.RestoreSnapshotTierRequestTemporaryRestoreDays"
    ]
    """<p>Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period.</p> <p>To temporarily restore an archived snapshot, specify the number of days and omit the <b>PermanentRestore</b> parameter or set it to <code>false</code>.</p>"""
    permanent_restore: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot, specify <code>true</code> and omit the <b>RestoreSnapshotTierRequest$TemporaryRestoreDays</b> parameter.</p>"""
    dry_run: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"""

dry_run instance-attribute

dry_run: NotRequired[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.

permanent_restore instance-attribute

permanent_restore: NotRequired[Boolean]

Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot, specify true and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.

snapshot_id instance-attribute

snapshot_id: NotRequired[SnapshotId]

The ID of the snapshot to restore.

temporary_restore_days instance-attribute

temporary_restore_days: NotRequired[RestoreSnapshotTierRequestTemporaryRestoreDays]

Specifies the number of days for which to temporarily restore an archived snapshot. Required for temporary restores only. The snapshot will be automatically re-archived after this period.

To temporarily restore an archived snapshot, specify the number of days and omit the PermanentRestore parameter or set it to false.