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.DefaultObjectAccessControlto 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",
},
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.Storage
Assembly: Pulumi.Gcp.dll
Syntax
public class DefaultObjectACL : CustomResource
Constructors
View SourceDefaultObjectACL(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 SourceBucket
The name of the bucket it applies to.
Declaration
public Output<string> Bucket { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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 SourceGet(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 |