Struct aws_sdk_dlm::types::CreateRule  
source · #[non_exhaustive]pub struct CreateRule { /* private fields */ }Expand description
[Snapshot and AMI policies only] Specifies when the policy should create snapshots or AMIs.
-  You must specify either CronExpression, or Interval, IntervalUnit, and Times. 
-  If you need to specify an ArchiveRulefor the schedule, then you must specify a creation frequency of at least 28 days.
Implementations§
source§impl CreateRule
 
impl CreateRule
sourcepub fn location(&self) -> Option<&LocationValues>
 
pub fn location(&self) -> Option<&LocationValues>
 [Snapshot policies only] Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify CLOUD. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL. If you omit this parameter, CLOUD is used by default.
If the policy targets resources in an Amazon Web Services Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost.
sourcepub fn interval(&self) -> i32
 
pub fn interval(&self) -> i32
The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.
sourcepub fn interval_unit(&self) -> Option<&IntervalUnitValues>
 
pub fn interval_unit(&self) -> Option<&IntervalUnitValues>
The interval unit.
sourcepub fn times(&self) -> Option<&[String]>
 
pub fn times(&self) -> Option<&[String]>
The time, in UTC, to start the operation. The supported format is hh:mm.
The operation occurs within a one-hour window following the specified time. If you do not specify a time, Amazon Data Lifecycle Manager selects a time within the next 24 hours.
sourcepub fn cron_expression(&self) -> Option<&str>
 
pub fn cron_expression(&self) -> Option<&str>
The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. For more information, see Cron expressions in the Amazon CloudWatch User Guide.
source§impl CreateRule
 
impl CreateRule
sourcepub fn builder() -> CreateRuleBuilder
 
pub fn builder() -> CreateRuleBuilder
Creates a new builder-style object to manufacture CreateRule.
Trait Implementations§
source§impl Clone for CreateRule
 
impl Clone for CreateRule
source§fn clone(&self) -> CreateRule
 
fn clone(&self) -> CreateRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateRule
 
impl Debug for CreateRule
source§impl PartialEq<CreateRule> for CreateRule
 
impl PartialEq<CreateRule> for CreateRule
source§fn eq(&self, other: &CreateRule) -> bool
 
fn eq(&self, other: &CreateRule) -> bool
self and other values to be equal, and is used
by ==.