BucketArgs

data class BucketArgs(val accessMonitor: Output<BucketAccessMonitorArgs>? = null, val acl: Output<String>? = null, val bucket: Output<String>? = null, val corsRules: Output<List<BucketCorsRuleArgs>>? = null, val forceDestroy: Output<Boolean>? = null, val lifecycleRuleAllowSameActionOverlap: Output<Boolean>? = null, val lifecycleRules: Output<List<BucketLifecycleRuleArgs>>? = null, val logging: Output<BucketLoggingArgs>? = null, val loggingIsenable: Output<Boolean>? = null, val policy: Output<String>? = null, val redundancyType: Output<String>? = null, val refererConfig: Output<BucketRefererConfigArgs>? = null, val serverSideEncryptionRule: Output<BucketServerSideEncryptionRuleArgs>? = null, val storageClass: Output<String>? = null, val tags: Output<Map<String, Any>>? = null, val transferAcceleration: Output<BucketTransferAccelerationArgs>? = null, val versioning: Output<BucketVersioningArgs>? = null, val website: Output<BucketWebsiteArgs>? = null) : ConvertibleToJava<BucketArgs>

Provides a resource to create a oss bucket and set its attribution.

NOTE: The bucket namespace is shared by all users of the OSS system. Please set bucket name as unique as possible. NOTE: Available since v1.2.0.

Import

OSS bucket can be imported using the bucket name, e.g.

$ pulumi import alicloud:oss/bucket:Bucket bucket bucket-12345678

Constructors

Link copied to clipboard
fun BucketArgs(accessMonitor: Output<BucketAccessMonitorArgs>? = null, acl: Output<String>? = null, bucket: Output<String>? = null, corsRules: Output<List<BucketCorsRuleArgs>>? = null, forceDestroy: Output<Boolean>? = null, lifecycleRuleAllowSameActionOverlap: Output<Boolean>? = null, lifecycleRules: Output<List<BucketLifecycleRuleArgs>>? = null, logging: Output<BucketLoggingArgs>? = null, loggingIsenable: Output<Boolean>? = null, policy: Output<String>? = null, redundancyType: Output<String>? = null, refererConfig: Output<BucketRefererConfigArgs>? = null, serverSideEncryptionRule: Output<BucketServerSideEncryptionRuleArgs>? = null, storageClass: Output<String>? = null, tags: Output<Map<String, Any>>? = null, transferAcceleration: Output<BucketTransferAccelerationArgs>? = null, versioning: Output<BucketVersioningArgs>? = null, website: Output<BucketWebsiteArgs>? = null)

Functions

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

Properties

Link copied to clipboard

A access monitor status of a bucket. See access_monitor below.

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

The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".

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

A rule of Cross-Origin Resource Sharing. The items of core rule are no more than 10 for every OSS bucket. See cors_rule below.

Link copied to clipboard
val forceDestroy: Output<Boolean>? = null

A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. Defaults to "false".

Link copied to clipboard

A boolean that indicates lifecycle rules allow prefix overlap.

Link copied to clipboard

A configuration of object lifecycle management. See lifecycle_rule below.

Link copied to clipboard
val logging: Output<BucketLoggingArgs>? = null

A Settings of bucket logging. See logging below.

Link copied to clipboard
val loggingIsenable: Output<Boolean>? = null

The flag of using logging enable container. Defaults true.

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

Json format text of bucket policy bucket policy management.

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

The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".

Link copied to clipboard

The configuration of referer. See referer_config below.

Link copied to clipboard

A configuration of server-side encryption. See server_side_encryption_rule below.

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

The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.

Link copied to clipboard
val tags: Output<Map<String, Any>>? = null

A mapping of tags to assign to the bucket. The items are no more than 10 for a bucket.

Link copied to clipboard

A transfer acceleration status of a bucket. See transfer_acceleration below.

Link copied to clipboard
val versioning: Output<BucketVersioningArgs>? = null

A state of versioning. See versioning below.

Link copied to clipboard
val website: Output<BucketWebsiteArgs>? = null

A website configuration. See website below.