#[non_exhaustive]pub struct AwsBackupBackupPlanRuleDetails {
pub target_backup_vault: Option<String>,
pub start_window_minutes: Option<i64>,
pub schedule_expression: Option<String>,
pub rule_name: Option<String>,
pub rule_id: Option<String>,
pub enable_continuous_backup: Option<bool>,
pub completion_window_minutes: Option<i64>,
pub copy_actions: Option<Vec<AwsBackupBackupPlanRuleCopyActionsDetails>>,
pub lifecycle: Option<AwsBackupBackupPlanLifecycleDetails>,
}
Expand description
Provides details about an array of BackupRule
objects, each of which specifies a scheduled task that is used to back up a selection of resources.
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.target_backup_vault: Option<String>
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the Amazon Web Services account used to create them and the Amazon Web Services Region where they are created. They consist of letters, numbers, and hyphens.
start_window_minutes: Option<i64>
A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully.
schedule_expression: Option<String>
A cron expression in UTC specifying when Backup initiates a backup job.
rule_name: Option<String>
A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
rule_id: Option<String>
Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
enable_continuous_backup: Option<bool>
Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).
completion_window_minutes: Option<i64>
A value in minutes after a backup job is successfully started before it must be completed, or it is canceled by Backup.
copy_actions: Option<Vec<AwsBackupBackupPlanRuleCopyActionsDetails>>
An array of CopyAction
objects, each of which contains details of the copy operation.
lifecycle: Option<AwsBackupBackupPlanLifecycleDetails>
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. If you do not specify a lifecycle, Backup applies the lifecycle policy of the source backup to the destination backup.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
Implementations§
source§impl AwsBackupBackupPlanRuleDetails
impl AwsBackupBackupPlanRuleDetails
sourcepub fn target_backup_vault(&self) -> Option<&str>
pub fn target_backup_vault(&self) -> Option<&str>
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the Amazon Web Services account used to create them and the Amazon Web Services Region where they are created. They consist of letters, numbers, and hyphens.
sourcepub fn start_window_minutes(&self) -> Option<i64>
pub fn start_window_minutes(&self) -> Option<i64>
A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully.
sourcepub fn schedule_expression(&self) -> Option<&str>
pub fn schedule_expression(&self) -> Option<&str>
A cron expression in UTC specifying when Backup initiates a backup job.
sourcepub fn rule_name(&self) -> Option<&str>
pub fn rule_name(&self) -> Option<&str>
A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
sourcepub fn rule_id(&self) -> Option<&str>
pub fn rule_id(&self) -> Option<&str>
Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
sourcepub fn enable_continuous_backup(&self) -> Option<bool>
pub fn enable_continuous_backup(&self) -> Option<bool>
Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).
sourcepub fn completion_window_minutes(&self) -> Option<i64>
pub fn completion_window_minutes(&self) -> Option<i64>
A value in minutes after a backup job is successfully started before it must be completed, or it is canceled by Backup.
sourcepub fn copy_actions(&self) -> &[AwsBackupBackupPlanRuleCopyActionsDetails]
pub fn copy_actions(&self) -> &[AwsBackupBackupPlanRuleCopyActionsDetails]
An array of CopyAction
objects, each of which contains details of the copy operation.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .copy_actions.is_none()
.
sourcepub fn lifecycle(&self) -> Option<&AwsBackupBackupPlanLifecycleDetails>
pub fn lifecycle(&self) -> Option<&AwsBackupBackupPlanLifecycleDetails>
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. If you do not specify a lifecycle, Backup applies the lifecycle policy of the source backup to the destination backup.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
source§impl AwsBackupBackupPlanRuleDetails
impl AwsBackupBackupPlanRuleDetails
sourcepub fn builder() -> AwsBackupBackupPlanRuleDetailsBuilder
pub fn builder() -> AwsBackupBackupPlanRuleDetailsBuilder
Creates a new builder-style object to manufacture AwsBackupBackupPlanRuleDetails
.
Trait Implementations§
source§impl Clone for AwsBackupBackupPlanRuleDetails
impl Clone for AwsBackupBackupPlanRuleDetails
source§fn clone(&self) -> AwsBackupBackupPlanRuleDetails
fn clone(&self) -> AwsBackupBackupPlanRuleDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AwsBackupBackupPlanRuleDetails
impl PartialEq for AwsBackupBackupPlanRuleDetails
source§fn eq(&self, other: &AwsBackupBackupPlanRuleDetails) -> bool
fn eq(&self, other: &AwsBackupBackupPlanRuleDetails) -> bool
self
and other
values to be equal, and is used
by ==
.