scaleway.ObjectBucketAcl
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const someBucket = new scaleway.ObjectBucket("some_bucket", {name: "unique-name"});
const main = new scaleway.ObjectBucketAcl("main", {
bucket: mainScalewayObjectBucket.id,
acl: "private",
});
import pulumi
import pulumiverse_scaleway as scaleway
some_bucket = scaleway.ObjectBucket("some_bucket", name="unique-name")
main = scaleway.ObjectBucketAcl("main",
bucket=main_scaleway_object_bucket["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, "some_bucket", &scaleway.ObjectBucketArgs{
Name: pulumi.String("unique-name"),
})
if err != nil {
return err
}
_, err = scaleway.NewObjectBucketAcl(ctx, "main", &scaleway.ObjectBucketAclArgs{
Bucket: pulumi.Any(mainScalewayObjectBucket.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("some_bucket", new()
{
Name = "unique-name",
});
var main = new Scaleway.ObjectBucketAcl("main", new()
{
Bucket = mainScalewayObjectBucket.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.ObjectBucketArgs;
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", ObjectBucketArgs.builder()
.name("unique-name")
.build());
var main = new ObjectBucketAcl("main", ObjectBucketAclArgs.builder()
.bucket(mainScalewayObjectBucket.id())
.acl("private")
.build());
}
}
resources:
someBucket:
type: scaleway:ObjectBucket
name: some_bucket
properties:
name: unique-name
main:
type: scaleway:ObjectBucketAcl
properties:
bucket: ${mainScalewayObjectBucket.id}
acl: private
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.ObjectBucket("main", {name: "your-bucket"});
const mainObjectBucketAcl = new scaleway.ObjectBucketAcl("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>",
},
},
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.ObjectBucket("main", name="your-bucket")
main_object_bucket_acl = scaleway.ObjectBucketAcl("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>",
},
})
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 {
main, err := scaleway.NewObjectBucket(ctx, "main", &scaleway.ObjectBucketArgs{
Name: pulumi.String("your-bucket"),
})
if err != nil {
return err
}
_, err = scaleway.NewObjectBucketAcl(ctx, "main", &scaleway.ObjectBucketAclArgs{
Bucket: main.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 main = new Scaleway.ObjectBucket("main", new()
{
Name = "your-bucket",
});
var mainObjectBucketAcl = new Scaleway.ObjectBucketAcl("main", new()
{
Bucket = main.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.ObjectBucketArgs;
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 main = new ObjectBucket("main", ObjectBucketArgs.builder()
.name("your-bucket")
.build());
var mainObjectBucketAcl = new ObjectBucketAcl("mainObjectBucketAcl", ObjectBucketAclArgs.builder()
.bucket(main.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:
main:
type: scaleway:ObjectBucket
properties:
name: your-bucket
mainObjectBucketAcl:
type: scaleway:ObjectBucketAcl
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>
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,
bucket: Optional[str] = None,
access_control_policy: Optional[ObjectBucketAclAccessControlPolicyArgs] = None,
acl: 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 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var objectBucketAclResource = new Scaleway.ObjectBucketAcl("objectBucketAclResource", new()
{
Bucket = "string",
AccessControlPolicy = new Scaleway.Inputs.ObjectBucketAclAccessControlPolicyArgs
{
Owner = new Scaleway.Inputs.ObjectBucketAclAccessControlPolicyOwnerArgs
{
Id = "string",
DisplayName = "string",
},
Grants = new[]
{
new Scaleway.Inputs.ObjectBucketAclAccessControlPolicyGrantArgs
{
Permission = "string",
Grantee = new Scaleway.Inputs.ObjectBucketAclAccessControlPolicyGrantGranteeArgs
{
Id = "string",
Type = "string",
DisplayName = "string",
},
},
},
},
Acl = "string",
ExpectedBucketOwner = "string",
ProjectId = "string",
Region = "string",
});
example, err := scaleway.NewObjectBucketAcl(ctx, "objectBucketAclResource", &scaleway.ObjectBucketAclArgs{
Bucket: pulumi.String("string"),
AccessControlPolicy: &scaleway.ObjectBucketAclAccessControlPolicyArgs{
Owner: &scaleway.ObjectBucketAclAccessControlPolicyOwnerArgs{
Id: pulumi.String("string"),
DisplayName: pulumi.String("string"),
},
Grants: scaleway.ObjectBucketAclAccessControlPolicyGrantArray{
&scaleway.ObjectBucketAclAccessControlPolicyGrantArgs{
Permission: pulumi.String("string"),
Grantee: &scaleway.ObjectBucketAclAccessControlPolicyGrantGranteeArgs{
Id: pulumi.String("string"),
Type: pulumi.String("string"),
DisplayName: pulumi.String("string"),
},
},
},
},
Acl: pulumi.String("string"),
ExpectedBucketOwner: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
})
var objectBucketAclResource = new ObjectBucketAcl("objectBucketAclResource", ObjectBucketAclArgs.builder()
.bucket("string")
.accessControlPolicy(ObjectBucketAclAccessControlPolicyArgs.builder()
.owner(ObjectBucketAclAccessControlPolicyOwnerArgs.builder()
.id("string")
.displayName("string")
.build())
.grants(ObjectBucketAclAccessControlPolicyGrantArgs.builder()
.permission("string")
.grantee(ObjectBucketAclAccessControlPolicyGrantGranteeArgs.builder()
.id("string")
.type("string")
.displayName("string")
.build())
.build())
.build())
.acl("string")
.expectedBucketOwner("string")
.projectId("string")
.region("string")
.build());
object_bucket_acl_resource = scaleway.ObjectBucketAcl("objectBucketAclResource",
bucket="string",
access_control_policy={
"owner": {
"id": "string",
"display_name": "string",
},
"grants": [{
"permission": "string",
"grantee": {
"id": "string",
"type": "string",
"display_name": "string",
},
}],
},
acl="string",
expected_bucket_owner="string",
project_id="string",
region="string")
const objectBucketAclResource = new scaleway.ObjectBucketAcl("objectBucketAclResource", {
bucket: "string",
accessControlPolicy: {
owner: {
id: "string",
displayName: "string",
},
grants: [{
permission: "string",
grantee: {
id: "string",
type: "string",
displayName: "string",
},
}],
},
acl: "string",
expectedBucketOwner: "string",
projectId: "string",
region: "string",
});
type: scaleway:ObjectBucketAcl
properties:
accessControlPolicy:
grants:
- grantee:
displayName: string
id: string
type: string
permission: string
owner:
displayName: string
id: string
acl: string
bucket: string
expectedBucketOwner: string
projectId: string
region: string
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 string
- The bucket's name or regional ID.
- Access
Control Pulumiverse.Policy Scaleway. Inputs. Object Bucket Acl Access Control Policy - 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.
- Expected
Bucket stringOwner - The project ID of the expected bucket owner.
- Project
Id 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.
- Access
Control ObjectPolicy Bucket Acl Access Control Policy Args - 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.
- Expected
Bucket stringOwner - The project ID of the expected bucket owner.
- Project
Id 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.
- access
Control ObjectPolicy Bucket Acl Access Control Policy - 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.
- expected
Bucket StringOwner - The project ID of the expected bucket owner.
- project
Id 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.
- access
Control ObjectPolicy Bucket Acl Access Control Policy - 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.
- expected
Bucket stringOwner - The project ID of the expected bucket owner.
- project
Id 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_ Objectpolicy Bucket Acl Access Control Policy Args - 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_ strowner - 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.
- access
Control Property MapPolicy - 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.
- expected
Bucket StringOwner - The project ID of the expected bucket owner.
- project
Id 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.
- Access
Control Pulumiverse.Policy Scaleway. Inputs. Object Bucket Acl Access Control Policy - 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 string
- The bucket's name or regional ID.
- Expected
Bucket stringOwner - The project ID of the expected bucket owner.
- Project
Id string - The project_id you want to attach the resource to
- Region string
- The region in which the bucket should be created.
- Access
Control ObjectPolicy Bucket Acl Access Control Policy Args - 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 string
- The bucket's name or regional ID.
- Expected
Bucket stringOwner - The project ID of the expected bucket owner.
- Project
Id string - The project_id you want to attach the resource to
- Region string
- The region in which the bucket should be created.
- access
Control ObjectPolicy Bucket Acl Access Control Policy - 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 String
- The bucket's name or regional ID.
- expected
Bucket StringOwner - The project ID of the expected bucket owner.
- project
Id String - The project_id you want to attach the resource to
- region String
- The region in which the bucket should be created.
- access
Control ObjectPolicy Bucket Acl Access Control Policy - 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 string
- The bucket's name or regional ID.
- expected
Bucket stringOwner - The project ID of the expected bucket owner.
- project
Id string - The project_id you want to attach the resource to
- region string
- The region in which the bucket should be created.
- access_
control_ Objectpolicy Bucket Acl Access Control Policy Args - 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 str
- The bucket's name or regional ID.
- expected_
bucket_ strowner - 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.
- access
Control Property MapPolicy - 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 String
- The bucket's name or regional ID.
- expected
Bucket StringOwner - The project ID of the expected bucket owner.
- project
Id 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
Pulumiverse.
Scaleway. Inputs. Object Bucket Acl Access Control Policy Owner - Configuration block of the bucket project owner's display organization ID.
- Grants
List<Pulumiverse.
Scaleway. Inputs. Object Bucket Acl Access Control Policy Grant>
- Owner
Object
Bucket Acl Access Control Policy Owner - Configuration block of the bucket project owner's display organization ID.
- Grants
[]Object
Bucket Acl Access Control Policy Grant
- owner
Object
Bucket Acl Access Control Policy Owner - Configuration block of the bucket project owner's display organization ID.
- grants
List<Object
Bucket Acl Access Control Policy Grant>
- owner
Object
Bucket Acl Access Control Policy Owner - Configuration block of the bucket project owner's display organization ID.
- grants
Object
Bucket Acl Access Control Policy Grant[]
- owner
Object
Bucket Acl Access Control Policy Owner - Configuration block of the bucket project owner's display organization ID.
- grants
Sequence[Object
Bucket Acl Access Control Policy Grant]
- 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. Object Bucket Acl Access Control Policy Grant Grantee - Configuration block for the project being granted permissions.
- Permission string
- Logging permissions assigned to the grantee for the bucket.
- Grantee
Object
Bucket Acl Access Control Policy Grant Grantee - Configuration block for the project being granted permissions.
- permission String
- Logging permissions assigned to the grantee for the bucket.
- grantee
Object
Bucket Acl Access Control Policy Grant Grantee - Configuration block for the project being granted permissions.
- permission string
- Logging permissions assigned to the grantee for the bucket.
- grantee
Object
Bucket Acl Access Control Policy Grant Grantee - Configuration block for the project being granted permissions.
- permission str
- Logging permissions assigned to the grantee for the bucket.
- grantee
Object
Bucket Acl Access Control Policy Grant Grantee - 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
andacl
separated by (/
). - Type string
- Type of grantee. Valid values:
CanonicalUser
- Display
Name string
- Id string
- The
region
,bucket
andacl
separated by (/
). - Type string
- Type of grantee. Valid values:
CanonicalUser
- Display
Name string
- id String
- The
region
,bucket
andacl
separated by (/
). - type String
- Type of grantee. Valid values:
CanonicalUser
- display
Name String
- id string
- The
region
,bucket
andacl
separated by (/
). - type string
- Type of grantee. Valid values:
CanonicalUser
- display
Name string
- id str
- The
region
,bucket
andacl
separated by (/
). - type str
- Type of grantee. Valid values:
CanonicalUser
- display_
name str
- id String
- The
region
,bucket
andacl
separated by (/
). - type String
- Type of grantee. Valid values:
CanonicalUser
- display
Name String
ObjectBucketAclAccessControlPolicyOwner, ObjectBucketAclAccessControlPolicyOwnerArgs
- Id string
- The
region
,bucket
andacl
separated by (/
). - Display
Name string - The project ID of the grantee.
- Id string
- The
region
,bucket
andacl
separated by (/
). - Display
Name string - The project ID of the grantee.
- id String
- The
region
,bucket
andacl
separated by (/
). - display
Name String - The project ID of the grantee.
- id string
- The
region
,bucket
andacl
separated by (/
). - display
Name string - The project ID of the grantee.
- id str
- The
region
,bucket
andacl
separated by (/
). - display_
name str - The project ID of the grantee.
- id String
- The
region
,bucket
andacl
separated by (/
). - display
Name 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
~> 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
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.