R2BucketLockRuleArgs

data class R2BucketLockRuleArgs(val condition: Output<R2BucketLockRuleConditionArgs>, val enabled: Output<Boolean>, val id: Output<String>, val prefix: Output<String>? = null) : ConvertibleToJava<R2BucketLockRuleArgs>

Constructors

Link copied to clipboard
constructor(condition: Output<R2BucketLockRuleConditionArgs>, enabled: Output<Boolean>, id: Output<String>, prefix: Output<String>? = null)

Properties

Link copied to clipboard

Condition to apply a lock rule to an object for how long in seconds

Link copied to clipboard
val enabled: Output<Boolean>

Whether or not this rule is in effect

Link copied to clipboard
val id: Output<String>

Unique identifier for this rule

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

Rule will only apply to objects/uploads in the bucket that start with the given prefix, an empty prefix can be provided to scope rule to all objects/uploads

Functions

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