Struct aws_sdk_dlm::model::Schedule
source · [−]#[non_exhaustive]pub struct Schedule {
pub name: Option<String>,
pub copy_tags: bool,
pub tags_to_add: Option<Vec<Tag>>,
pub variable_tags: Option<Vec<Tag>>,
pub create_rule: Option<CreateRule>,
pub retain_rule: Option<RetainRule>,
pub fast_restore_rule: Option<FastRestoreRule>,
pub cross_region_copy_rules: Option<Vec<CrossRegionCopyRule>>,
pub share_rules: Option<Vec<ShareRule>>,
pub deprecate_rule: Option<DeprecateRule>,
}
Expand description
Specifies a backup schedule for a snapshot or AMI lifecycle policy.
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.name: Option<String>
The name of the schedule.
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web Services-added lifecycle tags.
A collection of key/value pairs with values determined dynamically when the policy is executed. Keys may be any valid Amazon EC2 tag key. Values must be in one of the two following formats: $(instance-id)
or $(timestamp)
. Variable tags are only valid for EBS Snapshot Management – Instance policies.
create_rule: Option<CreateRule>
The creation rule.
retain_rule: Option<RetainRule>
The retention rule.
fast_restore_rule: Option<FastRestoreRule>
The rule for enabling fast snapshot restore.
cross_region_copy_rules: Option<Vec<CrossRegionCopyRule>>
The rule for cross-Region snapshot copies.
You can only specify cross-Region copy rules for policies that create snapshots in a Region. If the policy creates snapshots on an Outpost, then you cannot copy the snapshots to a Region or to an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
The rule for sharing snapshots with other Amazon Web Services accounts.
deprecate_rule: Option<DeprecateRule>
The AMI deprecation rule for the schedule.
Implementations
sourceimpl Schedule
impl Schedule
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web Services-added lifecycle tags.
A collection of key/value pairs with values determined dynamically when the policy is executed. Keys may be any valid Amazon EC2 tag key. Values must be in one of the two following formats: $(instance-id)
or $(timestamp)
. Variable tags are only valid for EBS Snapshot Management – Instance policies.
sourcepub fn create_rule(&self) -> Option<&CreateRule>
pub fn create_rule(&self) -> Option<&CreateRule>
The creation rule.
sourcepub fn retain_rule(&self) -> Option<&RetainRule>
pub fn retain_rule(&self) -> Option<&RetainRule>
The retention rule.
sourcepub fn fast_restore_rule(&self) -> Option<&FastRestoreRule>
pub fn fast_restore_rule(&self) -> Option<&FastRestoreRule>
The rule for enabling fast snapshot restore.
sourcepub fn cross_region_copy_rules(&self) -> Option<&[CrossRegionCopyRule]>
pub fn cross_region_copy_rules(&self) -> Option<&[CrossRegionCopyRule]>
The rule for cross-Region snapshot copies.
You can only specify cross-Region copy rules for policies that create snapshots in a Region. If the policy creates snapshots on an Outpost, then you cannot copy the snapshots to a Region or to an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
The rule for sharing snapshots with other Amazon Web Services accounts.
sourcepub fn deprecate_rule(&self) -> Option<&DeprecateRule>
pub fn deprecate_rule(&self) -> Option<&DeprecateRule>
The AMI deprecation rule for the schedule.
Trait Implementations
impl StructuralPartialEq for Schedule
Auto Trait Implementations
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnwindSafe for Schedule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more