public static interface CfnLifecyclePolicy.CreateRuleProperty
You must specify either a Cron expression or an interval, interval unit, and start time. You cannot specify both.
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnLifecyclePolicy.CreateRuleProperty.Builder
A builder for
CfnLifecyclePolicy.CreateRuleProperty |
static class |
CfnLifecyclePolicy.CreateRuleProperty.Jsii$Proxy
An implementation for
CfnLifecyclePolicy.CreateRuleProperty |
Modifier and Type | Method and Description |
---|---|
static CfnLifecyclePolicy.CreateRuleProperty.Builder |
builder() |
default java.lang.String |
getCronExpression()
The schedule, as a Cron expression.
|
default java.lang.Number |
getInterval()
The interval between snapshots.
|
default java.lang.String |
getIntervalUnit()
The interval unit.
|
default java.lang.String |
getLocation()
Specifies the destination for snapshots created by the policy.
|
default java.util.List<java.lang.String> |
getTimes()
The time, in UTC, to start the operation.
|
default java.lang.String getCronExpression()
The schedule interval must be between 1 hour and 1 year. For more information, see Cron expressions in the Amazon CloudWatch User Guide .
default java.lang.Number getInterval()
The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.
default java.lang.String getIntervalUnit()
default java.lang.String getLocation()
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 AWS 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.
default java.util.List<java.lang.String> getTimes()
The operation occurs within a one-hour window following the specified time. If you do not specify a time, Amazon DLM selects a time within the next 24 hours.
static CfnLifecyclePolicy.CreateRuleProperty.Builder builder()