Package com.pulumi.aws.dlm.outputs
Class LifecyclePolicyPolicyDetailsScheduleCreateRule
- java.lang.Object
-
- com.pulumi.aws.dlm.outputs.LifecyclePolicyPolicyDetailsScheduleCreateRule
-
public final class LifecyclePolicyPolicyDetailsScheduleCreateRule extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLifecyclePolicyPolicyDetailsScheduleCreateRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LifecyclePolicyPolicyDetailsScheduleCreateRule.Builderbuilder()static LifecyclePolicyPolicyDetailsScheduleCreateRule.Builderbuilder(LifecyclePolicyPolicyDetailsScheduleCreateRule defaults)java.util.Optional<java.lang.String>cronExpression()java.util.Optional<java.lang.Integer>interval()java.util.Optional<java.lang.String>intervalUnit()java.util.Optional<java.lang.String>location()java.util.Optional<LifecyclePolicyPolicyDetailsScheduleCreateRuleScripts>scripts()java.util.Optional<java.lang.String>times()
-
-
-
Method Detail
-
cronExpression
public java.util.Optional<java.lang.String> cronExpression()
- Returns:
- The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. Conflicts with `interval`, `intervalUnit`, and `times`. For details on valid Cron expressions, see [here](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-scheduled-rule-pattern.html#eb-cron-expressions).
-
interval
public java.util.Optional<java.lang.Integer> interval()
-
intervalUnit
public java.util.Optional<java.lang.String> intervalUnit()
-
location
public java.util.Optional<java.lang.String> location()
- Returns:
- 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 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. Valid values are `CLOUD` and `OUTPOST_LOCAL`.
-
scripts
public java.util.Optional<LifecyclePolicyPolicyDetailsScheduleCreateRuleScripts> scripts()
- Returns:
- Specifies pre and/or post scripts for a snapshot lifecycle policy that targets instances. Valid only when `resourceType` is INSTANCE. See the `scripts` configuration block.
-
times
public java.util.Optional<java.lang.String> times()
- Returns:
- A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1. Conflicts with `cronExpression`. Must be set if `interval` is set.
-
builder
public static LifecyclePolicyPolicyDetailsScheduleCreateRule.Builder builder()
-
builder
public static LifecyclePolicyPolicyDetailsScheduleCreateRule.Builder builder(LifecyclePolicyPolicyDetailsScheduleCreateRule defaults)
-
-