Class LifecyclePolicyPolicyDetailsScheduleCreateRule


  • public final class LifecyclePolicyPolicyDetailsScheduleCreateRule
    extends java.lang.Object
    • 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.