LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs

data class LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs(val cronExpression: Output<String>? = null, val interval: Output<Int>? = null, val intervalUnit: Output<String>? = null, val location: Output<String>? = null, val times: Output<String>? = null) : ConvertibleToJava<LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs>

Constructors

constructor(cronExpression: Output<String>? = null, interval: Output<Int>? = null, intervalUnit: Output<String>? = null, location: Output<String>? = null, times: Output<String>? = null)

Properties

Link copied to clipboard
val cronExpression: Output<String>? = null

The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. Conflicts with interval, interval_unit, and times.

Link copied to clipboard
val interval: Output<Int>? = null
Link copied to clipboard
val intervalUnit: Output<String>? = null
Link copied to clipboard
val location: Output<String>? = null

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.

Link copied to clipboard
val times: Output<String>? = null

A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1. Conflicts with cron_expression. Must be set if interval is set.

Functions

Link copied to clipboard
open override fun toJava(): LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs