Package com.pulumi.aws.dlm.inputs
Class LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder
-
- Enclosing class:
- LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs
public static final class LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs defaults)
-
-
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
-
interval
public LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder interval(@Nullable com.pulumi.core.Output<java.lang.Integer> interval)
-
interval
public LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder interval(java.lang.Integer interval)
-
intervalUnit
public LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder intervalUnit(@Nullable com.pulumi.core.Output<java.lang.String> intervalUnit)
-
intervalUnit
public LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder intervalUnit(java.lang.String intervalUnit)
-
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
-
scripts
public LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder scripts(@Nullable com.pulumi.core.Output<LifecyclePolicyPolicyDetailsScheduleCreateRuleScriptsArgs> scripts)
- Parameters:
scripts- 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.- Returns:
- builder
-
scripts
public LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.Builder scripts(LifecyclePolicyPolicyDetailsScheduleCreateRuleScriptsArgs scripts)
- Parameters:
scripts- 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.- 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
-
build
public LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs build()
-
-