Interface CfnLifecyclePolicy.CreateRuleProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnLifecyclePolicy.CreateRuleProperty.Jsii$Proxy
Enclosing class:
CfnLifecyclePolicy

@Stability(Stable) public static interface CfnLifecyclePolicy.CreateRuleProperty extends software.amazon.jsii.JsiiSerializable
[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 ArchiveRule for the schedule, then you must specify a creation frequency of at least 28 days.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.dlm.*;
 CreateRuleProperty createRuleProperty = CreateRuleProperty.builder()
         .cronExpression("cronExpression")
         .interval(123)
         .intervalUnit("intervalUnit")
         .location("location")
         .times(List.of("times"))
         .build();
 

See Also: