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

scaleway.ObjectBucket

Explore with Pulumi AI

Deprecated: scaleway.index/objectbucket.ObjectBucket has been deprecated in favor of scaleway.object/bucket.Bucket

The scaleway.object.Bucket resource allows you to create and manage buckets for Scaleway Object storage.

Refer to the dedicated documentation for more information on Object Storage buckets.

Example Usage

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

const someBucket = new scaleway.object.Bucket("some_bucket", {
    name: "some-unique-name",
    tags: {
        key: "value",
    },
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

some_bucket = scaleway.object.Bucket("some_bucket",
    name="some-unique-name",
    tags={
        "key": "value",
    })
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("some-unique-name"),
			Tags: pulumi.StringMap{
				"key": pulumi.String("value"),
			},
		})
		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 = "some-unique-name",
        Tags = 
        {
            { "key", "value" },
        },
    });

});
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 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("some-unique-name")
            .tags(Map.of("key", "value"))
            .build());

    }
}
Copy
resources:
  someBucket:
    type: scaleway:object:Bucket
    name: some_bucket
    properties:
      name: some-unique-name
      tags:
        key: value
Copy

Creating the bucket in a specific project

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

const someBucket = new scaleway.object.Bucket("some_bucket", {
    name: "some-unique-name",
    projectId: "11111111-1111-1111-1111-111111111111",
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

some_bucket = scaleway.object.Bucket("some_bucket",
    name="some-unique-name",
    project_id="11111111-1111-1111-1111-111111111111")
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("some-unique-name"),
			ProjectId: pulumi.String("11111111-1111-1111-1111-111111111111"),
		})
		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 = "some-unique-name",
        ProjectId = "11111111-1111-1111-1111-111111111111",
    });

});
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 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("some-unique-name")
            .projectId("11111111-1111-1111-1111-111111111111")
            .build());

    }
}
Copy
resources:
  someBucket:
    type: scaleway:object:Bucket
    name: some_bucket
    properties:
      name: some-unique-name
      projectId: 11111111-1111-1111-1111-111111111111
Copy

Using object lifecycle

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

const main = new scaleway.object.Bucket("main", {
    name: "mybuckectid",
    region: "fr-par",
    lifecycleRules: [
        {
            id: "id1",
            prefix: "path1/",
            enabled: true,
            expiration: {
                days: 365,
            },
            transitions: [{
                days: 120,
                storageClass: "GLACIER",
            }],
        },
        {
            id: "id2",
            prefix: "path2/",
            enabled: true,
            expiration: {
                days: 50,
            },
        },
        {
            id: "id3",
            prefix: "path3/",
            enabled: false,
            tags: {
                tagKey: "tagValue",
                terraform: "hashicorp",
            },
            expiration: {
                days: 1,
            },
        },
        {
            id: "id4",
            enabled: true,
            tags: {
                tag1: "value1",
            },
            transitions: [{
                days: 1,
                storageClass: "GLACIER",
            }],
        },
        {
            enabled: true,
            abortIncompleteMultipartUploadDays: 30,
        },
    ],
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.object.Bucket("main",
    name="mybuckectid",
    region="fr-par",
    lifecycle_rules=[
        {
            "id": "id1",
            "prefix": "path1/",
            "enabled": True,
            "expiration": {
                "days": 365,
            },
            "transitions": [{
                "days": 120,
                "storage_class": "GLACIER",
            }],
        },
        {
            "id": "id2",
            "prefix": "path2/",
            "enabled": True,
            "expiration": {
                "days": 50,
            },
        },
        {
            "id": "id3",
            "prefix": "path3/",
            "enabled": False,
            "tags": {
                "tagKey": "tagValue",
                "terraform": "hashicorp",
            },
            "expiration": {
                "days": 1,
            },
        },
        {
            "id": "id4",
            "enabled": True,
            "tags": {
                "tag1": "value1",
            },
            "transitions": [{
                "days": 1,
                "storage_class": "GLACIER",
            }],
        },
        {
            "enabled": True,
            "abort_incomplete_multipart_upload_days": 30,
        },
    ])
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, "main", &object.BucketArgs{
			Name:   pulumi.String("mybuckectid"),
			Region: pulumi.String("fr-par"),
			LifecycleRules: object.BucketLifecycleRuleArray{
				&object.BucketLifecycleRuleArgs{
					Id:      pulumi.String("id1"),
					Prefix:  pulumi.String("path1/"),
					Enabled: pulumi.Bool(true),
					Expiration: &object.BucketLifecycleRuleExpirationArgs{
						Days: pulumi.Int(365),
					},
					Transitions: object.BucketLifecycleRuleTransitionArray{
						&object.BucketLifecycleRuleTransitionArgs{
							Days:         pulumi.Int(120),
							StorageClass: pulumi.String("GLACIER"),
						},
					},
				},
				&object.BucketLifecycleRuleArgs{
					Id:      pulumi.String("id2"),
					Prefix:  pulumi.String("path2/"),
					Enabled: pulumi.Bool(true),
					Expiration: &object.BucketLifecycleRuleExpirationArgs{
						Days: pulumi.Int(50),
					},
				},
				&object.BucketLifecycleRuleArgs{
					Id:      pulumi.String("id3"),
					Prefix:  pulumi.String("path3/"),
					Enabled: pulumi.Bool(false),
					Tags: pulumi.StringMap{
						"tagKey":    pulumi.String("tagValue"),
						"terraform": pulumi.String("hashicorp"),
					},
					Expiration: &object.BucketLifecycleRuleExpirationArgs{
						Days: pulumi.Int(1),
					},
				},
				&object.BucketLifecycleRuleArgs{
					Id:      pulumi.String("id4"),
					Enabled: pulumi.Bool(true),
					Tags: pulumi.StringMap{
						"tag1": pulumi.String("value1"),
					},
					Transitions: object.BucketLifecycleRuleTransitionArray{
						&object.BucketLifecycleRuleTransitionArgs{
							Days:         pulumi.Int(1),
							StorageClass: pulumi.String("GLACIER"),
						},
					},
				},
				&object.BucketLifecycleRuleArgs{
					Enabled:                            pulumi.Bool(true),
					AbortIncompleteMultipartUploadDays: pulumi.Int(30),
				},
			},
		})
		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 = "mybuckectid",
        Region = "fr-par",
        LifecycleRules = new[]
        {
            new Scaleway.Object.Inputs.BucketLifecycleRuleArgs
            {
                Id = "id1",
                Prefix = "path1/",
                Enabled = true,
                Expiration = new Scaleway.Object.Inputs.BucketLifecycleRuleExpirationArgs
                {
                    Days = 365,
                },
                Transitions = new[]
                {
                    new Scaleway.Object.Inputs.BucketLifecycleRuleTransitionArgs
                    {
                        Days = 120,
                        StorageClass = "GLACIER",
                    },
                },
            },
            new Scaleway.Object.Inputs.BucketLifecycleRuleArgs
            {
                Id = "id2",
                Prefix = "path2/",
                Enabled = true,
                Expiration = new Scaleway.Object.Inputs.BucketLifecycleRuleExpirationArgs
                {
                    Days = 50,
                },
            },
            new Scaleway.Object.Inputs.BucketLifecycleRuleArgs
            {
                Id = "id3",
                Prefix = "path3/",
                Enabled = false,
                Tags = 
                {
                    { "tagKey", "tagValue" },
                    { "terraform", "hashicorp" },
                },
                Expiration = new Scaleway.Object.Inputs.BucketLifecycleRuleExpirationArgs
                {
                    Days = 1,
                },
            },
            new Scaleway.Object.Inputs.BucketLifecycleRuleArgs
            {
                Id = "id4",
                Enabled = true,
                Tags = 
                {
                    { "tag1", "value1" },
                },
                Transitions = new[]
                {
                    new Scaleway.Object.Inputs.BucketLifecycleRuleTransitionArgs
                    {
                        Days = 1,
                        StorageClass = "GLACIER",
                    },
                },
            },
            new Scaleway.Object.Inputs.BucketLifecycleRuleArgs
            {
                Enabled = true,
                AbortIncompleteMultipartUploadDays = 30,
            },
        },
    });

});
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.inputs.BucketLifecycleRuleArgs;
import com.pulumi.scaleway.object.inputs.BucketLifecycleRuleExpirationArgs;
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("mybuckectid")
            .region("fr-par")
            .lifecycleRules(            
                BucketLifecycleRuleArgs.builder()
                    .id("id1")
                    .prefix("path1/")
                    .enabled(true)
                    .expiration(BucketLifecycleRuleExpirationArgs.builder()
                        .days(365)
                        .build())
                    .transitions(BucketLifecycleRuleTransitionArgs.builder()
                        .days(120)
                        .storageClass("GLACIER")
                        .build())
                    .build(),
                BucketLifecycleRuleArgs.builder()
                    .id("id2")
                    .prefix("path2/")
                    .enabled(true)
                    .expiration(BucketLifecycleRuleExpirationArgs.builder()
                        .days("50")
                        .build())
                    .build(),
                BucketLifecycleRuleArgs.builder()
                    .id("id3")
                    .prefix("path3/")
                    .enabled(false)
                    .tags(Map.ofEntries(
                        Map.entry("tagKey", "tagValue"),
                        Map.entry("terraform", "hashicorp")
                    ))
                    .expiration(BucketLifecycleRuleExpirationArgs.builder()
                        .days("1")
                        .build())
                    .build(),
                BucketLifecycleRuleArgs.builder()
                    .id("id4")
                    .enabled(true)
                    .tags(Map.of("tag1", "value1"))
                    .transitions(BucketLifecycleRuleTransitionArgs.builder()
                        .days(1)
                        .storageClass("GLACIER")
                        .build())
                    .build(),
                BucketLifecycleRuleArgs.builder()
                    .enabled(true)
                    .abortIncompleteMultipartUploadDays(30)
                    .build())
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:object:Bucket
    properties:
      name: mybuckectid
      region: fr-par
      lifecycleRules:
        - id: id1
          prefix: path1/
          enabled: true
          expiration:
            days: 365
          transitions:
            - days: 120
              storageClass: GLACIER
        - id: id2
          prefix: path2/
          enabled: true
          expiration:
            days: '50'
        - id: id3
          prefix: path3/
          enabled: false
          tags:
            tagKey: tagValue
            terraform: hashicorp
          expiration:
            days: '1'
        - id: id4
          enabled: true
          tags:
            tag1: value1
          transitions:
            - days: 1
              storageClass: GLACIER
        - enabled: true
          abortIncompleteMultipartUploadDays: 30
