scaleway.ObjectBucket
Explore with Pulumi AI
Creates and manages Scaleway object storage buckets. For more information, see the documentation.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
return await Deployment.RunAsync(() =>
{
var someBucket = new Scaleway.ObjectBucket("someBucket", new()
{
Tags =
{
{ "key", "value" },
},
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewObjectBucket(ctx, "someBucket", &scaleway.ObjectBucketArgs{
Tags: pulumi.StringMap{
"key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
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 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()
.tags(Map.of("key", "value"))
.build());
}
}
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
some_bucket = scaleway.ObjectBucket("someBucket", tags={
"key": "value",
})
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
const someBucket = new scaleway.ObjectBucket("someBucket", {tags: {
key: "value",
}});
resources:
someBucket:
type: scaleway:ObjectBucket
properties:
tags:
key: value
Creating the bucket in a specific project
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
return await Deployment.RunAsync(() =>
{
var someBucket = new Scaleway.ObjectBucket("someBucket", new()
{
ProjectId = "11111111-1111-1111-1111-111111111111",
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewObjectBucket(ctx, "someBucket", &scaleway.ObjectBucketArgs{
ProjectId: pulumi.String("11111111-1111-1111-1111-111111111111"),
})
if err != nil {
return err
}
return nil
})
}
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 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()
.projectId("11111111-1111-1111-1111-111111111111")
.build());
}
}
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
some_bucket = scaleway.ObjectBucket("someBucket", project_id="11111111-1111-1111-1111-111111111111")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
const someBucket = new scaleway.ObjectBucket("someBucket", {projectId: "11111111-1111-1111-1111-111111111111"});
resources:
someBucket:
type: scaleway:ObjectBucket
properties:
projectId: 11111111-1111-1111-1111-111111111111
Using object lifecycle
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
return await Deployment.RunAsync(() =>
{
var main = new Scaleway.ObjectBucket("main", new()
{
LifecycleRules = new[]
{
new Scaleway.Inputs.ObjectBucketLifecycleRuleArgs
{
Enabled = true,
Expiration = new Scaleway.Inputs.ObjectBucketLifecycleRuleExpirationArgs
{
Days = 365,
},
Id = "id1",
Prefix = "path1/",
Transitions = new[]
{
new Scaleway.Inputs.ObjectBucketLifecycleRuleTransitionArgs
{
Days = 120,
StorageClass = "GLACIER",
},
},
},
new Scaleway.Inputs.ObjectBucketLifecycleRuleArgs
{
Enabled = true,
Expiration = new Scaleway.Inputs.ObjectBucketLifecycleRuleExpirationArgs
{
Days = 50,
},
Id = "id2",
Prefix = "path2/",
},
new Scaleway.Inputs.ObjectBucketLifecycleRuleArgs
{
Enabled = false,
Expiration = new Scaleway.Inputs.ObjectBucketLifecycleRuleExpirationArgs
{
Days = 1,
},
Id = "id3",
Prefix = "path3/",
Tags =
{
{ "tagKey", "tagValue" },
{ "terraform", "hashicorp" },
},
},
new Scaleway.Inputs.ObjectBucketLifecycleRuleArgs
{
Enabled = true,
Id = "id4",
Tags =
{
{ "tag1", "value1" },
},
Transitions = new[]
{
new Scaleway.Inputs.ObjectBucketLifecycleRuleTransitionArgs
{
Days = 0,
StorageClass = "GLACIER",
},
},
},
new Scaleway.Inputs.ObjectBucketLifecycleRuleArgs
{
AbortIncompleteMultipartUploadDays = 30,
Enabled = true,
},
},
Region = "fr-par",
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewObjectBucket(ctx, "main", &scaleway.ObjectBucketArgs{
LifecycleRules: scaleway.ObjectBucketLifecycleRuleArray{
&scaleway.ObjectBucketLifecycleRuleArgs{
Enabled: pulumi.Bool(true),
Expiration: &scaleway.ObjectBucketLifecycleRuleExpirationArgs{
Days: pulumi.Int(365),
},
Id: pulumi.String("id1"),
Prefix: pulumi.String("path1/"),
Transitions: scaleway.ObjectBucketLifecycleRuleTransitionArray{
&scaleway.ObjectBucketLifecycleRuleTransitionArgs{
Days: pulumi.Int(120),
StorageClass: pulumi.String("GLACIER"),
},
},
},
&scaleway.ObjectBucketLifecycleRuleArgs{
Enabled: pulumi.Bool(true),
Expiration: &scaleway.ObjectBucketLifecycleRuleExpirationArgs{
Days: pulumi.Int(50),
},
Id: pulumi.String("id2"),
Prefix: pulumi.String("path2/"),
},
&scaleway.ObjectBucketLifecycleRuleArgs{
Enabled: pulumi.Bool(false),
Expiration: &scaleway.ObjectBucketLifecycleRuleExpirationArgs{
Days: pulumi.Int(1),
},
Id: pulumi.String("id3"),
Prefix: pulumi.String("path3/"),
Tags: pulumi.StringMap{
"tagKey": pulumi.String("tagValue"),
"terraform": pulumi.String("hashicorp"),
},
},
&scaleway.ObjectBucketLifecycleRuleArgs{
Enabled: pulumi.Bool(true),
Id: pulumi.String("id4"),
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
},
Transitions: scaleway.ObjectBucketLifecycleRuleTransitionArray{
&scaleway.ObjectBucketLifecycleRuleTransitionArgs{
Days: pulumi.Int(0),
StorageClass: pulumi.String("GLACIER"),
},
},
},
&scaleway.ObjectBucketLifecycleRuleArgs{
AbortIncompleteMultipartUploadDays: pulumi.Int(30),
Enabled: pulumi.Bool(true),
},
},
Region: pulumi.String("fr-par"),
})
if err != nil {
return err
}
return nil
})
}
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.inputs.ObjectBucketLifecycleRuleArgs;
import com.pulumi.scaleway.inputs.ObjectBucketLifecycleRuleExpirationArgs;
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()
.lifecycleRules(
ObjectBucketLifecycleRuleArgs.builder()
.enabled(true)
.expiration(ObjectBucketLifecycleRuleExpirationArgs.builder()
.days(365)
.build())
.id("id1")
.prefix("path1/")
.transitions(ObjectBucketLifecycleRuleTransitionArgs.builder()
.days(120)
.storageClass("GLACIER")
.build())
.build(),
ObjectBucketLifecycleRuleArgs.builder()
.enabled(true)
.expiration(ObjectBucketLifecycleRuleExpirationArgs.builder()
.days("50")
.build())
.id("id2")
.prefix("path2/")
.build(),
ObjectBucketLifecycleRuleArgs.builder()
.enabled(false)
.expiration(ObjectBucketLifecycleRuleExpirationArgs.builder()
.days("1")
.build())
.id("id3")
.prefix("path3/")
.tags(Map.ofEntries(
Map.entry("tagKey", "tagValue"),
Map.entry("terraform", "hashicorp")
))
.build(),
ObjectBucketLifecycleRuleArgs.builder()
.enabled(true)
.id("id4")
.tags(Map.of("tag1", "value1"))
.transitions(ObjectBucketLifecycleRuleTransitionArgs.builder()
.days(0)
.storageClass("GLACIER")
.build())
.build(),
ObjectBucketLifecycleRuleArgs.builder()
.abortIncompleteMultipartUploadDays(30)
.enabled(true)
.build())
.region("fr-par")
.build());
}
}
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
main = scaleway.ObjectBucket("main",
lifecycle_rules=[
scaleway.ObjectBucketLifecycleRuleArgs(
enabled=True,
expiration=scaleway.ObjectBucketLifecycleRuleExpirationArgs(
days=365,
),
id="id1",
prefix="path1/",
transitions=[scaleway.ObjectBucketLifecycleRuleTransitionArgs(
days=120,
storage_class="GLACIER",
)],
),
scaleway.ObjectBucketLifecycleRuleArgs(
enabled=True,
expiration=scaleway.ObjectBucketLifecycleRuleExpirationArgs(
days=50,
),
id="id2",
prefix="path2/",
),
scaleway.ObjectBucketLifecycleRuleArgs(
enabled=False,
expiration=scaleway.ObjectBucketLifecycleRuleExpirationArgs(
days=1,
),
id="id3",
prefix="path3/",
tags={
"tagKey": "tagValue",
"terraform": "hashicorp",
},
),
scaleway.ObjectBucketLifecycleRuleArgs(
enabled=True,
id="id4",
tags={
"tag1": "value1",
},
transitions=[scaleway.ObjectBucketLifecycleRuleTransitionArgs(
days=0,
storage_class="GLACIER",
)],
),
scaleway.ObjectBucketLifecycleRuleArgs(
abort_incomplete_multipart_upload_days=30,
enabled=True,
),
],
region="fr-par")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
const main = new scaleway.ObjectBucket("main", {
lifecycleRules: [
{
enabled: true,
expiration: {
days: 365,
},
id: "id1",
prefix: "path1/",
transitions: [{
days: 120,
storageClass: "GLACIER",
}],
},
{
enabled: true,
expiration: {
days: 50,
},
id: "id2",
prefix: "path2/",
},
{
enabled: false,
expiration: {
days: 1,
},
id: "id3",
prefix: "path3/",
tags: {
tagKey: "tagValue",
terraform: "hashicorp",
},
},
{
enabled: true,
id: "id4",
tags: {
tag1: "value1",
},
transitions: [{
days: 0,
storageClass: "GLACIER",
}],
},
{
abortIncompleteMultipartUploadDays: 30,
enabled: true,
},
],
region: "fr-par",
});
resources:
main:
type: scaleway:ObjectBucket
properties:
lifecycleRules:
- enabled: true
expiration:
days: 365
id: id1
prefix: path1/
transitions:
- days: 120
storageClass: GLACIER
- enabled: true
expiration:
days: '50'
id: id2
prefix: path2/
- enabled: false
expiration:
days: '1'
id: id3
prefix: path3/
tags:
tagKey: tagValue
terraform: hashicorp
- enabled: true
id: id4
tags:
tag1: value1
transitions:
- days: 0
storageClass: GLACIER
- abortIncompleteMultipartUploadDays: 30
enabled: true
region: fr-par
Create ObjectBucket Resource
new ObjectBucket(name: string, args?: ObjectBucketArgs, opts?: CustomResourceOptions);
@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)
@overload
def ObjectBucket(resource_name: str,
args: Optional[ObjectBucketArgs] = None,
opts: Optional[ResourceOptions] = 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.
- name 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 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 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 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 String
- The unique name of the resource.
- args 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
The ObjectBucket resource accepts the following input properties:
- Acl string
(Deprecated) The canned ACL you want to apply to the bucket.
ACL attribute is deprecated. Please use the resource scaleway_object_bucket_acl instead.
- Cors
Rules List<Lbrlabs.Pulumi Package. Scaleway. Inputs. Object Bucket Cors Rule> A rule of Cross-Origin Resource Sharing (documented below).
- Force
Destroy bool Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and not recoverable
- Lifecycle
Rules List<Lbrlabs.Pulumi Package. Scaleway. Inputs. Object Bucket Lifecycle Rule> Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
- Name string
The name of the bucket.
- Object
Lock boolEnabled Enable object lock
- Project
Id string project_id
) The ID of the project the bucket is associated with.The
acl
attribute is deprecated. See scaleway.ObjectBucketAcl resource documentation. Please check the canned ACL documentation for supported values.- Region string
The region in which the bucket should be created.
- Dictionary<string, string>
A list of tags (key / value) for the bucket.
- Versioning
Lbrlabs.
Pulumi Package. Scaleway. Inputs. Object Bucket Versioning A state of versioning (documented below)
- Acl string
(Deprecated) The canned ACL you want to apply to the bucket.
ACL attribute is deprecated. Please use the resource scaleway_object_bucket_acl instead.
- Cors
Rules []ObjectBucket Cors Rule Args A rule of Cross-Origin Resource Sharing (documented below).
- Force
Destroy bool Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and not recoverable
- Lifecycle
Rules []ObjectBucket Lifecycle Rule Args Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
- Name string
The name of the bucket.
- Object
Lock boolEnabled Enable object lock
- Project
Id string project_id
) The ID of the project the bucket is associated with.The
acl
attribute is deprecated. See scaleway.ObjectBucketAcl resource documentation. Please check the canned ACL documentation for supported values.- Region string
The region in which the bucket should be created.
- map[string]string
A list of tags (key / value) for the bucket.
- Versioning
Object
Bucket Versioning Args A state of versioning (documented below)
- acl String
(Deprecated) The canned ACL you want to apply to the bucket.
ACL attribute is deprecated. Please use the resource scaleway_object_bucket_acl instead.
- cors
Rules List<ObjectBucket Cors Rule> A rule of Cross-Origin Resource Sharing (documented below).
- force
Destroy Boolean Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and not recoverable
- lifecycle
Rules List<ObjectBucket Lifecycle Rule> Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
- name String
The name of the bucket.
- object
Lock BooleanEnabled Enable object lock
- project
Id String project_id
) The ID of the project the bucket is associated with.The
acl
attribute is deprecated. See scaleway.ObjectBucketAcl resource documentation. Please check the canned ACL documentation for supported values.- region String
The region in which the bucket should be created.
- Map<String,String>
A list of tags (key / value) for the bucket.
- versioning
Object
Bucket Versioning A state of versioning (documented below)
- acl string
(Deprecated) The canned ACL you want to apply to the bucket.
ACL attribute is deprecated. Please use the resource scaleway_object_bucket_acl instead.
- cors
Rules ObjectBucket Cors Rule[] A rule of Cross-Origin Resource Sharing (documented below).
- force
Destroy boolean Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and not recoverable
- lifecycle
Rules ObjectBucket Lifecycle Rule[] Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
- name string
The name of the bucket.
- object
Lock booleanEnabled Enable object lock
- project
Id string project_id
) The ID of the project the bucket is associated with.The
acl
attribute is deprecated. See scaleway.ObjectBucketAcl resource documentation. Please check the canned ACL documentation for supported values.- region string
The region in which the bucket should be created.
- {[key: string]: string}
A list of tags (key / value) for the bucket.
- versioning
Object
Bucket Versioning A state of versioning (documented below)
- acl str
(Deprecated) The canned ACL you want to apply to the bucket.
ACL attribute is deprecated. Please use the resource scaleway_object_bucket_acl instead.
- cors_
rules Sequence[ObjectBucket Cors Rule Args] A rule of Cross-Origin Resource Sharing (documented below).
- force_
destroy bool Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and not recoverable
- lifecycle_
rules Sequence[ObjectBucket Lifecycle Rule Args] Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
- name str
The name of the bucket.
- object_
lock_ boolenabled Enable object lock
- project_
id str project_id
) The ID of the project the bucket is associated with.The
acl
attribute is deprecated. See scaleway.ObjectBucketAcl resource documentation. Please check the canned ACL documentation for supported values.- region str
The region in which the bucket should be created.
- Mapping[str, str]
A list of tags (key / value) for the bucket.
- versioning
Object
Bucket Versioning Args A state of versioning (documented below)
- acl String
(Deprecated) The canned ACL you want to apply to the bucket.
ACL attribute is deprecated. Please use the resource scaleway_object_bucket_acl instead.
- cors
Rules List<Property Map> A rule of Cross-Origin Resource Sharing (documented below).
- force
Destroy Boolean Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and not recoverable
- lifecycle
Rules List<Property Map> Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
- name String
The name of the bucket.
- object
Lock BooleanEnabled Enable object lock
- project
Id String project_id
) The ID of the project the bucket is associated with.The
acl
attribute is deprecated. See scaleway.ObjectBucketAcl resource documentation. Please check the canned ACL documentation for supported values.- region String
The region in which the bucket should be created.
- Map<String>
A list of tags (key / value) for the bucket.
- versioning Property Map
A state of versioning (documented below)
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectBucket resource produces the following output properties:
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,
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)
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.
- Acl string
(Deprecated) The canned ACL you want to apply to the bucket.
ACL attribute is deprecated. Please use the resource scaleway_object_bucket_acl instead.
- Cors
Rules List<Lbrlabs.Pulumi Package. Scaleway. Inputs. Object Bucket Cors Rule> A rule of Cross-Origin Resource Sharing (documented below).
- Endpoint string
The endpoint URL of the bucket
- Force
Destroy bool Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and not recoverable
- Lifecycle
Rules List<Lbrlabs.Pulumi Package. Scaleway. Inputs. Object Bucket Lifecycle Rule> Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
- Name string
The name of the bucket.
- Object
Lock boolEnabled Enable object lock
- Project
Id string project_id
) The ID of the project the bucket is associated with.The
acl
attribute is deprecated. See scaleway.ObjectBucketAcl resource documentation. Please check the canned ACL documentation for supported values.- Region string
The region in which the bucket should be created.
- Dictionary<string, string>
A list of tags (key / value) for the bucket.
- Versioning
Lbrlabs.
Pulumi Package. Scaleway. Inputs. Object Bucket Versioning A state of versioning (documented below)
- Acl string
(Deprecated) The canned ACL you want to apply to the bucket.
ACL attribute is deprecated. Please use the resource scaleway_object_bucket_acl instead.
- Cors
Rules []ObjectBucket Cors Rule Args A rule of Cross-Origin Resource Sharing (documented below).
- Endpoint string
The endpoint URL of the bucket
- Force
Destroy bool Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and not recoverable
- Lifecycle
Rules []ObjectBucket Lifecycle Rule Args Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
- Name string
The name of the bucket.
- Object
Lock boolEnabled Enable object lock
- Project
Id string project_id
) The ID of the project the bucket is associated with.The
acl
attribute is deprecated. See scaleway.ObjectBucketAcl resource documentation. Please check the canned ACL documentation for supported values.- Region string
The region in which the bucket should be created.
- map[string]string
A list of tags (key / value) for the bucket.
- Versioning
Object
Bucket Versioning Args A state of versioning (documented below)
- acl String
(Deprecated) The canned ACL you want to apply to the bucket.
ACL attribute is deprecated. Please use the resource scaleway_object_bucket_acl instead.
- cors
Rules List<ObjectBucket Cors Rule> A rule of Cross-Origin Resource Sharing (documented below).
- endpoint String
The endpoint URL of the bucket
- force
Destroy Boolean Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and not recoverable
- lifecycle
Rules List<ObjectBucket Lifecycle Rule> Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
- name String
The name of the bucket.
- object
Lock BooleanEnabled Enable object lock
- project
Id String project_id
) The ID of the project the bucket is associated with.The
acl
attribute is deprecated. See scaleway.ObjectBucketAcl resource documentation. Please check the canned ACL documentation for supported values.- region String
The region in which the bucket should be created.
- Map<String,String>
A list of tags (key / value) for the bucket.
- versioning
Object
Bucket Versioning A state of versioning (documented below)
- acl string
(Deprecated) The canned ACL you want to apply to the bucket.
ACL attribute is deprecated. Please use the resource scaleway_object_bucket_acl instead.
- cors
Rules ObjectBucket Cors Rule[] A rule of Cross-Origin Resource Sharing (documented below).
- endpoint string
The endpoint URL of the bucket
- force
Destroy boolean Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and not recoverable
- lifecycle
Rules ObjectBucket Lifecycle Rule[] Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
- name string
The name of the bucket.
- object
Lock booleanEnabled Enable object lock
- project
Id string project_id
) The ID of the project the bucket is associated with.The
acl
attribute is deprecated. See scaleway.ObjectBucketAcl resource documentation. Please check the canned ACL documentation for supported values.- region string
The region in which the bucket should be created.
- {[key: string]: string}
A list of tags (key / value) for the bucket.
- versioning
Object
Bucket Versioning A state of versioning (documented below)
- acl str
(Deprecated) The canned ACL you want to apply to the bucket.
ACL attribute is deprecated. Please use the resource scaleway_object_bucket_acl instead.
- cors_
rules Sequence[ObjectBucket Cors Rule Args] A rule of Cross-Origin Resource Sharing (documented below).
- endpoint str
The endpoint URL of the bucket
- force_
destroy bool Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and not recoverable
- lifecycle_
rules Sequence[ObjectBucket Lifecycle Rule Args] Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
- name str
The name of the bucket.
- object_
lock_ boolenabled Enable object lock
- project_
id str project_id
) The ID of the project the bucket is associated with.The
acl
attribute is deprecated. See scaleway.ObjectBucketAcl resource documentation. Please check the canned ACL documentation for supported values.- region str
The region in which the bucket should be created.
- Mapping[str, str]
A list of tags (key / value) for the bucket.
- versioning
Object
Bucket Versioning Args A state of versioning (documented below)
- acl String
(Deprecated) The canned ACL you want to apply to the bucket.
ACL attribute is deprecated. Please use the resource scaleway_object_bucket_acl instead.
- cors
Rules List<Property Map> A rule of Cross-Origin Resource Sharing (documented below).
- endpoint String
The endpoint URL of the bucket
- force
Destroy Boolean Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and not recoverable
- lifecycle
Rules List<Property Map> Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
- name String
The name of the bucket.
- object
Lock BooleanEnabled Enable object lock
- project
Id String project_id
) The ID of the project the bucket is associated with.The
acl
attribute is deprecated. See scaleway.ObjectBucketAcl resource documentation. Please check the canned ACL documentation for supported values.- region String
The region in which the bucket should be created.
- Map<String>
A list of tags (key / value) for the bucket.
- versioning Property Map
A state of versioning (documented below)
Supporting Types
ObjectBucketCorsRule, ObjectBucketCorsRuleArgs
- Allowed
Methods List<string> Specifies which methods are allowed. Can be
GET
,PUT
,POST
,DELETE
orHEAD
.- Allowed
Origins List<string> Specifies which origins are allowed.
- Allowed
Headers List<string> Specifies which headers are allowed.
- Expose
Headers List<string> Specifies expose header in the response.
- Max
Age intSeconds Specifies time in seconds that browser can cache the response for a preflight request.
- Allowed
Methods []string Specifies which methods are allowed. Can be
GET
,PUT
,POST
,DELETE
orHEAD
.- Allowed
Origins []string Specifies which origins are allowed.
- Allowed
Headers []string Specifies which headers are allowed.
- Expose
Headers []string Specifies expose header in the response.
- Max
Age intSeconds Specifies time in seconds that browser can cache the response for a preflight request.
- allowed
Methods List<String> Specifies which methods are allowed. Can be
GET
,PUT
,POST
,DELETE
orHEAD
.- allowed
Origins List<String> Specifies which origins are allowed.
- allowed
Headers List<String> Specifies which headers are allowed.
- expose
Headers List<String> Specifies expose header in the response.
- max
Age IntegerSeconds Specifies time in seconds that browser can cache the response for a preflight request.
- allowed
Methods string[] Specifies which methods are allowed. Can be
GET
,PUT
,POST
,DELETE
orHEAD
.- allowed
Origins string[] Specifies which origins are allowed.
- allowed
Headers string[] Specifies which headers are allowed.
- expose
Headers string[] Specifies expose header in the response.
- max
Age numberSeconds Specifies time in seconds that browser can cache the response for a preflight request.
- allowed_
methods Sequence[str] Specifies which methods are allowed. Can be
GET
,PUT
,POST
,DELETE
orHEAD
.- allowed_
origins Sequence[str] Specifies which origins are allowed.
- allowed_
headers Sequence[str] Specifies which headers are allowed.
- expose_
headers Sequence[str] Specifies expose header in the response.
- max_
age_ intseconds Specifies time in seconds that browser can cache the response for a preflight request.
- allowed
Methods List<String> Specifies which methods are allowed. Can be
GET
,PUT
,POST
,DELETE
orHEAD
.- allowed
Origins List<String> Specifies which origins are allowed.
- allowed
Headers List<String> Specifies which headers are allowed.
- expose
Headers List<String> Specifies expose header in the response.
- max
Age NumberSeconds Specifies time in seconds that browser can cache the response for a preflight request.
ObjectBucketLifecycleRule, ObjectBucketLifecycleRuleArgs
- Enabled bool
The element value can be either Enabled or Disabled. If a rule is disabled, Scaleway S3 doesn't perform any of the actions defined in the rule.
- Abort
Incomplete intMultipart Upload Days Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.
Important: It's not recommended using
prefix
forAbortIncompleteMultipartUpload
as any incomplete multipart upload will be billed
- Expiration
Lbrlabs.
Pulumi Package. Scaleway. Inputs. Object Bucket Lifecycle Rule Expiration Specifies a period in the object's expire (documented below).
- 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.
- Dictionary<string, string>
Specifies object tags key and value.
- Transitions
List<Lbrlabs.
Pulumi Package. Scaleway. Inputs. Object Bucket Lifecycle Rule Transition> Specifies a period in the object's transitions (documented below).
At least one of
abort_incomplete_multipart_upload_days
,expiration
,transition
must be specified.
- Enabled bool
The element value can be either Enabled or Disabled. If a rule is disabled, Scaleway S3 doesn't perform any of the actions defined in the rule.
- Abort
Incomplete intMultipart Upload Days Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.
Important: It's not recommended using
prefix
forAbortIncompleteMultipartUpload
as any incomplete multipart upload will be billed
- Expiration
Object
Bucket Lifecycle Rule Expiration Specifies a period in the object's expire (documented below).
- 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.
- map[string]string
Specifies object tags key and value.
- Transitions
[]Object
Bucket Lifecycle Rule Transition Specifies a period in the object's transitions (documented below).
At least one of
abort_incomplete_multipart_upload_days
,expiration
,transition
must be specified.
- enabled Boolean
The element value can be either Enabled or Disabled. If a rule is disabled, Scaleway S3 doesn't perform any of the actions defined in the rule.
- abort
Incomplete IntegerMultipart Upload Days Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.
Important: It's not recommended using
prefix
forAbortIncompleteMultipartUpload
as any incomplete multipart upload will be billed
- expiration
Object
Bucket Lifecycle Rule Expiration Specifies a period in the object's expire (documented below).
- 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.
- Map<String,String>
Specifies object tags key and value.
- transitions
List<Object
Bucket Lifecycle Rule Transition> Specifies a period in the object's transitions (documented below).
At least one of
abort_incomplete_multipart_upload_days
,expiration
,transition
must be specified.
- enabled boolean
The element value can be either Enabled or Disabled. If a rule is disabled, Scaleway S3 doesn't perform any of the actions defined in the rule.
- abort
Incomplete numberMultipart Upload Days Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.
Important: It's not recommended using
prefix
forAbortIncompleteMultipartUpload
as any incomplete multipart upload will be billed
- expiration
Object
Bucket Lifecycle Rule Expiration Specifies a period in the object's expire (documented below).
- 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.
- {[key: string]: string}
Specifies object tags key and value.
- transitions
Object
Bucket Lifecycle Rule Transition[] Specifies a period in the object's transitions (documented below).
At least one of
abort_incomplete_multipart_upload_days
,expiration
,transition
must be specified.
- enabled bool
The element value can be either Enabled or Disabled. If a rule is disabled, Scaleway S3 doesn't perform any of the actions defined in the rule.
- abort_
incomplete_ intmultipart_ upload_ days Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.
Important: It's not recommended using
prefix
forAbortIncompleteMultipartUpload
as any incomplete multipart upload will be billed
- expiration
Object
Bucket Lifecycle Rule Expiration Specifies a period in the object's expire (documented below).
- 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.
- Mapping[str, str]
Specifies object tags key and value.
- transitions
Sequence[Object
Bucket Lifecycle Rule Transition] Specifies a period in the object's transitions (documented below).
At least one of
abort_incomplete_multipart_upload_days
,expiration
,transition
must be specified.
- enabled Boolean
The element value can be either Enabled or Disabled. If a rule is disabled, Scaleway S3 doesn't perform any of the actions defined in the rule.
- abort
Incomplete NumberMultipart Upload Days Specifies the number of days after initiating a multipart upload when the multipart upload must be completed.
Important: It's not recommended using
prefix
forAbortIncompleteMultipartUpload
as any incomplete multipart upload will be billed
- expiration Property Map
Specifies a period in the object's expire (documented below).
- 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.
- Map<String>
Specifies object tags key and value.
- transitions List<Property Map>
Specifies a period in the object's transitions (documented below).
At least one of
abort_incomplete_multipart_upload_days
,expiration
,transition
must be specified.
ObjectBucketLifecycleRuleExpiration, ObjectBucketLifecycleRuleExpirationArgs
- Days int
Specifies the number of days after object creation when the specific rule action takes effect.
Important: If versioning is enabled, this rule only deletes the current version of an object.
- Days int
Specifies the number of days after object creation when the specific rule action takes effect.
Important: If versioning is enabled, this rule only deletes the current version of an object.
- days Integer
Specifies the number of days after object creation when the specific rule action takes effect.
Important: If versioning is enabled, this rule only deletes the current version of an object.
- days number
Specifies the number of days after object creation when the specific rule action takes effect.
Important: If versioning is enabled, this rule only deletes the current version of an object.
- days int
Specifies the number of days after object creation when the specific rule action takes effect.
Important: If versioning is enabled, this rule only deletes the current version of an object.
- days Number
Specifies the number of days after object creation when the specific rule action takes effect.
Important: If versioning is enabled, this rule only deletes the current version of an object.
ObjectBucketLifecycleRuleTransition, ObjectBucketLifecycleRuleTransitionArgs
- Storage
Class string Specifies the Scaleway storage class
STANDARD
,GLACIER
,ONEZONE_IA
to which you want the object to transition.Important:
ONEZONE_IA
is only available infr-par
region. The storage classGLACIER
is not available inpl-waw
region.- Days int
Specifies the number of days after object creation when the specific rule action takes effect.
- Storage
Class string Specifies the Scaleway storage class
STANDARD
,GLACIER
,ONEZONE_IA
to which you want the object to transition.Important:
ONEZONE_IA
is only available infr-par
region. The storage classGLACIER
is not available inpl-waw
region.- Days int
Specifies the number of days after object creation when the specific rule action takes effect.
- storage
Class String Specifies the Scaleway storage class
STANDARD
,GLACIER
,ONEZONE_IA
to which you want the object to transition.Important:
ONEZONE_IA
is only available infr-par
region. The storage classGLACIER
is not available inpl-waw
region.- days Integer
Specifies the number of days after object creation when the specific rule action takes effect.
- storage
Class string Specifies the Scaleway storage class
STANDARD
,GLACIER
,ONEZONE_IA
to which you want the object to transition.Important:
ONEZONE_IA
is only available infr-par
region. The storage classGLACIER
is not available inpl-waw
region.- days number
Specifies the number of days after object creation when the specific rule action takes effect.
- storage_
class str Specifies the Scaleway storage class
STANDARD
,GLACIER
,ONEZONE_IA
to which you want the object to transition.Important:
ONEZONE_IA
is only available infr-par
region. The storage classGLACIER
is not available inpl-waw
region.- days int
Specifies the number of days after object creation when the specific rule action takes effect.
- storage
Class String Specifies the Scaleway storage class
STANDARD
,GLACIER
,ONEZONE_IA
to which you want the object to transition.Important:
ONEZONE_IA
is only available infr-par
region. The storage classGLACIER
is not available inpl-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, e.g. bash
$ pulumi import scaleway:index/objectBucket:ObjectBucket some_bucket fr-par/some-bucket
If you are importing a bucket from a specific project (that is not your default project), you can use the following syntaxbash
$ pulumi import scaleway:index/objectBucket:ObjectBucket some_bucket fr-par/some-bucket@11111111-1111-1111-1111-111111111111
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.