Bucket ACLArgs
data class BucketACLArgs(val bucket: Output<String>? = null, val defaultAcl: Output<String>? = null, val predefinedAcl: Output<String>? = null, val roleEntities: Output<List<String>>? = null) : ConvertibleToJava<BucketACLArgs>
Example Usage
Example creating an ACL on a bucket with one owner, and one reader.
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.storage.Bucket;
import com.pulumi.gcp.storage.BucketArgs;
import com.pulumi.gcp.storage.BucketACL;
import com.pulumi.gcp.storage.BucketACLArgs;
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 image_store = new Bucket("image-store", BucketArgs.builder()
.location("EU")
.build());
var image_store_acl = new BucketACL("image-store-acl", BucketACLArgs.builder()
.bucket(image_store.name())
.roleEntities(
"OWNER:user-my.email@gmail.com",
"READER:group-mygroup")
.build());
}
}
Content copied to clipboard
Import
This resource does not support import.
Constructors
Functions
Properties
Link copied to clipboard
Link copied to clipboard
The canned GCS ACL to apply. Must be set if role_entity
is not.
Link copied to clipboard
List of role/entity pairs in the form ROLE:entity
. See GCS Bucket ACL documentation for more details. Must be set if predefined_acl
is not.