Copy

Create ObjectBucket Resource

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

Constructor syntax

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

@overload
def ObjectBucket(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 acl: Optional[str] = None,
                 cors_rules: Optional[Sequence[ObjectBucketCorsRuleArgs]] = None,
                 force_destroy: Optional[bool] = None,
                 lifecycle_rules: Optional[Sequence[ObjectBucketLifecycleRuleArgs]] = None,
                 name: Optional[str] = None,
                 object_lock_enabled: Optional[bool] = None,
                 project_id: Optional[str] = None,
                 region: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None,
                 versioning: Optional[ObjectBucketVersioningArgs] = None)
func NewObjectBucket(ctx *Context, name string, args *ObjectBucketArgs, opts ...ResourceOption) (*ObjectBucket, error)
public ObjectBucket(string name, ObjectBucketArgs? args = null, CustomResourceOptions? opts = null)
public ObjectBucket(String name, ObjectBucketArgs args)
public ObjectBucket(String name, ObjectBucketArgs args, CustomResourceOptions options)
type: scaleway:ObjectBucket
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 ObjectBucketArgs
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 ObjectBucketArgs
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 ObjectBucketArgs
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 ObjectBucketArgs
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. ObjectBucketArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ObjectBucket 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 ObjectBucket resource accepts the following input properties:

Acl string

(Deprecated) The canned ACL you want to apply to the bucket.

Note: The acl attribute is deprecated. See scaleway.object.BucketAcl resource documentation. Refer to the official canned ACL documentation for more information on the different roles.

Deprecated: ACL attribute is deprecated. Please use the resource scaleway.object.BucketAcl instead.

CorsRules List<Pulumiverse.Scaleway.Inputs.ObjectBucketCorsRule>
ForceDestroy bool
Boolean that, when set to true, allows the deletion of all objects (including locked objects) when the bucket is destroyed. This operation is irreversible, and the objects cannot be recovered. The default is false.
LifecycleRules List<Pulumiverse.Scaleway.Inputs.ObjectBucketLifecycleRule>
Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
Name Changes to this property will trigger replacement. string
The name of the bucket.
ObjectLockEnabled Changes to this property will trigger replacement. bool
Enable object lock
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the bucket is associated with.
Region Changes to this property will trigger replacement. string
The region in which the bucket will be created.
Tags Dictionary<string, string>

A list of tags (key/value) for the bucket.

  • Important: The Scaleway console does not support key/value tags yet, so only the tags' values will be displayed. If you make any change to your bucket's tags using the console, it will overwrite them with the format value/value.

Versioning Pulumiverse.Scaleway.Inputs.ObjectBucketVersioning
Allow multiple versions of an object in the same bucket
Acl string

(Deprecated) The canned ACL you want to apply to the bucket.

Note: The acl attribute is deprecated. See scaleway.object.BucketAcl resource documentation. Refer to the official canned ACL documentation for more information on the different roles.

Deprecated: ACL attribute is deprecated. Please use the resource scaleway.object.BucketAcl instead.

CorsRules []ObjectBucketCorsRuleArgs
ForceDestroy bool
Boolean that, when set to true, allows the deletion of all objects (including locked objects) when the bucket is destroyed. This operation is irreversible, and the objects cannot be recovered. The default is false.
LifecycleRules []ObjectBucketLifecycleRuleArgs
Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
Name Changes to this property will trigger replacement. string
The name of the bucket.
ObjectLockEnabled Changes to this property will trigger replacement. bool
Enable object lock
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the bucket is associated with.
Region Changes to this property will trigger replacement. string
The region in which the bucket will be created.
Tags map[string]string

A list of tags (key/value) for the bucket.

  • Important: The Scaleway console does not support key/value tags yet, so only the tags' values will be displayed. If you make any change to your bucket's tags using the console, it will overwrite them with the format value/value.

Versioning ObjectBucketVersioningArgs
Allow multiple versions of an object in the same bucket
acl String

(Deprecated) The canned ACL you want to apply to the bucket.

Note: The acl attribute is deprecated. See scaleway.object.BucketAcl resource documentation. Refer to the official canned ACL documentation for more information on the different roles.

Deprecated: ACL attribute is deprecated. Please use the resource scaleway.object.BucketAcl instead.

corsRules List<ObjectBucketCorsRule>
forceDestroy Boolean
Boolean that, when set to true, allows the deletion of all objects (including locked objects) when the bucket is destroyed. This operation is irreversible, and the objects cannot be recovered. The default is false.
lifecycleRules List<ObjectBucketLifecycleRule>
Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
name Changes to this property will trigger replacement. String
The name of the bucket.
objectLockEnabled Changes to this property will trigger replacement. Boolean
Enable object lock
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the bucket is associated with.
region Changes to this property will trigger replacement. String
The region in which the bucket will be created.
tags Map<String,String>

