BucketVersioningArgs

data class BucketVersioningArgs(val bucket: Output<String>? = null, val status: Output<String>? = null) : ConvertibleToJava<BucketVersioningArgs>

Import

OSS Bucket Versioning can be imported using the id, e.g.

$ pulumi import alicloud:oss/bucketVersioning:BucketVersioning example <id>

Constructors

Link copied to clipboard
constructor(bucket: Output<String>? = null, status: Output<String>? = null)

Properties

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

The name of the bucket.

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

A bucket can be in one of the following versioning states: disabled, enabled, or suspended. By default, versioning is disabled for a bucket. Updating the value from Enabled or Suspended to Disabled will result in errors, because OSS does not support returning buckets to an unversioned state. .

Functions

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