Show / Hide Table of Contents

Class DefaultObjectACL

Authoritatively manages the default object ACLs for a Google Cloud Storage bucket without managing the bucket itself.

Note that for each object, its creator will have the "OWNER" role in addition to the default ACL that has been defined.

For more information see the official documentation and API.

Want fine-grained control over default object ACLs? Use gcp.storage.DefaultObjectAccessControl to control individual role entity pairs.

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var image_store = new Gcp.Storage.Bucket("image-store", new Gcp.Storage.BucketArgs
    {
        Location = "EU",
    });
    var image_store_default_acl = new Gcp.Storage.DefaultObjectACL("image-store-default-acl", new Gcp.Storage.DefaultObjectACLArgs
    {
        Bucket = image_store.Name,
        RoleEntities = 
        {
            "OWNER:user-my.email@gmail.com",
            "READER:group-mygroup",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
DefaultObjectACL
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Storage
Assembly: Pulumi.Gcp.dll
Syntax
public class DefaultObjectACL : CustomResource

Constructors

View Source

DefaultObjectACL(String, DefaultObjectACLArgs, CustomResourceOptions)

Create a DefaultObjectACL resource with the given unique name, arguments, and options.

Declaration
public DefaultObjectACL(string name, DefaultObjectACLArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

DefaultObjectACLArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Bucket

The name of the bucket it applies to.

Declaration
public Output<string> Bucket { get; }
Property Value
Type Description
Output<System.String>
View Source

RoleEntities

List of role/entity pairs in the form ROLE:entity. See GCS Object ACL documentation for more details. Omitting the field is the same as providing an empty list.

Declaration
public Output<ImmutableArray<string>> RoleEntities { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>

Methods

View Source

Get(String, Input<String>, DefaultObjectACLState, CustomResourceOptions)

Get an existing DefaultObjectACL resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static DefaultObjectACL Get(string name, Input<string> id, DefaultObjectACLState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

DefaultObjectACLState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
DefaultObjectACL
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.