A list of tags (key/value) for the bucket.

  • Important: The Scaleway console does not support key/value tags yet, so only the tags' values will be displayed. If you make any change to your bucket's tags using the console, it will overwrite them with the format value/value.

versioning ObjectBucketVersioning
Allow multiple versions of an object in the same bucket
acl string

(Deprecated) The canned ACL you want to apply to the bucket.

Note: The acl attribute is deprecated. See scaleway.object.BucketAcl resource documentation. Refer to the official canned ACL documentation for more information on the different roles.

Deprecated: ACL attribute is deprecated. Please use the resource scaleway.object.BucketAcl instead.

corsRules ObjectBucketCorsRule[]
forceDestroy boolean
Boolean that, when set to true, allows the deletion of all objects (including locked objects) when the bucket is destroyed. This operation is irreversible, and the objects cannot be recovered. The default is false.
lifecycleRules ObjectBucketLifecycleRule[]
Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
name Changes to this property will trigger replacement. string
The name of the bucket.
objectLockEnabled Changes to this property will trigger replacement. boolean
Enable object lock
projectId Changes to this property will trigger replacement. string
project_id) The ID of the project the bucket is associated with.
region Changes to this property will trigger replacement. string
The region in which the bucket will be created.
tags {[key: string]: string}

A list of tags (key/value) for the bucket.

  • Important: The Scaleway console does not support key/value tags yet, so only the tags' values will be displayed. If you make any change to your bucket's tags using the console, it will overwrite them with the format value/value.

versioning ObjectBucketVersioning
Allow multiple versions of an object in the same bucket
acl str

(Deprecated) The canned ACL you want to apply to the bucket.

Note: The acl attribute is deprecated. See scaleway.object.BucketAcl resource documentation. Refer to the official canned ACL documentation for more information on the different roles.

Deprecated: ACL attribute is deprecated. Please use the resource scaleway.object.BucketAcl instead.

cors_rules Sequence[ObjectBucketCorsRuleArgs]
force_destroy bool
Boolean that, when set to true, allows the deletion of all objects (including locked objects) when the bucket is destroyed. This operation is irreversible, and the objects cannot be recovered. The default is false.
lifecycle_rules Sequence[ObjectBucketLifecycleRuleArgs]
Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
name Changes to this property will trigger replacement. str
The name of the bucket.
object_lock_enabled Changes to this property will trigger replacement. bool
Enable object lock
project_id Changes to this property will trigger replacement. str
project_id) The ID of the project the bucket is associated with.
region Changes to this property will trigger replacement. str
The region in which the bucket will be created.
tags Mapping[str, str]

A list of tags (key/value) for the bucket.

  • Important: The Scaleway console does not support key/value tags yet, so only the tags' values will be displayed. If you make any change to your bucket's tags using the console, it will overwrite them with the format value/value.

versioning ObjectBucketVersioningArgs
Allow multiple versions of an object in the same bucket
acl String

(Deprecated) The canned ACL you want to apply to the bucket.

Note: The acl attribute is deprecated. See scaleway.object.BucketAcl resource documentation. Refer to the official canned ACL documentation for more information on the different roles.

Deprecated: ACL attribute is deprecated. Please use the resource scaleway.object.BucketAcl instead.

corsRules List<Property Map>
forceDestroy Boolean
Boolean that, when set to true, allows the deletion of all objects (including locked objects) when the bucket is destroyed. This operation is irreversible, and the objects cannot be recovered. The default is false.
lifecycleRules List<Property Map>
Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
name Changes to this property will trigger replacement. String
The name of the bucket.
objectLockEnabled Changes to this property will trigger replacement. Boolean
Enable object lock
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the bucket is associated with.
region Changes to this property will trigger replacement. String
The region in which the bucket will be created.
tags Map<String>

A list of tags (key/value) for the bucket.

  • Important: The Scaleway console does not support key/value tags yet, so only the tags' values will be displayed. If you make any change to your bucket's tags using the console, it will overwrite them with the format value/value.

versioning Property Map
Allow multiple versions of an object in the same bucket

Outputs

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

ApiEndpoint string
API URL of the bucket
Endpoint string
The endpoint URL of the bucket.
Id string
The provider-assigned unique ID for this managed resource.
ApiEndpoint string
API URL of the bucket
Endpoint string
The endpoint URL of the bucket.
Id string
The provider-assigned unique ID for this managed resource.
apiEndpoint String
API URL of the bucket
endpoint String
The endpoint URL of the bucket.
id String
The provider-assigned unique ID for this managed resource.
apiEndpoint string
API URL of the bucket
endpoint string
The endpoint URL of the bucket.
id string
The provider-assigned unique ID for this managed resource.
api_endpoint str
API URL of the bucket
endpoint str
The endpoint URL of the bucket.
id str
The provider-assigned unique ID for this managed resource.
apiEndpoint String
API URL of the bucket
endpoint String
The endpoint URL of the bucket.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ObjectBucket Resource

