Bucket
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());
}
}
Content copied to clipboard
Import
OSS bucket can be imported using the bucket name, e.g.
$ pulumi import alicloud:oss/bucket:Bucket bucket bucket-12345678
Content copied to clipboard
Properties
Link copied to clipboard
The canned ACL to apply. Can be "private", "public-read" and "public-read-write". Defaults to "private".
Link copied to clipboard
A rule of Cross-Origin Resource Sharing (documented below). The items of core rule are no more than 10 for every OSS bucket.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A configuration of object lifecycle management (documented below).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The redundancy type to enable. Can be "LRS", and "ZRS". Defaults to "LRS".
Link copied to clipboard
Link copied to clipboard
The storage class to apply. Can be "Standard", "IA" and "Archive". Defaults to "Standard".
Link copied to clipboard
Link copied to clipboard