retentionPolicy

@JvmName(name = "arkyvebwwdiqvpua")
suspend fun retentionPolicy(value: Output<BucketRetentionPolicyArgs>)
@JvmName(name = "jwafjjmrtiyytfil")
suspend fun retentionPolicy(value: BucketRetentionPolicyArgs?)

Parameters

value

The bucket's retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.


@JvmName(name = "pdqojkbrjnwvcaji")
suspend fun retentionPolicy(argument: suspend BucketRetentionPolicyArgsBuilder.() -> Unit)

Parameters

argument

The bucket's retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.