Get an existing ObjectBucket 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?: ObjectBucketState, opts?: CustomResourceOptions): ObjectBucket
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        acl: Optional[str] = None,
        api_endpoint: Optional[str] = None,
        cors_rules: Optional[Sequence[ObjectBucketCorsRuleArgs]] = None,
        endpoint: Optional[str] = None,
        force_destroy: Optional[bool] = None,
        lifecycle_rules: Optional[Sequence[ObjectBucketLifecycleRuleArgs]] = None,
        name: Optional[str] = None,
        object_lock_enabled: Optional[bool] = None,
        project_id: Optional[str] = None,
        region: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        versioning: Optional[ObjectBucketVersioningArgs] = None) -> ObjectBucket
func GetObjectBucket(ctx *Context, name string, id IDInput, state *ObjectBucketState, opts ...ResourceOption) (*ObjectBucket, error)
public static ObjectBucket Get(string name, Input<string> id, ObjectBucketState? state, CustomResourceOptions? opts = null)
public static ObjectBucket get(String name, Output<String> id, ObjectBucketState state, CustomResourceOptions options)
resources:  _:    type: scaleway:ObjectBucket    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:
Acl string

(Deprecated) The canned ACL you want to apply to the bucket.

Note: The acl attribute is deprecated. See scaleway.object.BucketAcl resource documentation. Refer to the official canned ACL documentation for more information on the different roles.

Deprecated: ACL attribute is deprecated. Please use the resource scaleway.object.BucketAcl instead.

ApiEndpoint string
API URL of the bucket
CorsRules List<Pulumiverse.Scaleway.Inputs.ObjectBucketCorsRule>
Endpoint string
The endpoint URL of the bucket.
ForceDestroy bool
Boolean that, when set to true, allows the deletion of all objects (including locked objects) when the bucket is destroyed. This operation is irreversible, and the objects cannot be recovered. The default is false.
LifecycleRules List<Pulumiverse.Scaleway.Inputs.ObjectBucketLifecycleRule>
Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
Name Changes to this property will trigger replacement. string
The name of the bucket.
ObjectLockEnabled Changes to this property will trigger replacement. bool
Enable object lock
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the bucket is associated with.
Region Changes to this property will trigger replacement. string
The region in which the bucket will be created.
Tags Dictionary<string, string>

A list of tags (key/value) for the bucket.

  • Important: The Scaleway console does not support key/value tags yet, so only the tags' values will be displayed. If you make any change to your bucket's tags using the console, it will overwrite them with the format value/value.

Versioning Pulumiverse.Scaleway.Inputs.ObjectBucketVersioning
Allow multiple versions of an object in the same bucket
Acl string

(Deprecated) The canned ACL you want to apply to the bucket.

Note: The acl attribute is deprecated. See scaleway.object.BucketAcl resource documentation. Refer to the official canned ACL documentation for more information on the different roles.

Deprecated: ACL attribute is deprecated. Please use the resource scaleway.object.BucketAcl instead.

ApiEndpoint string
API URL of the bucket
CorsRules []ObjectBucketCorsRuleArgs
Endpoint string
The endpoint URL of the bucket.
ForceDestroy bool
Boolean that, when set to true, allows the deletion of all objects (including locked objects) when the bucket is destroyed. This operation is irreversible, and the objects cannot be recovered. The default is false.
LifecycleRules []ObjectBucketLifecycleRuleArgs
Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
Name Changes to this property will trigger replacement. string
The name of the bucket.
ObjectLockEnabled Changes to this property will trigger replacement. bool
Enable object lock
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the bucket is associated with.
Region Changes to this property will trigger replacement. string
The region in which the bucket will be created.
Tags map[string]string

A list of tags (key/value) for the bucket.

  • Important: The Scaleway console does not support key/value tags yet, so only the tags' values will be displayed. If you make any change to your bucket's tags using the console, it will overwrite them with the format value/value.

Versioning ObjectBucketVersioningArgs
Allow multiple versions of an object in the same bucket
acl String

(Deprecated) The canned ACL you want to apply to the bucket.

Note: The acl attribute is deprecated. See scaleway.object.BucketAcl resource documentation. Refer to the official canned ACL documentation for more information on the different roles.

Deprecated: ACL attribute is deprecated. Please use the resource scaleway.object.BucketAcl instead.

apiEndpoint String
API URL of the bucket
corsRules List<ObjectBucketCorsRule>
endpoint String
The endpoint URL of the bucket.
forceDestroy Boolean
Boolean that, when set to true, allows the deletion of all objects (including locked objects) when the bucket is destroyed. This operation is irreversible, and the objects cannot be recovered. The default is false.
lifecycleRules List<ObjectBucketLifecycleRule>
Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
name Changes to this property will trigger replacement. String
The name of the bucket.
objectLockEnabled Changes to this property will trigger replacement. Boolean
Enable object lock
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the bucket is associated with.
region Changes to this property will trigger replacement. String
The region in which the bucket will be created.
tags Map<String,String>

A list of tags (key/value) for the bucket.

  • Important: The Scaleway console does not support key/value tags yet, so only the tags' values will be displayed. If you make any change to your bucket's tags using the console, it will overwrite them with the format value/value.

versioning ObjectBucketVersioning
Allow multiple versions of an object in the same bucket
acl string

(Deprecated) The canned ACL you want to apply to the bucket.

Note: The acl attribute is deprecated. See scaleway.object.BucketAcl resource documentation. Refer to the official canned ACL documentation for more information on the different roles.

