R2Bucket Lifecycle Args
data class R2BucketLifecycleArgs(val accountId: Output<String>? = null, val bucketName: Output<String>? = null, val jurisdiction: Output<String>? = null, val rules: Output<List<R2BucketLifecycleRuleArgs>>? = null) : ConvertibleToJava<R2BucketLifecycleArgs>
Example Usage
resources:
exampleR2BucketLifecycle:
type: cloudflare:R2BucketLifecycle
name: example_r2_bucket_lifecycle
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
bucketName: example-bucket
rules:
- id: Expire all objects older than 24 hours
conditions:
prefix: prefix
enabled: true
abort_multipart_uploads_transition:
condition:
maxAge: 0
type: Age
delete_objects_transition:
condition:
maxAge: 0
type: Age
storage_class_transitions:
- condition:
maxAge: 0
type: Age
storageClass: InfrequentAccess
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(accountId: Output<String>? = null, bucketName: Output<String>? = null, jurisdiction: Output<String>? = null, rules: Output<List<R2BucketLifecycleRuleArgs>>? = null)