1. Packages
  2. Scaleway
  3. API Docs
  4. ObjectBucketAcl
Scaleway v1.12.0 published on Monday, Mar 11, 2024 by pulumiverse

scaleway.ObjectBucketAcl

Explore with Pulumi AI

scaleway logo
Scaleway v1.12.0 published on Monday, Mar 11, 2024 by pulumiverse

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const someBucket = new scaleway.ObjectBucket("someBucket", {});
    const main = new scaleway.ObjectBucketAcl("main", {
        bucket: scaleway_object_bucket.main.id,
        acl: "private",
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    some_bucket = scaleway.ObjectBucket("someBucket")
    main = scaleway.ObjectBucketAcl("main",
        bucket=scaleway_object_bucket["main"]["id"],
        acl="private")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.NewObjectBucket(ctx, "someBucket", nil)
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewObjectBucketAcl(ctx, "main", &scaleway.ObjectBucketAclArgs{
    			Bucket: pulumi.Any(scaleway_object_bucket.Main.Id),
    			Acl:    pulumi.String("private"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var someBucket = new Scaleway.ObjectBucket("someBucket");
    
        var main = new Scaleway.ObjectBucketAcl("main", new()
        {
            Bucket = scaleway_object_bucket.Main.Id,
            Acl = "private",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ObjectBucket;
    import com.pulumi.scaleway.ObjectBucketAcl;
    import com.pulumi.scaleway.ObjectBucketAclArgs;
    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 ObjectBucket("someBucket");
    
            var main = new ObjectBucketAcl("main", ObjectBucketAclArgs.builder()        
                .bucket(scaleway_object_bucket.main().id())
                .acl("private")
                .build());
    
        }
    }
    
    resources:
      someBucket:
        type: scaleway:ObjectBucket
      main:
        type: scaleway:ObjectBucketAcl
        properties:
          bucket: ${scaleway_object_bucket.main.id}
          acl: private
    

    With Grants

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const mainObjectBucket = new scaleway.ObjectBucket("mainObjectBucket", {});
    const mainObjectBucketAcl = new scaleway.ObjectBucketAcl("mainObjectBucketAcl", {
        bucket: mainObjectBucket.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>",
            },
        },
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    main_object_bucket = scaleway.ObjectBucket("mainObjectBucket")
    main_object_bucket_acl = scaleway.ObjectBucketAcl("mainObjectBucketAcl",
        bucket=main_object_bucket.id,
        access_control_policy=scaleway.ObjectBucketAclAccessControlPolicyArgs(
            grants=[
                scaleway.ObjectBucketAclAccessControlPolicyGrantArgs(
                    grantee=scaleway.ObjectBucketAclAccessControlPolicyGrantGranteeArgs(
                        id="<project-id>:<project-id>",
                        type="CanonicalUser",
                    ),
                    permission="FULL_CONTROL",
                ),
                scaleway.ObjectBucketAclAccessControlPolicyGrantArgs(
                    grantee=scaleway.ObjectBucketAclAccessControlPolicyGrantGranteeArgs(
                        id="<project-id>",
                        type="CanonicalUser",
                    ),
                    permission="WRITE",
                ),
            ],
            owner=scaleway.ObjectBucketAclAccessControlPolicyOwnerArgs(
                id="<project-id>",
            ),
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		mainObjectBucket, err := scaleway.NewObjectBucket(ctx, "mainObjectBucket", nil)
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewObjectBucketAcl(ctx, "mainObjectBucketAcl", &scaleway.ObjectBucketAclArgs{
    			Bucket: mainObjectBucket.ID(),
    			AccessControlPolicy: &scaleway.ObjectBucketAclAccessControlPolicyArgs{
    				Grants: scaleway.ObjectBucketAclAccessControlPolicyGrantArray{
    					&scaleway.ObjectBucketAclAccessControlPolicyGrantArgs{
    						Grantee: &scaleway.ObjectBucketAclAccessControlPolicyGrantGranteeArgs{
    							Id:   pulumi.String("<project-id>:<project-id>"),
    							Type: pulumi.String("CanonicalUser"),
    						},
    						Permission: pulumi.String("FULL_CONTROL"),
    					},
    					&scaleway.ObjectBucketAclAccessControlPolicyGrantArgs{
    						Grantee: &scaleway.ObjectBucketAclAccessControlPolicyGrantGranteeArgs{
    							Id:   pulumi.String("<project-id>"),
    							Type: pulumi.String("CanonicalUser"),
    						},
    						Permission: pulumi.String("WRITE"),
    					},
    				},
    				Owner: &scaleway.ObjectBucketAclAccessControlPolicyOwnerArgs{
    					Id: pulumi.String("<project-id>"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var mainObjectBucket = new Scaleway.ObjectBucket("mainObjectBucket");
    
        var mainObjectBucketAcl = new Scaleway.ObjectBucketAcl("mainObjectBucketAcl", new()
        {
            Bucket = mainObjectBucket.Id,
            AccessControlPolicy = new Scaleway.Inputs.ObjectBucketAclAccessControlPolicyArgs
            {
                Grants = new[]
                {
                    new Scaleway.Inputs.ObjectBucketAclAccessControlPolicyGrantArgs
                    {
                        Grantee = new Scaleway.Inputs.ObjectBucketAclAccessControlPolicyGrantGranteeArgs
                        {
                            Id = "<project-id>:<project-id>",
                            Type = "CanonicalUser",
                        },
                        Permission = "FULL_CONTROL",
                    },
                    new Scaleway.Inputs.ObjectBucketAclAccessControlPolicyGrantArgs
                    {
                        Grantee = new Scaleway.Inputs.ObjectBucketAclAccessControlPolicyGrantGranteeArgs
                        {
                            Id = "<project-id>",
                            Type = "CanonicalUser",
                        },
                        Permission = "WRITE",
                    },
                },
                Owner = new Scaleway.Inputs.ObjectBucketAclAccessControlPolicyOwnerArgs
                {
                    Id = "<project-id>",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ObjectBucket;
    import com.pulumi.scaleway.ObjectBucketAcl;
    import com.pulumi.scaleway.ObjectBucketAclArgs;
    import com.pulumi.scaleway.inputs.ObjectBucketAclAccessControlPolicyArgs;
    import com.pulumi.scaleway.inputs.ObjectBucketAclAccessControlPolicyOwnerArgs;
    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 mainObjectBucket = new ObjectBucket("mainObjectBucket");
    
            var mainObjectBucketAcl = new ObjectBucketAcl("mainObjectBucketAcl", ObjectBucketAclArgs.builder()        
                .bucket(mainObjectBucket.id())
                .accessControlPolicy(ObjectBucketAclAccessControlPolicyArgs.builder()
                    .grants(                
                        ObjectBucketAclAccessControlPolicyGrantArgs.builder()
                            .grantee(ObjectBucketAclAccessControlPolicyGrantGranteeArgs.builder()
                                .id("<project-id>:<project-id>")
                                .type("CanonicalUser")
                                .build())
                            .permission("FULL_CONTROL")
                            .build(),
                        ObjectBucketAclAccessControlPolicyGrantArgs.builder()
                            .grantee(ObjectBucketAclAccessControlPolicyGrantGranteeArgs.builder()
                                .id("<project-id>")
                                .type("CanonicalUser")
                                .build())
                            .permission("WRITE")
                            .build())
                    .owner(ObjectBucketAclAccessControlPolicyOwnerArgs.builder()
                        .id("<project-id>")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      mainObjectBucket:
        type: scaleway:ObjectBucket
      mainObjectBucketAcl:
        type: scaleway:ObjectBucketAcl
        properties:
          bucket: ${mainObjectBucket.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>
    

    The ACL

    Please check the canned ACL

    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

    new ObjectBucketAcl(name: string, args: ObjectBucketAclArgs, opts?: CustomResourceOptions);
    @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)
    @overload
    def ObjectBucketAcl(resource_name: str,
                        args: ObjectBucketAclArgs,
                        opts: Optional[ResourceOptions] = 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.
    
    
    name string
    The unique name of the resource.
    args ObjectBucketAclArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args ObjectBucketAclArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectBucketAclArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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

    The ObjectBucketAcl resource accepts the following input properties:

    Bucket 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.
    ExpectedBucketOwner string
    The project ID of the expected bucket owner.
    ProjectId string
    The project_id you want to attach the resource to
    Region string
    The region in which the bucket should be created.
    Bucket 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.
    ExpectedBucketOwner string
    The project ID of the expected bucket owner.
    ProjectId string
    The project_id you want to attach the resource to
    Region string
    The region in which the bucket should be created.
    bucket 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.
    expectedBucketOwner String
    The project ID of the expected bucket owner.
    projectId String
    The project_id you want to attach the resource to
    region String
    The region in which the bucket should be created.
    bucket 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.
    expectedBucketOwner string
    The project ID of the expected bucket owner.
    projectId string
    The project_id you want to attach the resource to
    region string
    The region in which the bucket should be created.
    bucket 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.
    expected_bucket_owner str
    The project ID of the expected bucket owner.
    project_id str
    The project_id you want to attach the resource to
    region str
    The region in which the bucket should be created.
    bucket 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.
    expectedBucketOwner String
    The project ID of the expected bucket owner.
    projectId String
    The project_id you want to attach the resource to
    region 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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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.
    Bucket string
    The bucket's name or regional ID.
    ExpectedBucketOwner string
    The project ID of the expected bucket owner.
    ProjectId string
    The project_id you want to attach the resource to
    Region 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.
    Bucket string
    The bucket's name or regional ID.
    ExpectedBucketOwner string
    The project ID of the expected bucket owner.
    ProjectId string
    The project_id you want to attach the resource to
    Region 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.
    bucket String
    The bucket's name or regional ID.
    expectedBucketOwner String
    The project ID of the expected bucket owner.
    projectId String
    The project_id you want to attach the resource to
    region 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.
    bucket string
    The bucket's name or regional ID.
    expectedBucketOwner string
    The project ID of the expected bucket owner.
    projectId string
    The project_id you want to attach the resource to
    region 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.
    bucket str
    The bucket's name or regional ID.
    expected_bucket_owner str
    The project ID of the expected bucket owner.
    project_id str
    The project_id you want to attach the resource to
    region 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.
    bucket String
    The bucket's name or regional ID.
    expectedBucketOwner String
    The project ID of the expected bucket owner.
    projectId String
    The project_id you want to attach the resource to
    region String
    The region in which the bucket should be created.

    Supporting Types

    ObjectBucketAclAccessControlPolicy, ObjectBucketAclAccessControlPolicyArgs

    Owner ObjectBucketAclAccessControlPolicyOwner
    Configuration block of the bucket project owner's display organization ID.
    Grants []ObjectBucketAclAccessControlPolicyGrant
    owner ObjectBucketAclAccessControlPolicyOwner
    Configuration block of the bucket project owner's display organization ID.
    grants List<ObjectBucketAclAccessControlPolicyGrant>
    owner ObjectBucketAclAccessControlPolicyOwner
    Configuration block of the bucket project owner's display organization ID.
    grants ObjectBucketAclAccessControlPolicyGrant[]
    owner ObjectBucketAclAccessControlPolicyOwner
    Configuration block of the bucket project owner's display organization ID.
    grants Sequence[ObjectBucketAclAccessControlPolicyGrant]
    owner Property Map
    Configuration block of the bucket project owner's display organization ID.
    grants List<Property Map>

    ObjectBucketAclAccessControlPolicyGrant, ObjectBucketAclAccessControlPolicyGrantArgs

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

    ObjectBucketAclAccessControlPolicyGrantGrantee, ObjectBucketAclAccessControlPolicyGrantGranteeArgs

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

    ObjectBucketAclAccessControlPolicyOwner, ObjectBucketAclAccessControlPolicyOwnerArgs

    Id string
    The region,bucket and acl separated by (/).
    DisplayName string
    The project ID of the grantee.
    Id string
    The region,bucket and acl separated by (/).
    DisplayName string
    The project ID of the grantee.
    id String
    The region,bucket and acl separated by (/).
    displayName String
    The project ID of the grantee.
    id string
    The region,bucket and acl separated by (/).
    displayName string
    The project ID of the grantee.
    id str
    The region,bucket and acl separated by (/).
    display_name str
    The project ID of the grantee.
    id 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, e.g.

    bash

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

    ~> 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
    

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.12.0 published on Monday, Mar 11, 2024 by pulumiverse