Deprecated: ACL attribute is deprecated. Please use the resource scaleway.object.BucketAcl instead.

apiEndpoint string
API URL of the bucket
corsRules ObjectBucketCorsRule[]
endpoint string
The endpoint URL of the bucket.
forceDestroy boolean
Boolean that, when set to true, allows the deletion of all objects (including locked objects) when the bucket is destroyed. This operation is irreversible, and the objects cannot be recovered. The default is false.
lifecycleRules ObjectBucketLifecycleRule[]
Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
name Changes to this property will trigger replacement. string
The name of the bucket.
objectLockEnabled Changes to this property will trigger replacement. boolean
Enable object lock
projectId Changes to this property will trigger replacement. string
project_id) The ID of the project the bucket is associated with.
region Changes to this property will trigger replacement. string
The region in which the bucket will be created.
tags {[key: string]: string}

A list of tags (key/value) for the bucket.

  • Important: The Scaleway console does not support key/value tags yet, so only the tags' values will be displayed. If you make any change to your bucket's tags using the console, it will overwrite them with the format value/value.

versioning ObjectBucketVersioning
Allow multiple versions of an object in the same bucket
acl str

(Deprecated) The canned ACL you want to apply to the bucket.

Note: The acl attribute is deprecated. See scaleway.object.BucketAcl resource documentation. Refer to the official canned ACL documentation for more information on the different roles.

Deprecated: ACL attribute is deprecated. Please use the resource scaleway.object.BucketAcl instead.

api_endpoint str
API URL of the bucket
cors_rules Sequence[ObjectBucketCorsRuleArgs]
endpoint str
The endpoint URL of the bucket.
force_destroy bool
Boolean that, when set to true, allows the deletion of all objects (including locked objects) when the bucket is destroyed. This operation is irreversible, and the objects cannot be recovered. The default is false.
lifecycle_rules Sequence[ObjectBucketLifecycleRuleArgs]
Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
name Changes to this property will trigger replacement. str
The name of the bucket.
object_lock_enabled Changes to this property will trigger replacement. bool
Enable object lock
project_id Changes to this property will trigger replacement. str
project_id) The ID of the project the bucket is associated with.
region Changes to this property will trigger replacement. str
The region in which the bucket will be created.
tags Mapping[str, str]

A list of tags (key/value) for the bucket.

  • Important: The Scaleway console does not support key/value tags yet, so only the tags' values will be displayed. If you make any change to your bucket's tags using the console, it will overwrite them with the format value/value.

versioning ObjectBucketVersioningArgs
Allow multiple versions of an object in the same bucket
acl String

(Deprecated) The canned ACL you want to apply to the bucket.

Note: The acl attribute is deprecated. See scaleway.object.BucketAcl resource documentation. Refer to the official canned ACL documentation for more information on the different roles.

Deprecated: ACL attribute is deprecated. Please use the resource scaleway.object.BucketAcl instead.

apiEndpoint String
API URL of the bucket
corsRules List<Property Map>
endpoint String
The endpoint URL of the bucket.
forceDestroy Boolean
Boolean that, when set to true, allows the deletion of all objects (including locked objects) when the bucket is destroyed. This operation is irreversible, and the objects cannot be recovered. The default is false.
lifecycleRules List<Property Map>
Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
name Changes to this property will trigger replacement. String
The name of the bucket.
objectLockEnabled Changes to this property will trigger replacement. Boolean
Enable object lock
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the bucket is associated with.
region Changes to this property will trigger replacement. String
The region in which the bucket will be created.
tags Map<String>

A list of tags (key/value) for the bucket.

  • Important: The Scaleway console does not support key/value tags yet, so only the tags' values will be displayed. If you make any change to your bucket's tags using the console, it will overwrite them with the format value/value.

versioning Property Map
Allow multiple versions of an object in the same bucket

Supporting Types

ObjectBucketCorsRule
, ObjectBucketCorsRuleArgs

