R2BucketLifecycleArgs

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

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, bucketName: Output<String>? = null, jurisdiction: Output<String>? = null, rules: Output<List<R2BucketLifecycleRuleArgs>>? = null)

Properties

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

Account ID

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

Name of the bucket

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

Jurisdiction of the bucket

Link copied to clipboard
val rules: Output<List<R2BucketLifecycleRuleArgs>>? = null

Functions

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