#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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_tags: bool

Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.

tags_to_add: Option<Vec<Tag>>

The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web Services-added lifecycle tags.

variable_tags: Option<Vec<Tag>>

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.

share_rules: Option<Vec<ShareRule>>

The rule for sharing snapshots with other Amazon Web Services accounts.

deprecate_rule: Option<DeprecateRule>

The AMI deprecation rule for the schedule.

Implementations

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.

The creation rule.

The retention rule.

The rule for enabling fast snapshot restore.

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.

The AMI deprecation rule for the schedule.

Creates a new builder-style object to manufacture Schedule

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more