1. Packages
  2. Scaleway
  3. API Docs
  4. ObjectBucketWebsiteConfiguration
Scaleway v1.25.0 published on Saturday, Mar 22, 2025 by pulumiverse

scaleway.ObjectBucketWebsiteConfiguration

Explore with Pulumi AI

Deprecated: scaleway.index/objectbucketwebsiteconfiguration.ObjectBucketWebsiteConfiguration has been deprecated in favor of scaleway.object/bucketwebsiteconfiguration.BucketWebsiteConfiguration

The scaleway.object.BucketWebsiteConfiguration resource allows you to deploy and manage a bucket website with Scaleway Object storage.

Refer to the dedicated documentation for more information on bucket websites.

Example Usage

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

const main = new scaleway.object.Bucket("main", {
    name: "MyBucket",
    acl: "public-read",
});
const mainBucketWebsiteConfiguration = new scaleway.object.BucketWebsiteConfiguration("main", {
    bucket: main.id,
    indexDocument: {
        suffix: "index.html",
    },
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.object.Bucket("main",
    name="MyBucket",
    acl="public-read")
main_bucket_website_configuration = scaleway.object.BucketWebsiteConfiguration("main",
    bucket=main.id,
    index_document={
        "suffix": "index.html",
    })
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		main, err := object.NewBucket(ctx, "main", &object.BucketArgs{
			Name: pulumi.String("MyBucket"),
			Acl:  pulumi.String("public-read"),
		})
		if err != nil {
			return err
		}
		_, err = object.NewBucketWebsiteConfiguration(ctx, "main", &object.BucketWebsiteConfigurationArgs{
			Bucket: main.ID(),
			IndexDocument: &object.BucketWebsiteConfigurationIndexDocumentArgs{
				Suffix: pulumi.String("index.html"),
			},
		})
		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 = "MyBucket",
        Acl = "public-read",
    });

    var mainBucketWebsiteConfiguration = new Scaleway.Object.BucketWebsiteConfiguration("main", new()
    {
        Bucket = main.Id,
        IndexDocument = new Scaleway.Object.Inputs.BucketWebsiteConfigurationIndexDocumentArgs
        {
            Suffix = "index.html",
        },
    });

});
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.BucketWebsiteConfiguration;
import com.pulumi.scaleway.object.BucketWebsiteConfigurationArgs;
import com.pulumi.scaleway.object.inputs.BucketWebsiteConfigurationIndexDocumentArgs;
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("MyBucket")
            .acl("public-read")
            .build());

        var mainBucketWebsiteConfiguration = new BucketWebsiteConfiguration("mainBucketWebsiteConfiguration", BucketWebsiteConfigurationArgs.builder()
            .bucket(main.id())
            .indexDocument(BucketWebsiteConfigurationIndexDocumentArgs.builder()
                .suffix("index.html")
                .build())
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:object:Bucket
    properties:
      name: MyBucket
      acl: public-read
  mainBucketWebsiteConfiguration:
    type: scaleway:object:BucketWebsiteConfiguration
    name: main
    properties:
      bucket: ${main.id}
      indexDocument:
        suffix: index.html
Copy

With A Bucket Policy

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

const main = new scaleway.object.Bucket("main", {
    name: "MyBucket",
    acl: "public-read",
});
const mainBucketPolicy = new scaleway.object.BucketPolicy("main", {
    bucket: main.id,
    policy: JSON.stringify({
        Version: "2012-10-17",
        Id: "MyPolicy",
        Statement: [{
            Sid: "GrantToEveryone",
            Effect: "Allow",
            Principal: "*",
            Action: ["s3:GetObject"],
            Resource: ["<bucket-name>/*"],
        }],
    }),
});
const mainBucketWebsiteConfiguration = new scaleway.object.BucketWebsiteConfiguration("main", {
    bucket: main.id,
    indexDocument: {
        suffix: "index.html",
    },
});
Copy
import pulumi
import json
import pulumiverse_scaleway as scaleway

main = scaleway.object.Bucket("main",
    name="MyBucket",
    acl="public-read")
main_bucket_policy = scaleway.object.BucketPolicy("main",
    bucket=main.id,
    policy=json.dumps({
        "Version": "2012-10-17",
        "Id": "MyPolicy",
        "Statement": [{
            "Sid": "GrantToEveryone",
            "Effect": "Allow",
            "Principal": "*",
            "Action": ["s3:GetObject"],
            "Resource": ["<bucket-name>/*"],
        }],
    }))
main_bucket_website_configuration = scaleway.object.BucketWebsiteConfiguration("main",
    bucket=main.id,
    index_document={
        "suffix": "index.html",
    })
Copy
package main

import (
	"encoding/json"

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		main, err := object.NewBucket(ctx, "main", &object.BucketArgs{
			Name: pulumi.String("MyBucket"),
			Acl:  pulumi.String("public-read"),
		})
		if err != nil {
			return err
		}
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"Version": "2012-10-17",
			"Id":      "MyPolicy",
			"Statement": []map[string]interface{}{
				map[string]interface{}{
					"Sid":       "GrantToEveryone",
					"Effect":    "Allow",
					"Principal": "*",
					"Action": []string{
						"s3:GetObject",
					},
					"Resource": []string{
						"<bucket-name>/*",
					},
				},
			},
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		_, err = object.NewBucketPolicy(ctx, "main", &object.BucketPolicyArgs{
			Bucket: main.ID(),
			Policy: pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		_, err = object.NewBucketWebsiteConfiguration(ctx, "main", &object.BucketWebsiteConfigurationArgs{
			Bucket: main.ID(),
			IndexDocument: &object.BucketWebsiteConfigurationIndexDocumentArgs{
				Suffix: pulumi.String("index.html"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.Object.Bucket("main", new()
    {
        Name = "MyBucket",
        Acl = "public-read",
    });

    var mainBucketPolicy = new Scaleway.Object.BucketPolicy("main", new()
    {
        Bucket = main.Id,
        Policy = JsonSerializer.Serialize(new Dictionary<string, object?>
        {
            ["Version"] = "2012-10-17",
            ["Id"] = "MyPolicy",
            ["Statement"] = new[]
            {
                new Dictionary<string, object?>
                {
                    ["Sid"] = "GrantToEveryone",
                    ["Effect"] = "Allow",
                    ["Principal"] = "*",
                    ["Action"] = new[]
                    {
                        "s3:GetObject",
                    },
                    ["Resource"] = new[]
                    {
                        "<bucket-name>/*",
                    },
                },
            },
        }),
    });

    var mainBucketWebsiteConfiguration = new Scaleway.Object.BucketWebsiteConfiguration("main", new()
    {
        Bucket = main.Id,
        IndexDocument = new Scaleway.Object.Inputs.BucketWebsiteConfigurationIndexDocumentArgs
        {
            Suffix = "index.html",
        },
    });

});
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.BucketPolicy;
import com.pulumi.scaleway.object.BucketPolicyArgs;
import com.pulumi.scaleway.object.BucketWebsiteConfiguration;
import com.pulumi.scaleway.object.BucketWebsiteConfigurationArgs;
import com.pulumi.scaleway.object.inputs.BucketWebsiteConfigurationIndexDocumentArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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("MyBucket")
            .acl("public-read")
            .build());

        var mainBucketPolicy = new BucketPolicy("mainBucketPolicy", BucketPolicyArgs.builder()
            .bucket(main.id())
            .policy(serializeJson(
                jsonObject(
                    jsonProperty("Version", "2012-10-17"),
                    jsonProperty("Id", "MyPolicy"),
                    jsonProperty("Statement", jsonArray(jsonObject(
                        jsonProperty("Sid", "GrantToEveryone"),
                        jsonProperty("Effect", "Allow"),
                        jsonProperty("Principal", "*"),
                        jsonProperty("Action", jsonArray("s3:GetObject")),
                        jsonProperty("Resource", jsonArray("<bucket-name>/*"))
                    )))
                )))
            .build());

        var mainBucketWebsiteConfiguration = new BucketWebsiteConfiguration("mainBucketWebsiteConfiguration", BucketWebsiteConfigurationArgs.builder()
            .bucket(main.id())
            .indexDocument(BucketWebsiteConfigurationIndexDocumentArgs.builder()
                .suffix("index.html")
                .build())
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:object:Bucket
    properties:
      name: MyBucket
      acl: public-read
  mainBucketPolicy:
    type: scaleway:object:BucketPolicy
    name: main
    properties:
      bucket: ${main.id}
      policy:
        fn::toJSON:
          Version: 2012-10-17
          Id: MyPolicy
          Statement:
            - Sid: GrantToEveryone
              Effect: Allow
              Principal: '*'
              Action:
                - s3:GetObject
              Resource:
                - <bucket-name>/*
  mainBucketWebsiteConfiguration:
    type: scaleway:object:BucketWebsiteConfiguration
    name: main
    properties:
      bucket: ${main.id}
      indexDocument:
        suffix: index.html
Copy

Create ObjectBucketWebsiteConfiguration Resource

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

Constructor syntax

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

@overload
def ObjectBucketWebsiteConfiguration(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     bucket: Optional[str] = None,
                                     error_document: Optional[ObjectBucketWebsiteConfigurationErrorDocumentArgs] = None,
                                     index_document: Optional[ObjectBucketWebsiteConfigurationIndexDocumentArgs] = None,
                                     project_id: Optional[str] = None,
                                     region: Optional[str] = None)
func NewObjectBucketWebsiteConfiguration(ctx *Context, name string, args ObjectBucketWebsiteConfigurationArgs, opts ...ResourceOption) (*ObjectBucketWebsiteConfiguration, error)
public ObjectBucketWebsiteConfiguration(string name, ObjectBucketWebsiteConfigurationArgs args, CustomResourceOptions? opts = null)
public ObjectBucketWebsiteConfiguration(String name, ObjectBucketWebsiteConfigurationArgs args)
public ObjectBucketWebsiteConfiguration(String name, ObjectBucketWebsiteConfigurationArgs args, CustomResourceOptions options)
type: scaleway:ObjectBucketWebsiteConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ObjectBucketWebsiteConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ObjectBucketWebsiteConfigurationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ObjectBucketWebsiteConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ObjectBucketWebsiteConfigurationArgs
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. ObjectBucketWebsiteConfigurationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Bucket
This property is required.
Changes to this property will trigger replacement.
string
The name of the bucket.
IndexDocument This property is required. Pulumiverse.Scaleway.Inputs.ObjectBucketWebsiteConfigurationIndexDocument
The name of the index file for the website detailed below.
ErrorDocument Pulumiverse.Scaleway.Inputs.ObjectBucketWebsiteConfigurationErrorDocument
The name of the error file for the website detailed below.
ProjectId Changes to this property will trigger replacement. string
The project_id you want to attach the resource to
Region Changes to this property will trigger replacement. string
The region you want to attach the resource to
Bucket
This property is required.
Changes to this property will trigger replacement.
string
The name of the bucket.
IndexDocument This property is required. ObjectBucketWebsiteConfigurationIndexDocumentArgs
The name of the index file for the website detailed below.
ErrorDocument ObjectBucketWebsiteConfigurationErrorDocumentArgs
The name of the error file for the website detailed below.
ProjectId Changes to this property will trigger replacement. string
The project_id you want to attach the resource to
Region Changes to this property will trigger replacement. string
The region you want to attach the resource to
bucket
This property is required.
Changes to this property will trigger replacement.
String
The name of the bucket.
indexDocument This property is required. ObjectBucketWebsiteConfigurationIndexDocument
The name of the index file for the website detailed below.
errorDocument ObjectBucketWebsiteConfigurationErrorDocument
The name of the error file for the website detailed below.
projectId Changes to this property will trigger replacement. String
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. String
The region you want to attach the resource to
bucket
This property is required.
Changes to this property will trigger replacement.
string
The name of the bucket.
indexDocument This property is required. ObjectBucketWebsiteConfigurationIndexDocument
The name of the index file for the website detailed below.
errorDocument ObjectBucketWebsiteConfigurationErrorDocument
The name of the error file for the website detailed below.
projectId Changes to this property will trigger replacement. string
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. string
The region you want to attach the resource to
bucket
This property is required.
Changes to this property will trigger replacement.
str
The name of the bucket.
index_document This property is required. ObjectBucketWebsiteConfigurationIndexDocumentArgs
The name of the index file for the website detailed below.
error_document ObjectBucketWebsiteConfigurationErrorDocumentArgs
The name of the error file for the website detailed below.
project_id Changes to this property will trigger replacement. str
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. str
The region you want to attach the resource to
bucket
This property is required.
Changes to this property will trigger replacement.
String
The name of the bucket.
indexDocument This property is required. Property Map
The name of the index file for the website detailed below.
errorDocument Property Map
The name of the error file for the website detailed below.
projectId Changes to this property will trigger replacement. String
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. String
The region you want to attach the resource to

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
WebsiteDomain string
The domain of the website endpoint. This is used to create DNS alias records.
WebsiteEndpoint string
The website endpoint.
Id string
The provider-assigned unique ID for this managed resource.
WebsiteDomain string
The domain of the website endpoint. This is used to create DNS alias records.
WebsiteEndpoint string
The website endpoint.
id String
The provider-assigned unique ID for this managed resource.
websiteDomain String
The domain of the website endpoint. This is used to create DNS alias records.
websiteEndpoint String
The website endpoint.
id string
The provider-assigned unique ID for this managed resource.
websiteDomain string
The domain of the website endpoint. This is used to create DNS alias records.
websiteEndpoint string
The website endpoint.
id str
The provider-assigned unique ID for this managed resource.
website_domain str
The domain of the website endpoint. This is used to create DNS alias records.
website_endpoint str
The website endpoint.
id String
The provider-assigned unique ID for this managed resource.
websiteDomain String
The domain of the website endpoint. This is used to create DNS alias records.
websiteEndpoint String
The website endpoint.

Look up Existing ObjectBucketWebsiteConfiguration Resource

Get an existing ObjectBucketWebsiteConfiguration 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?: ObjectBucketWebsiteConfigurationState, opts?: CustomResourceOptions): ObjectBucketWebsiteConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bucket: Optional[str] = None,
        error_document: Optional[ObjectBucketWebsiteConfigurationErrorDocumentArgs] = None,
        index_document: Optional[ObjectBucketWebsiteConfigurationIndexDocumentArgs] = None,
        project_id: Optional[str] = None,
        region: Optional[str] = None,
        website_domain: Optional[str] = None,
        website_endpoint: Optional[str] = None) -> ObjectBucketWebsiteConfiguration
func GetObjectBucketWebsiteConfiguration(ctx *Context, name string, id IDInput, state *ObjectBucketWebsiteConfigurationState, opts ...ResourceOption) (*ObjectBucketWebsiteConfiguration, error)
public static ObjectBucketWebsiteConfiguration Get(string name, Input<string> id, ObjectBucketWebsiteConfigurationState? state, CustomResourceOptions? opts = null)
public static ObjectBucketWebsiteConfiguration get(String name, Output<String> id, ObjectBucketWebsiteConfigurationState state, CustomResourceOptions options)
resources:  _:    type: scaleway:ObjectBucketWebsiteConfiguration    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:
Bucket Changes to this property will trigger replacement. string
The name of the bucket.
ErrorDocument Pulumiverse.Scaleway.Inputs.ObjectBucketWebsiteConfigurationErrorDocument
The name of the error file for the website detailed below.
IndexDocument Pulumiverse.Scaleway.Inputs.ObjectBucketWebsiteConfigurationIndexDocument
The name of the index file for the website detailed below.
ProjectId Changes to this property will trigger replacement. string
The project_id you want to attach the resource to
Region Changes to this property will trigger replacement. string
The region you want to attach the resource to
WebsiteDomain string
The domain of the website endpoint. This is used to create DNS alias records.
WebsiteEndpoint string
The website endpoint.
Bucket Changes to this property will trigger replacement. string
The name of the bucket.
ErrorDocument ObjectBucketWebsiteConfigurationErrorDocumentArgs
The name of the error file for the website detailed below.
IndexDocument ObjectBucketWebsiteConfigurationIndexDocumentArgs
The name of the index file for the website detailed below.
ProjectId Changes to this property will trigger replacement. string
The project_id you want to attach the resource to
Region Changes to this property will trigger replacement. string
The region you want to attach the resource to
WebsiteDomain string
The domain of the website endpoint. This is used to create DNS alias records.
WebsiteEndpoint string
The website endpoint.
bucket Changes to this property will trigger replacement. String
The name of the bucket.
errorDocument ObjectBucketWebsiteConfigurationErrorDocument
The name of the error file for the website detailed below.
indexDocument ObjectBucketWebsiteConfigurationIndexDocument
The name of the index file for the website detailed below.
projectId Changes to this property will trigger replacement. String
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. String
The region you want to attach the resource to
websiteDomain String
The domain of the website endpoint. This is used to create DNS alias records.
websiteEndpoint String
The website endpoint.
bucket Changes to this property will trigger replacement. string
The name of the bucket.
errorDocument ObjectBucketWebsiteConfigurationErrorDocument
The name of the error file for the website detailed below.
indexDocument ObjectBucketWebsiteConfigurationIndexDocument
The name of the index file for the website detailed below.
projectId Changes to this property will trigger replacement. string
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. string
The region you want to attach the resource to
websiteDomain string
The domain of the website endpoint. This is used to create DNS alias records.
websiteEndpoint string
The website endpoint.
bucket Changes to this property will trigger replacement. str
The name of the bucket.
error_document ObjectBucketWebsiteConfigurationErrorDocumentArgs
The name of the error file for the website detailed below.
index_document ObjectBucketWebsiteConfigurationIndexDocumentArgs
The name of the index file for the website detailed below.
project_id Changes to this property will trigger replacement. str
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. str
The region you want to attach the resource to
website_domain str
The domain of the website endpoint. This is used to create DNS alias records.
website_endpoint str
The website endpoint.
bucket Changes to this property will trigger replacement. String
The name of the bucket.
errorDocument Property Map
The name of the error file for the website detailed below.
indexDocument Property Map
The name of the index file for the website detailed below.
projectId Changes to this property will trigger replacement. String
The project_id you want to attach the resource to
region Changes to this property will trigger replacement. String
The region you want to attach the resource to
websiteDomain String
The domain of the website endpoint. This is used to create DNS alias records.
websiteEndpoint String
The website endpoint.

Supporting Types

ObjectBucketWebsiteConfigurationErrorDocument
, ObjectBucketWebsiteConfigurationErrorDocumentArgs

Key This property is required. string
The object key name to use when a 4XX class error occurs.
Key This property is required. string
The object key name to use when a 4XX class error occurs.
key This property is required. String
The object key name to use when a 4XX class error occurs.
key This property is required. string
The object key name to use when a 4XX class error occurs.
key This property is required. str
The object key name to use when a 4XX class error occurs.
key This property is required. String
The object key name to use when a 4XX class error occurs.

ObjectBucketWebsiteConfigurationIndexDocument
, ObjectBucketWebsiteConfigurationIndexDocumentArgs

Suffix This property is required. string

A suffix that is appended to a request targeting a specific directory on the website endpoint.

Important: The suffix must not be empty and must not include a slash character. The routing is not supported.

Suffix This property is required. string

A suffix that is appended to a request targeting a specific directory on the website endpoint.

Important: The suffix must not be empty and must not include a slash character. The routing is not supported.

suffix This property is required. String

A suffix that is appended to a request targeting a specific directory on the website endpoint.

Important: The suffix must not be empty and must not include a slash character. The routing is not supported.

suffix This property is required. string

A suffix that is appended to a request targeting a specific directory on the website endpoint.

Important: The suffix must not be empty and must not include a slash character. The routing is not supported.

suffix This property is required. str

A suffix that is appended to a request targeting a specific directory on the website endpoint.

Important: The suffix must not be empty and must not include a slash character. The routing is not supported.

suffix This property is required. String

A suffix that is appended to a request targeting a specific directory on the website endpoint.

Important: The suffix must not be empty and must not include a slash character. The routing is not supported.

Import

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

bash

$ pulumi import scaleway:index/objectBucketWebsiteConfiguration:ObjectBucketWebsiteConfiguration 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/objectBucketWebsiteConfiguration:ObjectBucketWebsiteConfiguration some_bucket fr-par/some-bucket@xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
Copy

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

Package Details

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