Condition to apply a lock rule to an object for how long in seconds.
maxAgeSeconds: number
type: "Age"
R2LockRuleDateConditionobject {date, type}
Condition to apply a lock rule to an object until a specific date.
date: string
formatdate-time
type: "Date"
R2LockRuleIndefiniteConditionobject {type}
Condition to apply a lock rule indefinitely.
type: "Indefinite"
enabled: boolean
Whether or not this rule is in effect.
prefix: optional string
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.