#[non_exhaustive]pub struct RestoreSnapshotTierInput {
pub snapshot_id: Option<String>,
pub temporary_restore_days: Option<i32>,
pub permanent_restore: Option<bool>,
pub dry_run: Option<bool>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.snapshot_id: Option<String>
The ID of the snapshot to restore.
temporary_restore_days: Option<i32>
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: Option<bool>
Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot, specify true
and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
dry_run: Option<bool>
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
.
Implementations§
source§impl RestoreSnapshotTierInput
impl RestoreSnapshotTierInput
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The ID of the snapshot to restore.
sourcepub fn temporary_restore_days(&self) -> Option<i32>
pub fn temporary_restore_days(&self) -> Option<i32>
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
.
sourcepub fn permanent_restore(&self) -> Option<bool>
pub fn permanent_restore(&self) -> Option<bool>
Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot, specify true
and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
source§impl RestoreSnapshotTierInput
impl RestoreSnapshotTierInput
sourcepub fn builder() -> RestoreSnapshotTierInputBuilder
pub fn builder() -> RestoreSnapshotTierInputBuilder
Creates a new builder-style object to manufacture RestoreSnapshotTierInput
.
Trait Implementations§
source§impl Clone for RestoreSnapshotTierInput
impl Clone for RestoreSnapshotTierInput
source§fn clone(&self) -> RestoreSnapshotTierInput
fn clone(&self) -> RestoreSnapshotTierInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RestoreSnapshotTierInput
impl Debug for RestoreSnapshotTierInput
source§impl PartialEq for RestoreSnapshotTierInput
impl PartialEq for RestoreSnapshotTierInput
source§fn eq(&self, other: &RestoreSnapshotTierInput) -> bool
fn eq(&self, other: &RestoreSnapshotTierInput) -> bool
self
and other
values to be equal, and is used
by ==
.