Struct aws_sdk_ec2::input::RestoreSnapshotTierInput
source · [−]#[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
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreSnapshotTier, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreSnapshotTier, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<RestoreSnapshotTier
>
Creates a new builder-style object to manufacture RestoreSnapshotTierInput
The ID of the snapshot to restore.
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
.
Indicates whether to permanently restore an archived snapshot. To permanently restore an archived snapshot, specify true
and omit the RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RestoreSnapshotTierInput
impl Send for RestoreSnapshotTierInput
impl Sync for RestoreSnapshotTierInput
impl Unpin for RestoreSnapshotTierInput
impl UnwindSafe for RestoreSnapshotTierInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more