Bucket Args
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.
Example Usage
Private Bucket
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.oss.Bucket;
import com.pulumi.alicloud.oss.BucketArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var bucket_acl = new Bucket("bucket-acl", BucketArgs.builder()
.acl("private")
.bucket("bucket-170309-acl")
.build());
}
}
Import
OSS bucket can be imported using the bucket name, e.g.
$ pulumi import alicloud:oss/bucket:Bucket bucket bucket-12345678
Constructors
Functions
Properties
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
A configuration of object lifecycle management (documented below).
The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
The configuration of referer (documented below).
The storage class to apply. Can be "Standard", "IA" and "Archive". Defaults to "Standard".