Class LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder

    • Method Detail

      • cronExpression

        public LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder cronExpression​(@Nullable
                                                                                         com.pulumi.core.Output<java.lang.String> cronExpression)
        Parameters:
        cronExpression - 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).
        Returns:
        builder
      • cronExpression

        public LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder cronExpression​(java.lang.String cronExpression)
        Parameters:
        cronExpression - 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).
        Returns:
        builder
      • location

        public LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder location​(@Nullable
                                                                                   com.pulumi.core.Output<java.lang.String> location)
        Parameters:
        location - 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`.
        Returns:
        builder
      • location

        public LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder location​(java.lang.String location)
        Parameters:
        location - 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`.
        Returns:
        builder
      • times

        public LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder times​(@Nullable
                                                                                com.pulumi.core.Output<java.lang.String> times)
        Parameters:
        times - 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.
        Returns:
        builder
      • times

        public LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder times​(java.lang.String times)
        Parameters:
        times - 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.
        Returns:
        builder