AllowedMethods This property is required. List<string>
Specifies which methods are allowed (GET, PUT, POST, DELETE or HEAD).
AllowedOrigins This property is required. List<string>
Specifies which origins are allowed.
AllowedHeaders List<string>
Specifies which headers are allowed.
ExposeHeaders List<string>
Specifies header exposure in the response.
MaxAgeSeconds int
Specifies time in seconds that the browser can cache the response for a preflight request.
AllowedMethods This property is required. []string
Specifies which methods are allowed (GET, PUT, POST, DELETE or HEAD).
AllowedOrigins This property is required. []string
Specifies which origins are allowed.
AllowedHeaders []string
Specifies which headers are allowed.
ExposeHeaders []string
Specifies header exposure in the response.
MaxAgeSeconds int
Specifies time in seconds that the browser can cache the response for a preflight request.
allowedMethods This property is required. List<String>
Specifies which methods are allowed (GET, PUT, POST, DELETE or HEAD).
allowedOrigins This property is required. List<String>
Specifies which origins are allowed.
allowedHeaders List<String>
Specifies which headers are allowed.
exposeHeaders List<String>
Specifies header exposure in the response.
maxAgeSeconds Integer
Specifies time in seconds that the browser can cache the response for a preflight request.
allowedMethods This property is required. string[]
Specifies which methods are allowed (GET, PUT, POST, DELETE or HEAD).
allowedOrigins This property is required. string[]
Specifies which origins are allowed.
allowedHeaders string[]
Specifies which headers are allowed.
exposeHeaders string[]
Specifies header exposure in the response.
maxAgeSeconds number
Specifies time in seconds that the browser can cache the response for a preflight request.
allowed_methods This property is required. Sequence[str]
Specifies which methods are allowed (GET, PUT, POST, DELETE or HEAD).
allowed_origins This property is required. Sequence[str]
Specifies which origins are allowed.
allowed_headers Sequence[str]
Specifies which headers are allowed.
expose_headers Sequence[str]
Specifies header exposure in the response.
max_age_seconds int
Specifies time in seconds that the browser can cache the response for a preflight request.
allowedMethods This property is required. List<String>
Specifies which methods are allowed (GET, PUT, POST, DELETE or HEAD).
allowedOrigins This property is required. List<String>
Specifies which origins are allowed.
allowedHeaders List<String>
Specifies which headers are allowed.
exposeHeaders List<String>
Specifies header exposure in the response.
maxAgeSeconds Number
Specifies time in seconds that the browser can cache the response for a preflight request.

ObjectBucketLifecycleRule
, ObjectBucketLifecycleRuleArgs

Enabled This property is required. bool
The element value can be either Enabled or Disabled. If a rule is disabled, Scaleway Object Storage does not perform any of the actions defined in the rule.
AbortIncompleteMultipartUploadDays int

Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.

Important: Avoid using prefix for AbortIncompleteMultipartUpload, as any incomplete multipart upload will be billed

Expiration Pulumiverse.Scaleway.Inputs.ObjectBucketLifecycleRuleExpiration
Specifies a period in the object's expire
Id string
Unique identifier for the rule. Must be less than or equal to 255 characters in length.
Prefix string
Object key prefix identifying one or more objects to which the rule applies.
Tags Dictionary<string, string>
Specifies object tags key and value.
Transitions List<Pulumiverse.Scaleway.Inputs.ObjectBucketLifecycleRuleTransition>
Define when objects transition to another storage class
Enabled This property is required. bool
The element value can be either Enabled or Disabled. If a rule is disabled, Scaleway Object Storage does not perform any of the actions defined in the rule.
AbortIncompleteMultipartUploadDays int

Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.

Important: Avoid using prefix for AbortIncompleteMultipartUpload, as any incomplete multipart upload will be billed

Expiration ObjectBucketLifecycleRuleExpiration
Specifies a period in the object's expire
Id string
Unique identifier for the rule. Must be less than or equal to 255 characters in length.
Prefix string
Object key prefix identifying one or more objects to which the rule applies.
Tags map[string]string
Specifies object tags key and value.
Transitions []ObjectBucketLifecycleRuleTransition
Define when objects transition to another storage class
enabled This property is required. Boolean
The element value can be either Enabled or Disabled. If a rule is disabled, Scaleway Object Storage does not perform any of the actions defined in the rule.
abortIncompleteMultipartUploadDays Integer

Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.

Important: Avoid using prefix for AbortIncompleteMultipartUpload, as any incomplete multipart upload will be billed

expiration ObjectBucketLifecycleRuleExpiration
Specifies a period in the object's expire
id String
Unique identifier for the rule. Must be less than or equal to 255 characters in length.
prefix String
Object key prefix identifying one or more objects to which the rule applies.
tags Map<String,String>
Specifies object tags key and value.
transitions List<ObjectBucketLifecycleRuleTransition>
Define when objects transition to another storage class
enabled This property is required. boolean
The element value can be either Enabled or Disabled. If a rule is disabled, Scaleway Object Storage does not perform any of the actions defined in the rule.
abortIncompleteMultipartUploadDays number

Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.

Important: Avoid using prefix for AbortIncompleteMultipartUpload, as any incomplete multipart upload will be billed

expiration ObjectBucketLifecycleRuleExpiration
Specifies a period in the object's expire
id string
Unique identifier for the rule. Must be less than or equal to 255 characters in length.
prefix string
Object key prefix identifying one or more objects to which the rule applies.
tags {[key: string]: string}
Specifies object tags key and value.
transitions ObjectBucketLifecycleRuleTransition[]
Define when objects transition to another storage class
enabled This property is required. bool
The element value can be either Enabled or Disabled. If a rule is disabled, Scaleway Object Storage does not perform any of the actions defined in the rule.
abort_incomplete_multipart_upload_days int

Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.

Important: Avoid using prefix for AbortIncompleteMultipartUpload, as any incomplete multipart upload will be billed

expiration ObjectBucketLifecycleRuleExpiration
Specifies a period in the object's expire
id str
Unique identifier for the rule. Must be less than or equal to 255 characters in length.
prefix str
Object key prefix identifying one or more objects to which the rule applies.
tags Mapping[str, str]
Specifies object tags key and value.
transitions Sequence[ObjectBucketLifecycleRuleTransition]
Define when objects transition to another storage class
enabled This property is required. Boolean
The element value can be either Enabled or Disabled. If a rule is disabled, Scaleway Object Storage does not perform any of the actions defined in the rule.
abortIncompleteMultipartUploadDays Number

Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.

