1. Packages
  2. Scaleway
  3. API Docs
  4. ObjectBucketAcl
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.ObjectBucketAcl

Explore with Pulumi AI

Deprecated: scaleway.index/objectbucketacl.ObjectBucketAcl has been deprecated in favor of scaleway.object/bucketacl.BucketAcl

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const someBucket = new scaleway.object.Bucket("some_bucket", {name: "unique-name"});
const main = new scaleway.object.BucketAcl("main", {
    bucket: mainScalewayObjectBucket.id,
    acl: "private",
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

some_bucket = scaleway.object.Bucket("some_bucket", name="unique-name")
main = scaleway.object.BucketAcl("main",
    bucket=main_scaleway_object_bucket["id"],
    acl="private")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/object"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := object.NewBucket(ctx, "some_bucket", &object.BucketArgs{
			Name: pulumi.String("unique-name"),
		})
		if err != nil {
			return err
		}
		_, err = object.NewBucketAcl(ctx, "main", &object.BucketAclArgs{
			Bucket: pulumi.Any(mainScalewayObjectBucket.Id),
			Acl:    pulumi.String("private"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var someBucket = new Scaleway.Object.Bucket("some_bucket", new()
    {
        Name = "unique-name",
    });

    var main = new Scaleway.Object.BucketAcl("main", new()
    {
        Bucket = mainScalewayObjectBucket.Id,
        Acl = "private",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.object.Bucket;
import com.pulumi.scaleway.object.BucketArgs;
import com.pulumi.scaleway.object.BucketAcl;
import com.pulumi.scaleway.object.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 someBucket = new Bucket("someBucket", BucketArgs.builder()
            .name("unique-name")
            .build());

        var main = new BucketAcl("main", BucketAclArgs.builder()
            .bucket(mainScalewayObjectBucket.id())
            .acl("private")
            .build());

    }
}
Copy
resources:
  someBucket:
    type: scaleway:object:Bucket
    name: some_bucket
    properties:
      name: unique-name
  main:
    type: scaleway:object:BucketAcl
    properties:
      bucket: ${mainScalewayObjectBucket.id}
      acl: private
Copy

For more information, refer to the PutBucketAcl API call documentation.

With Grants

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const main = new scaleway.object.Bucket("main", {name: "your-bucket"});
const mainBucketAcl = new scaleway.object.BucketAcl("main", {
    bucket: main.id,
    accessControlPolicy: {
        grants: [
            {
                grantee: {
                    id: "<project-id>:<project-id>",
                    type: "CanonicalUser",
                },
                permission: "FULL_CONTROL",
            },
            {
                grantee: {
                    id: "<project-id>",
                    type: "CanonicalUser",
                },
                permission: "WRITE",
            },
        ],
        owner: {
            id: "<project-id>",
        },
    },
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.object.Bucket("main", name="your-bucket")
main_bucket_acl = scaleway.object.BucketAcl("main",
    bucket=main.id,
    access_control_policy={
        "grants": [
            {
                "grantee": {
                    "id": "<project-id>:<project-id>",
                    "type": "CanonicalUser",
                },
                "permission": "FULL_CONTROL",
            },
            {
                "grantee": {
                    "id": "<project-id>",
                    "type": "CanonicalUser",
                },
                "permission": "WRITE",
            },
        ],
        "owner": {
            "id": "<project-id>",
        },
    })
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/object"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		main, err := object.NewBucket(ctx, "main", &object.BucketArgs{
			Name: pulumi.String("your-bucket"),
		})
		if err != nil {
			return err
		}
		_, err = object.NewBucketAcl(ctx, "main", &object.BucketAclArgs{
			Bucket: main.ID(),
			AccessControlPolicy: &object.BucketAclAccessControlPolicyArgs{
				Grants: object.BucketAclAccessControlPolicyGrantArray{
					&object.BucketAclAccessControlPolicyGrantArgs{
						Grantee: &object.BucketAclAccessControlPolicyGrantGranteeArgs{
							Id:   pulumi.String("<project-id>:<project-id>"),
							Type: pulumi.String("CanonicalUser"),
						},
						Permission: pulumi.String("FULL_CONTROL"),
					},
					&object.BucketAclAccessControlPolicyGrantArgs{
						Grantee: &object.BucketAclAccessControlPolicyGrantGranteeArgs{
							Id:   pulumi.String("<project-id>"),
							Type: pulumi.String("CanonicalUser"),
						},
						Permission: pulumi.String("WRITE"),
					},
				},
				Owner: &object.BucketAclAccessControlPolicyOwnerArgs{
					Id: pulumi.String("<project-id>"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.Object.Bucket("main", new()
    {
        Name = "your-bucket",
    });

    var mainBucketAcl = new Scaleway.Object.BucketAcl("main", new()
    {
        Bucket = main.Id,
        AccessControlPolicy = new Scaleway.Object.Inputs.BucketAclAccessControlPolicyArgs
        {
            Grants = new[]
            {
                new Scaleway.Object.Inputs.BucketAclAccessControlPolicyGrantArgs
                {
                    Grantee = new Scaleway.Object.Inputs.BucketAclAccessControlPolicyGrantGranteeArgs
                    {
                        Id = "<project-id>:<project-id>",
                        Type = "CanonicalUser",
                    },
                    Permission = "FULL_CONTROL",
                },
                new Scaleway.Object.Inputs.BucketAclAccessControlPolicyGrantArgs
                {
                    Grantee = new Scaleway.Object.Inputs.BucketAclAccessControlPolicyGrantGranteeArgs
                    {
                        Id = "<project-id>",
                        Type = "CanonicalUser",
                    },
                    Permission = "WRITE",
                },
            },
            Owner = new Scaleway.Object.Inputs.BucketAclAccessControlPolicyOwnerArgs
            {
                Id = "<project-id>",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.object.Bucket;
import com.pulumi.scaleway.object.BucketArgs;
import com.pulumi.scaleway.object.BucketAcl;
import com.pulumi.scaleway.object.BucketAclArgs;
import com.pulumi.scaleway.object.inputs.BucketAclAccessControlPolicyArgs;
import com.pulumi.scaleway.object.inputs.BucketAclAccessControlPolicyOwnerArgs;
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 main = new Bucket("main", BucketArgs.builder()
            .name("your-bucket")
            .build());

        var mainBucketAcl = new BucketAcl("mainBucketAcl", BucketAclArgs.builder()
            .bucket(main.id())
            .accessControlPolicy(BucketAclAccessControlPolicyArgs.builder()
                .grants(                
                    BucketAclAccessControlPolicyGrantArgs.builder()
                        .grantee(BucketAclAccessControlPolicyGrantGranteeArgs.builder()
                            .id("<project-id>:<project-id>")
                            .type("CanonicalUser")
                            .build())
                        .permission("FULL_CONTROL")
                        .build(),
                    BucketAclAccessControlPolicyGrantArgs.builder()
                        .grantee(BucketAclAccessControlPolicyGrantGranteeArgs.builder()
                            .id("<project-id>")
                            .type("CanonicalUser")
                            .build())
                        .permission("WRITE")
                        .build())
                .owner(BucketAclAccessControlPolicyOwnerArgs.builder()
                    .id("<project-id>")
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:object:Bucket
    properties:
      name: your-bucket
  mainBucketAcl:
    type: scaleway:object:BucketAcl
    name: main
    properties:
      bucket: ${main.id}
      accessControlPolicy:
        grants:
          - grantee:
              id: <project-id>:<project-id>
              type: CanonicalUser
            permission: FULL_CONTROL
          - grantee:
              id: <project-id>
              type: CanonicalUser
            permission: WRITE
        owner:
          id: <project-id>
Copy

The ACL

Refer to the official canned ACL documentation for more information on the different roles.

The access control policy

The access_control_policy configuration block supports the following arguments:

  • grant - (Required) Set of grant configuration blocks documented below.
  • owner - (Required) Configuration block of the bucket owner’s display name and ID documented below.

The grant

The grant configuration block supports the following arguments:

  • grantee - (Required) Configuration block for the project being granted permissions documented below.
  • permission - (Required) Logging permissions assigned to the grantee for the bucket.

The permission

The following list shows each access policy permissions supported.

READ, WRITE, READ_ACP, WRITE_ACP, FULL_CONTROL

For more information about ACL permissions in the S3 bucket, see ACL permissions.

The owner

The owner configuration block supports the following arguments:

  • id - (Required) The ID of the project owner.
  • display_name - (Optional) The display name of the owner.

the grantee

The grantee configuration block supports the following arguments:

  • id - (Required) The canonical user ID of the grantee.
  • type - (Required) Type of grantee. Valid values: CanonicalUser.

Create ObjectBucketAcl Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ObjectBucketAcl(name: string, args: ObjectBucketAclArgs, opts?: CustomResourceOptions);
@overload
def ObjectBucketAcl(resource_name: str,
                    args: ObjectBucketAclArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def ObjectBucketAcl(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    access_control_policy: Optional[ObjectBucketAclAccessControlPolicyArgs] = None,
                    acl: Optional[str] = None,
                    bucket: Optional[str] = None,
                    expected_bucket_owner: Optional[str] = None,
                    project_id: Optional[str] = None,
                    region: Optional[str] = None)
func NewObjectBucketAcl(ctx *Context, name string, args ObjectBucketAclArgs, opts ...ResourceOption) (*ObjectBucketAcl, error)
public ObjectBucketAcl(string name, ObjectBucketAclArgs args, CustomResourceOptions? opts = null)
public ObjectBucketAcl(String name, ObjectBucketAclArgs args)
public ObjectBucketAcl(String name, ObjectBucketAclArgs args, CustomResourceOptions options)
type: scaleway:ObjectBucketAcl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ObjectBucketAclArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ObjectBucketAclArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ObjectBucketAclArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ObjectBucketAclArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ObjectBucketAclArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ObjectBucketAcl Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ObjectBucketAcl resource accepts the following input properties:

Bucket
This property is required.
Changes to this property will trigger replacement.
string
The bucket's name or regional ID.
AccessControlPolicy Pulumiverse.Scaleway.Inputs.ObjectBucketAclAccessControlPolicy
A configuration block that sets the ACL permissions for an object per grantee documented below.
Acl string
The canned ACL you want to apply to the bucket. Refer to the AWS Canned ACL documentation page to find a list of all the supported canned ACLs.
ExpectedBucketOwner Changes to this property will trigger replacement. string
The project ID of the expected bucket owner.
ProjectId Changes to this property will trigger replacement. string
The project_id you want to attach the resource to
Region Changes to this property will trigger replacement. string
The region in which the bucket should be created.
Bucket
This property is required.
Changes to this property will trigger replacement.
string
The bucket's name or regional ID.
AccessControlPolicy ObjectBucketAclAccessControlPolicyArgs
A configuration block that sets the ACL permissions for an object per grantee documented below.
Acl string
The canned ACL you want to apply to the bucket. Refer to the AWS Canned ACL documentation page to find a list of all the supported canned ACLs.
ExpectedBucketOwner Changes to this property will trigger replacement. string
The project ID of the expected bucket owner.
ProjectId Changes to this property will trigger replacement. string
The project_id you want to attach the resource to
Region Changes to this property will trigger replacement. string
The region in which the bucket should be created.
bucket
This property is required.
Changes to this property will trigger replacement.
String
The bucket's name or regional ID.
accessControlPolicy ObjectBucketAclAccessControlPolicy
A configuration block that sets the ACL permissions for an object per grantee documented below.
acl String
The canned ACL you want to apply to the bucket. Refer to the AWS Canned ACL documentation page to find a list of all the supported canned ACLs.
expectedBucketOwner Changes to this property will trigger replacement. String
The project ID of the expected bucket owner.
projectId Changes to this property will trigger replacement. String
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. String
The region in which the bucket should be created.
bucket
This property is required.
Changes to this property will trigger replacement.
string
The bucket's name or regional ID.
accessControlPolicy ObjectBucketAclAccessControlPolicy
A configuration block that sets the ACL permissions for an object per grantee documented below.
acl string
The canned ACL you want to apply to the bucket. Refer to the AWS Canned ACL documentation page to find a list of all the supported canned ACLs.
expectedBucketOwner Changes to this property will trigger replacement. string
The project ID of the expected bucket owner.
projectId Changes to this property will trigger replacement. string
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. string
The region in which the bucket should be created.
bucket
This property is required.
Changes to this property will trigger replacement.
str
The bucket's name or regional ID.
access_control_policy ObjectBucketAclAccessControlPolicyArgs
A configuration block that sets the ACL permissions for an object per grantee documented below.
acl str
The canned ACL you want to apply to the bucket. Refer to the AWS Canned ACL documentation page to find a list of all the supported canned ACLs.
expected_bucket_owner Changes to this property will trigger replacement. str
The project ID of the expected bucket owner.
project_id Changes to this property will trigger replacement. str
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. str
The region in which the bucket should be created.
bucket
This property is required.
Changes to this property will trigger replacement.
String
The bucket's name or regional ID.
accessControlPolicy Property Map
A configuration block that sets the ACL permissions for an object per grantee documented below.
acl String
The canned ACL you want to apply to the bucket. Refer to the AWS Canned ACL documentation page to find a list of all the supported canned ACLs.
expectedBucketOwner Changes to this property will trigger replacement. String
The project ID of the expected bucket owner.
projectId Changes to this property will trigger replacement. String
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. String
The region in which the bucket should be created.

Outputs

All input properties are implicitly available as output properties. Additionally, the ObjectBucketAcl resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ObjectBucketAcl Resource

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

public static get(name: string, id: Input<ID>, state?: ObjectBucketAclState, opts?: CustomResourceOptions): ObjectBucketAcl
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_control_policy: Optional[ObjectBucketAclAccessControlPolicyArgs] = None,
        acl: Optional[str] = None,
        bucket: Optional[str] = None,
        expected_bucket_owner: Optional[str] = None,
        project_id: Optional[str] = None,
        region: Optional[str] = None) -> ObjectBucketAcl
func GetObjectBucketAcl(ctx *Context, name string, id IDInput, state *ObjectBucketAclState, opts ...ResourceOption) (*ObjectBucketAcl, error)
public static ObjectBucketAcl Get(string name, Input<string> id, ObjectBucketAclState? state, CustomResourceOptions? opts = null)
public static ObjectBucketAcl get(String name, Output<String> id, ObjectBucketAclState state, CustomResourceOptions options)
resources:  _:    type: scaleway:ObjectBucketAcl    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccessControlPolicy Pulumiverse.Scaleway.Inputs.ObjectBucketAclAccessControlPolicy
A configuration block that sets the ACL permissions for an object per grantee documented below.
Acl string
The canned ACL you want to apply to the bucket. Refer to the AWS Canned ACL documentation page to find a list of all the supported canned ACLs.
Bucket Changes to this property will trigger replacement. string
The bucket's name or regional ID.
ExpectedBucketOwner Changes to this property will trigger replacement. string
The project ID of the expected bucket owner.
ProjectId Changes to this property will trigger replacement. string
The project_id you want to attach the resource to
Region Changes to this property will trigger replacement. string
The region in which the bucket should be created.
AccessControlPolicy ObjectBucketAclAccessControlPolicyArgs
A configuration block that sets the ACL permissions for an object per grantee documented below.
Acl string
The canned ACL you want to apply to the bucket. Refer to the AWS Canned ACL documentation page to find a list of all the supported canned ACLs.
Bucket Changes to this property will trigger replacement. string
The bucket's name or regional ID.
ExpectedBucketOwner Changes to this property will trigger replacement. string
The project ID of the expected bucket owner.
ProjectId Changes to this property will trigger replacement. string
The project_id you want to attach the resource to
Region Changes to this property will trigger replacement. string
The region in which the bucket should be created.
accessControlPolicy ObjectBucketAclAccessControlPolicy
A configuration block that sets the ACL permissions for an object per grantee documented below.
acl String
The canned ACL you want to apply to the bucket. Refer to the AWS Canned ACL documentation page to find a list of all the supported canned ACLs.
bucket Changes to this property will trigger replacement. String
The bucket's name or regional ID.
expectedBucketOwner Changes to this property will trigger replacement. String
The project ID of the expected bucket owner.
projectId Changes to this property will trigger replacement. String
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. String
The region in which the bucket should be created.
accessControlPolicy ObjectBucketAclAccessControlPolicy
A configuration block that sets the ACL permissions for an object per grantee documented below.
acl string
The canned ACL you want to apply to the bucket. Refer to the AWS Canned ACL documentation page to find a list of all the supported canned ACLs.
bucket Changes to this property will trigger replacement. string
The bucket's name or regional ID.
expectedBucketOwner Changes to this property will trigger replacement. string
The project ID of the expected bucket owner.
projectId Changes to this property will trigger replacement. string
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. string
The region in which the bucket should be created.
access_control_policy ObjectBucketAclAccessControlPolicyArgs
A configuration block that sets the ACL permissions for an object per grantee documented below.
acl str
The canned ACL you want to apply to the bucket. Refer to the AWS Canned ACL documentation page to find a list of all the supported canned ACLs.
bucket Changes to this property will trigger replacement. str
The bucket's name or regional ID.
expected_bucket_owner Changes to this property will trigger replacement. str
The project ID of the expected bucket owner.
project_id Changes to this property will trigger replacement. str
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. str
The region in which the bucket should be created.
accessControlPolicy Property Map
A configuration block that sets the ACL permissions for an object per grantee documented below.
acl String
The canned ACL you want to apply to the bucket. Refer to the AWS Canned ACL documentation page to find a list of all the supported canned ACLs.
bucket Changes to this property will trigger replacement. String
The bucket's name or regional ID.
expectedBucketOwner Changes to this property will trigger replacement. String
The project ID of the expected bucket owner.
projectId Changes to this property will trigger replacement. String
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. String
The region in which the bucket should be created.

Supporting Types

ObjectBucketAclAccessControlPolicy
, ObjectBucketAclAccessControlPolicyArgs

Owner This property is required. Pulumiverse.Scaleway.Inputs.ObjectBucketAclAccessControlPolicyOwner
Configuration block of the bucket project owner's display organization ID.
Grants List<Pulumiverse.Scaleway.Inputs.ObjectBucketAclAccessControlPolicyGrant>
Owner This property is required. ObjectBucketAclAccessControlPolicyOwner
Configuration block of the bucket project owner's display organization ID.
Grants []ObjectBucketAclAccessControlPolicyGrant
owner This property is required. ObjectBucketAclAccessControlPolicyOwner
Configuration block of the bucket project owner's display organization ID.
grants List<ObjectBucketAclAccessControlPolicyGrant>
owner This property is required. ObjectBucketAclAccessControlPolicyOwner
Configuration block of the bucket project owner's display organization ID.
grants ObjectBucketAclAccessControlPolicyGrant[]
owner This property is required. ObjectBucketAclAccessControlPolicyOwner
Configuration block of the bucket project owner's display organization ID.
grants Sequence[ObjectBucketAclAccessControlPolicyGrant]
owner This property is required. Property Map
Configuration block of the bucket project owner's display organization ID.
grants List<Property Map>

ObjectBucketAclAccessControlPolicyGrant
, ObjectBucketAclAccessControlPolicyGrantArgs

Permission This property is required. string
Logging permissions assigned to the grantee for the bucket.
Grantee Pulumiverse.Scaleway.Inputs.ObjectBucketAclAccessControlPolicyGrantGrantee
Configuration block for the project being granted permissions.
Permission This property is required. string
Logging permissions assigned to the grantee for the bucket.
Grantee ObjectBucketAclAccessControlPolicyGrantGrantee
Configuration block for the project being granted permissions.
permission This property is required. String
Logging permissions assigned to the grantee for the bucket.
grantee ObjectBucketAclAccessControlPolicyGrantGrantee
Configuration block for the project being granted permissions.
permission This property is required. string
Logging permissions assigned to the grantee for the bucket.
grantee ObjectBucketAclAccessControlPolicyGrantGrantee
Configuration block for the project being granted permissions.
permission This property is required. str
Logging permissions assigned to the grantee for the bucket.
grantee ObjectBucketAclAccessControlPolicyGrantGrantee
Configuration block for the project being granted permissions.
permission This property is required. String
Logging permissions assigned to the grantee for the bucket.
grantee Property Map
Configuration block for the project being granted permissions.

ObjectBucketAclAccessControlPolicyGrantGrantee
, ObjectBucketAclAccessControlPolicyGrantGranteeArgs

Id This property is required. string
The region, bucket and acl separated by (/).
Type This property is required. string
Type of grantee. Valid values: CanonicalUser
DisplayName string
Id This property is required. string
The region, bucket and acl separated by (/).
Type This property is required. string
Type of grantee. Valid values: CanonicalUser
DisplayName string
id This property is required. String
The region, bucket and acl separated by (/).
type This property is required. String
Type of grantee. Valid values: CanonicalUser
displayName String
id This property is required. string
The region, bucket and acl separated by (/).
type This property is required. string
Type of grantee. Valid values: CanonicalUser
displayName string
id This property is required. str
The region, bucket and acl separated by (/).
type This property is required. str
Type of grantee. Valid values: CanonicalUser
display_name str
id This property is required. String
The region, bucket and acl separated by (/).
type This property is required. String
Type of grantee. Valid values: CanonicalUser
displayName String

ObjectBucketAclAccessControlPolicyOwner
, ObjectBucketAclAccessControlPolicyOwnerArgs

Id This property is required. string
The region, bucket and acl separated by (/).
DisplayName string
The project ID of the grantee.
Id This property is required. string
The region, bucket and acl separated by (/).
DisplayName string
The project ID of the grantee.
id This property is required. String
The region, bucket and acl separated by (/).
displayName String
The project ID of the grantee.
id This property is required. string
The region, bucket and acl separated by (/).
displayName string
The project ID of the grantee.
id This property is required. str
The region, bucket and acl separated by (/).
display_name str
The project ID of the grantee.
id This property is required. String
The region, bucket and acl separated by (/).
displayName String
The project ID of the grantee.

Import

Bucket ACLs can be imported using the {region}/{bucketName}/{acl} identifier, as shown below:

bash

$ pulumi import scaleway:index/objectBucketAcl:ObjectBucketAcl some_bucket fr-par/some-bucket/private
Copy

~> Important: The project_id attribute has a particular behavior with s3 products because the s3 API is scoped by project.

If you are using a project different from the default one, you have to specify the project ID at the end of the import command.

bash

$ pulumi import scaleway:index/objectBucketAcl:ObjectBucketAcl some_bucket fr-par/some-bucket/private@xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.