Struct aws_sdk_ec2::input::RestoreSnapshotTierInput
source · #[non_exhaustive]pub struct RestoreSnapshotTierInput { /* private fields */ }
Implementations§
source§impl RestoreSnapshotTierInput
impl RestoreSnapshotTierInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreSnapshotTier, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreSnapshotTier, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<RestoreSnapshotTier
>
Examples found in repository?
src/client.rs (line 75836)
75822 75823 75824 75825 75826 75827 75828 75829 75830 75831 75832 75833 75834 75835 75836 75837 75838 75839 75840 75841 75842 75843 75844 75845 75846 75847 75848 75849 75850 75851 75852 75853 75854 75855 75856 75857 75858 75859 75860 75861 75862 75863 75864
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RestoreSnapshotTier,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::RestoreSnapshotTierError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::RestoreSnapshotTierOutput,
aws_smithy_http::result::SdkError<crate::error::RestoreSnapshotTierError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RestoreSnapshotTierInput
.
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.
Trait Implementations§
source§impl Clone for RestoreSnapshotTierInput
impl Clone for RestoreSnapshotTierInput
source§fn clone(&self) -> RestoreSnapshotTierInput
fn clone(&self) -> RestoreSnapshotTierInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more