#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Schedule
Implementations
sourceimpl Builder
impl Builder
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
Appends an item to tags_to_add
.
To override the contents of this collection use set_tags_to_add
.
The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web Services-added lifecycle tags.
The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web Services-added lifecycle tags.
Appends an item to variable_tags
.
To override the contents of this collection use set_variable_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.
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, input: CreateRule) -> Self
pub fn create_rule(self, input: CreateRule) -> Self
The creation rule.
sourcepub fn set_create_rule(self, input: Option<CreateRule>) -> Self
pub fn set_create_rule(self, input: Option<CreateRule>) -> Self
The creation rule.
sourcepub fn retain_rule(self, input: RetainRule) -> Self
pub fn retain_rule(self, input: RetainRule) -> Self
The retention rule.
sourcepub fn set_retain_rule(self, input: Option<RetainRule>) -> Self
pub fn set_retain_rule(self, input: Option<RetainRule>) -> Self
The retention rule.
sourcepub fn fast_restore_rule(self, input: FastRestoreRule) -> Self
pub fn fast_restore_rule(self, input: FastRestoreRule) -> Self
The rule for enabling fast snapshot restore.
sourcepub fn set_fast_restore_rule(self, input: Option<FastRestoreRule>) -> Self
pub fn set_fast_restore_rule(self, input: Option<FastRestoreRule>) -> Self
The rule for enabling fast snapshot restore.
sourcepub fn cross_region_copy_rules(self, input: CrossRegionCopyRule) -> Self
pub fn cross_region_copy_rules(self, input: CrossRegionCopyRule) -> Self
Appends an item to cross_region_copy_rules
.
To override the contents of this collection use set_cross_region_copy_rules
.
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.
sourcepub fn set_cross_region_copy_rules(
self,
input: Option<Vec<CrossRegionCopyRule>>
) -> Self
pub fn set_cross_region_copy_rules(
self,
input: Option<Vec<CrossRegionCopyRule>>
) -> Self
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.
Appends an item to share_rules
.
To override the contents of this collection use set_share_rules
.
The rule for sharing snapshots with other Amazon Web Services accounts.
The rule for sharing snapshots with other Amazon Web Services accounts.
sourcepub fn deprecate_rule(self, input: DeprecateRule) -> Self
pub fn deprecate_rule(self, input: DeprecateRule) -> Self
The AMI deprecation rule for the schedule.
sourcepub fn set_deprecate_rule(self, input: Option<DeprecateRule>) -> Self
pub fn set_deprecate_rule(self, input: Option<DeprecateRule>) -> Self
The AMI deprecation rule for the schedule.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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