#[non_exhaustive]pub struct UpdateRecoveryPointLifecycleInput { /* private fields */ }
Implementations§
source§impl UpdateRecoveryPointLifecycleInput
impl UpdateRecoveryPointLifecycleInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateRecoveryPointLifecycle, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateRecoveryPointLifecycle, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateRecoveryPointLifecycle
>
Examples found in repository?
7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateRecoveryPointLifecycle,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateRecoveryPointLifecycleError>,
> {
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::UpdateRecoveryPointLifecycleOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateRecoveryPointLifecycleError>,
> {
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 UpdateRecoveryPointLifecycleInput
.
source§impl UpdateRecoveryPointLifecycleInput
impl UpdateRecoveryPointLifecycleInput
sourcepub fn backup_vault_name(&self) -> Option<&str>
pub fn backup_vault_name(&self) -> Option<&str>
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
sourcepub fn recovery_point_arn(&self) -> Option<&str>
pub fn recovery_point_arn(&self) -> Option<&str>
An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
sourcepub fn lifecycle(&self) -> Option<&Lifecycle>
pub fn lifecycle(&self) -> Option<&Lifecycle>
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Trait Implementations§
source§impl Clone for UpdateRecoveryPointLifecycleInput
impl Clone for UpdateRecoveryPointLifecycleInput
source§fn clone(&self) -> UpdateRecoveryPointLifecycleInput
fn clone(&self) -> UpdateRecoveryPointLifecycleInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more