#[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
impl StructuralPartialEq for RestoreSnapshotTierInput
Auto Trait Implementations§
impl Freeze for RestoreSnapshotTierInput
impl RefUnwindSafe for RestoreSnapshotTierInput
impl Send for RestoreSnapshotTierInput
impl Sync for RestoreSnapshotTierInput
impl Unpin for RestoreSnapshotTierInput
impl UnwindSafe for RestoreSnapshotTierInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more