Important: Avoid using prefix for AbortIncompleteMultipartUpload, as any incomplete multipart upload will be billed

expiration Property Map
Specifies a period in the object's expire
id String
Unique identifier for the rule. Must be less than or equal to 255 characters in length.
prefix String
Object key prefix identifying one or more objects to which the rule applies.
tags Map<String>
Specifies object tags key and value.
transitions List<Property Map>
Define when objects transition to another storage class

ObjectBucketLifecycleRuleExpiration
, ObjectBucketLifecycleRuleExpirationArgs

Days This property is required. int
Specifies the number of days after object creation when the specific rule action takes effect.
Days This property is required. int
Specifies the number of days after object creation when the specific rule action takes effect.
days This property is required. Integer
Specifies the number of days after object creation when the specific rule action takes effect.
days This property is required. number
Specifies the number of days after object creation when the specific rule action takes effect.
days This property is required. int
Specifies the number of days after object creation when the specific rule action takes effect.
days This property is required. Number
Specifies the number of days after object creation when the specific rule action takes effect.

ObjectBucketLifecycleRuleTransition
, ObjectBucketLifecycleRuleTransitionArgs

StorageClass This property is required. string

Specifies the Scaleway storage class STANDARD, GLACIER, ONEZONE_IA to which you want the object to transition.

Important: If versioning is enabled, this rule only deletes the current version of an object. Important: If versioning is enabled, this rule only deletes the current version of an object.

Important: ONEZONE_IA is only available in fr-par region. The storage class GLACIER is not available in pl-waw region. Important: ONEZONE_IA is only available in fr-par region. The storage class GLACIER is not available in pl-waw region.

Days int
Specifies the number of days after object creation when the specific rule action takes effect.
StorageClass This property is required. string

Specifies the Scaleway storage class STANDARD, GLACIER, ONEZONE_IA to which you want the object to transition.

Important: If versioning is enabled, this rule only deletes the current version of an object. Important: If versioning is enabled, this rule only deletes the current version of an object.

Important: ONEZONE_IA is only available in fr-par region. The storage class GLACIER is not available in pl-waw region. Important: ONEZONE_IA is only available in fr-par region. The storage class GLACIER is not available in pl-waw region.

Days int
Specifies the number of days after object creation when the specific rule action takes effect.
storageClass This property is required. String

Specifies the Scaleway storage class STANDARD, GLACIER, ONEZONE_IA to which you want the object to transition.

Important: If versioning is enabled, this rule only deletes the current version of an object. Important: If versioning is enabled, this rule only deletes the current version of an object.

Important: ONEZONE_IA is only available in fr-par region. The storage class GLACIER is not available in pl-waw region. Important: ONEZONE_IA is only available in fr-par region. The storage class GLACIER is not available in pl-waw region.

days Integer
Specifies the number of days after object creation when the specific rule action takes effect.
storageClass This property is required. string

Specifies the Scaleway storage class STANDARD, GLACIER, ONEZONE_IA to which you want the object to transition.

Important: If versioning is enabled, this rule only deletes the current version of an object. Important: If versioning is enabled, this rule only deletes the current version of an object.

Important: ONEZONE_IA is only available in fr-par region. The storage class GLACIER is not available in pl-waw region. Important: ONEZONE_IA is only available in fr-par region. The storage class GLACIER is not available in pl-waw region.

days number
Specifies the number of days after object creation when the specific rule action takes effect.
storage_class This property is required. str

Specifies the Scaleway storage class STANDARD, GLACIER, ONEZONE_IA to which you want the object to transition.

Important: If versioning is enabled, this rule only deletes the current version of an object. Important: If versioning is enabled, this rule only deletes the current version of an object.

Important: ONEZONE_IA is only available in fr-par region. The storage class GLACIER is not available in pl-waw region. Important: ONEZONE_IA is only available in fr-par region. The storage class GLACIER is not available in pl-waw region.

days int
Specifies the number of days after object creation when the specific rule action takes effect.
storageClass This property is required. String

Specifies the Scaleway storage class STANDARD, GLACIER, ONEZONE_IA to which you want the object to transition.

Important: If versioning is enabled, this rule only deletes the current version of an object. Important: If versioning is enabled, this rule only deletes the current version of an object.

Important: ONEZONE_IA is only available in fr-par region. The storage class GLACIER is not available in pl-waw region. Important: ONEZONE_IA is only available in fr-par region. The storage class GLACIER is not available in pl-waw region.

days Number
Specifies the number of days after object creation when the specific rule action takes effect.

ObjectBucketVersioning
, ObjectBucketVersioningArgs

Enabled bool
Enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket.
Enabled bool
Enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket.
enabled Boolean
Enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket.
enabled boolean
Enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket.
enabled bool
Enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket.
enabled Boolean
Enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket.

Import

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

bash

$ pulumi import scaleway:index/objectBucket:ObjectBucket some_bucket fr-par/some-bucket
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/objectBucket:ObjectBucket some_bucket fr-par/some-bucket@11111111-1111-1111-1111-111111111111
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.