restore_snapshot_tier
async
¶
restore_snapshot_tier(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
snapshot_id: Optional[SnapshotId] = None,
temporary_restore_days: Optional[
RestoreSnapshotTierRequestTemporaryRestoreDays
] = None,
permanent_restore: Optional[Boolean] = None,
dry_run: Optional[Boolean] = None,
) -> RestoreSnapshotTierResult
Restores an archived Amazon EBS snapshot for use temporarily or permanently, or modifies the restore period or restore type for a snapshot that was previously temporarily restored.
For more information see Restore an archived snapshot and modify the restore period or restore type for a temporarily restored snapshot in the Amazon EBS User Guide.
Parameters:
-
snapshot_id(Optional[SnapshotId], default:None) –The ID of the snapshot to restore.
-
temporary_restore_days(Optional[RestoreSnapshotTierRequestTemporaryRestoreDays], default:None) –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. -
permanent_restore(Optional[Boolean], default:None) –Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot, specify
trueand omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter. -
dry_run(Optional[Boolean], default:None) –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 isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
59138 59139 59140 59141 59142 59143 59144 59145 59146 59147 59148 59149 59150 59151 59152 59153 59154 59155 59156 59157 59158 59159 59160 59161 59162 59163 59164 59165 59166 59167 59168 59169 59170 59171 59172 59173 59174 59175 59176 59177 59178 59179 59180 59181 59182 59183 59184 59185 59186 59187 59188 59189 59190 59191 59192 59193 59194 59195 | |