1. Packages
  2. Scaleway
  3. API Docs
  4. ObjectBucketWebsiteConfiguration
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

scaleway.ObjectBucketWebsiteConfiguration

Explore with Pulumi AI

scaleway logo
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

    Provides an Object bucket website configuration resource. For more information, see Hosting Websites on Object bucket.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const mainObjectBucket = new scaleway.ObjectBucket("mainObjectBucket", {acl: "public-read"});
    const mainObjectBucketWebsiteConfiguration = new scaleway.ObjectBucketWebsiteConfiguration("mainObjectBucketWebsiteConfiguration", {
        bucket: mainObjectBucket.id,
        indexDocument: {
            suffix: "index.html",
        },
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    main_object_bucket = scaleway.ObjectBucket("mainObjectBucket", acl="public-read")
    main_object_bucket_website_configuration = scaleway.ObjectBucketWebsiteConfiguration("mainObjectBucketWebsiteConfiguration",
        bucket=main_object_bucket.id,
        index_document=scaleway.ObjectBucketWebsiteConfigurationIndexDocumentArgs(
            suffix="index.html",
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		mainObjectBucket, err := scaleway.NewObjectBucket(ctx, "mainObjectBucket", &scaleway.ObjectBucketArgs{
    			Acl: pulumi.String("public-read"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewObjectBucketWebsiteConfiguration(ctx, "mainObjectBucketWebsiteConfiguration", &scaleway.ObjectBucketWebsiteConfigurationArgs{
    			Bucket: mainObjectBucket.ID(),
    			IndexDocument: &scaleway.ObjectBucketWebsiteConfigurationIndexDocumentArgs{
    				Suffix: pulumi.String("index.html"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var mainObjectBucket = new Scaleway.ObjectBucket("mainObjectBucket", new()
        {
            Acl = "public-read",
        });
    
        var mainObjectBucketWebsiteConfiguration = new Scaleway.ObjectBucketWebsiteConfiguration("mainObjectBucketWebsiteConfiguration", new()
        {
            Bucket = mainObjectBucket.Id,
            IndexDocument = new Scaleway.Inputs.ObjectBucketWebsiteConfigurationIndexDocumentArgs
            {
                Suffix = "index.html",
            },
        });
    
    });
    
    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.ObjectBucketWebsiteConfiguration;
    import com.pulumi.scaleway.ObjectBucketWebsiteConfigurationArgs;
    import com.pulumi.scaleway.inputs.ObjectBucketWebsiteConfigurationIndexDocumentArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var mainObjectBucket = new ObjectBucket("mainObjectBucket", ObjectBucketArgs.builder()        
                .acl("public-read")
                .build());
    
            var mainObjectBucketWebsiteConfiguration = new ObjectBucketWebsiteConfiguration("mainObjectBucketWebsiteConfiguration", ObjectBucketWebsiteConfigurationArgs.builder()        
                .bucket(mainObjectBucket.id())
                .indexDocument(ObjectBucketWebsiteConfigurationIndexDocumentArgs.builder()
                    .suffix("index.html")
                    .build())
                .build());
    
        }
    }
    
    resources:
      mainObjectBucket:
        type: scaleway:ObjectBucket
        properties:
          acl: public-read
      mainObjectBucketWebsiteConfiguration:
        type: scaleway:ObjectBucketWebsiteConfiguration
        properties:
          bucket: ${mainObjectBucket.id}
          indexDocument:
            suffix: index.html
    

    With Policy

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const mainObjectBucket = new scaleway.ObjectBucket("mainObjectBucket", {acl: "public-read"});
    const mainObjectBucketPolicy = new scaleway.ObjectBucketPolicy("mainObjectBucketPolicy", {
        bucket: mainObjectBucket.id,
        policy: JSON.stringify({
            Version: "2012-10-17",
            Id: "MyPolicy",
            Statement: [{
                Sid: "GrantToEveryone",
                Effect: "Allow",
                Principal: "*",
                Action: ["s3:GetObject"],
                Resource: ["<bucket-name>/*"],
            }],
        }),
    });
    const mainObjectBucketWebsiteConfiguration = new scaleway.ObjectBucketWebsiteConfiguration("mainObjectBucketWebsiteConfiguration", {
        bucket: mainObjectBucket.id,
        indexDocument: {
            suffix: "index.html",
        },
    });
    
    import pulumi
    import json
    import pulumiverse_scaleway as scaleway
    
    main_object_bucket = scaleway.ObjectBucket("mainObjectBucket", acl="public-read")
    main_object_bucket_policy = scaleway.ObjectBucketPolicy("mainObjectBucketPolicy",
        bucket=main_object_bucket.id,
        policy=json.dumps({
            "Version": "2012-10-17",
            "Id": "MyPolicy",
            "Statement": [{
                "Sid": "GrantToEveryone",
                "Effect": "Allow",
                "Principal": "*",
                "Action": ["s3:GetObject"],
                "Resource": ["<bucket-name>/*"],
            }],
        }))
    main_object_bucket_website_configuration = scaleway.ObjectBucketWebsiteConfiguration("mainObjectBucketWebsiteConfiguration",
        bucket=main_object_bucket.id,
        index_document=scaleway.ObjectBucketWebsiteConfigurationIndexDocumentArgs(
            suffix="index.html",
        ))
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		mainObjectBucket, err := scaleway.NewObjectBucket(ctx, "mainObjectBucket", &scaleway.ObjectBucketArgs{
    			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 = scaleway.NewObjectBucketPolicy(ctx, "mainObjectBucketPolicy", &scaleway.ObjectBucketPolicyArgs{
    			Bucket: mainObjectBucket.ID(),
    			Policy: pulumi.String(json0),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewObjectBucketWebsiteConfiguration(ctx, "mainObjectBucketWebsiteConfiguration", &scaleway.ObjectBucketWebsiteConfigurationArgs{
    			Bucket: mainObjectBucket.ID(),
    			IndexDocument: &scaleway.ObjectBucketWebsiteConfigurationIndexDocumentArgs{
    				Suffix: pulumi.String("index.html"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var mainObjectBucket = new Scaleway.ObjectBucket("mainObjectBucket", new()
        {
            Acl = "public-read",
        });
    
        var mainObjectBucketPolicy = new Scaleway.ObjectBucketPolicy("mainObjectBucketPolicy", new()
        {
            Bucket = mainObjectBucket.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 mainObjectBucketWebsiteConfiguration = new Scaleway.ObjectBucketWebsiteConfiguration("mainObjectBucketWebsiteConfiguration", new()
        {
            Bucket = mainObjectBucket.Id,
            IndexDocument = new Scaleway.Inputs.ObjectBucketWebsiteConfigurationIndexDocumentArgs
            {
                Suffix = "index.html",
            },
        });
    
    });
    
    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.ObjectBucketPolicy;
    import com.pulumi.scaleway.ObjectBucketPolicyArgs;
    import com.pulumi.scaleway.ObjectBucketWebsiteConfiguration;
    import com.pulumi.scaleway.ObjectBucketWebsiteConfigurationArgs;
    import com.pulumi.scaleway.inputs.ObjectBucketWebsiteConfigurationIndexDocumentArgs;
    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 mainObjectBucket = new ObjectBucket("mainObjectBucket", ObjectBucketArgs.builder()        
                .acl("public-read")
                .build());
    
            var mainObjectBucketPolicy = new ObjectBucketPolicy("mainObjectBucketPolicy", ObjectBucketPolicyArgs.builder()        
                .bucket(mainObjectBucket.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 mainObjectBucketWebsiteConfiguration = new ObjectBucketWebsiteConfiguration("mainObjectBucketWebsiteConfiguration", ObjectBucketWebsiteConfigurationArgs.builder()        
                .bucket(mainObjectBucket.id())
                .indexDocument(ObjectBucketWebsiteConfigurationIndexDocumentArgs.builder()
                    .suffix("index.html")
                    .build())
                .build());
    
        }
    }
    
    resources:
      mainObjectBucket:
        type: scaleway:ObjectBucket
        properties:
          acl: public-read
      mainObjectBucketPolicy:
        type: scaleway:ObjectBucketPolicy
        properties:
          bucket: ${mainObjectBucket.id}
          policy:
            fn::toJSON:
              Version: 2012-10-17
              Id: MyPolicy
              Statement:
                - Sid: GrantToEveryone
                  Effect: Allow
                  Principal: '*'
                  Action:
                    - s3:GetObject
                  Resource:
                    - <bucket-name>/*
      mainObjectBucketWebsiteConfiguration:
        type: scaleway:ObjectBucketWebsiteConfiguration
        properties:
          bucket: ${mainObjectBucket.id}
          indexDocument:
            suffix: index.html
    

    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,
                                         index_document: Optional[ObjectBucketWebsiteConfigurationIndexDocumentArgs] = None,
                                         error_document: Optional[ObjectBucketWebsiteConfigurationErrorDocumentArgs] = 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 string
    The unique name of the resource.
    args ObjectBucketWebsiteConfigurationArgs
    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 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 string
    The unique name of the resource.
    args ObjectBucketWebsiteConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectBucketWebsiteConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectBucketWebsiteConfigurationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var objectBucketWebsiteConfigurationResource = new Scaleway.ObjectBucketWebsiteConfiguration("objectBucketWebsiteConfigurationResource", new()
    {
        Bucket = "string",
        IndexDocument = new Scaleway.Inputs.ObjectBucketWebsiteConfigurationIndexDocumentArgs
        {
            Suffix = "string",
        },
        ErrorDocument = new Scaleway.Inputs.ObjectBucketWebsiteConfigurationErrorDocumentArgs
        {
            Key = "string",
        },
        ProjectId = "string",
        Region = "string",
    });
    
    example, err := scaleway.NewObjectBucketWebsiteConfiguration(ctx, "objectBucketWebsiteConfigurationResource", &scaleway.ObjectBucketWebsiteConfigurationArgs{
    	Bucket: pulumi.String("string"),
    	IndexDocument: &scaleway.ObjectBucketWebsiteConfigurationIndexDocumentArgs{
    		Suffix: pulumi.String("string"),
    	},
    	ErrorDocument: &scaleway.ObjectBucketWebsiteConfigurationErrorDocumentArgs{
    		Key: pulumi.String("string"),
    	},
    	ProjectId: pulumi.String("string"),
    	Region:    pulumi.String("string"),
    })
    
    var objectBucketWebsiteConfigurationResource = new ObjectBucketWebsiteConfiguration("objectBucketWebsiteConfigurationResource", ObjectBucketWebsiteConfigurationArgs.builder()
        .bucket("string")
        .indexDocument(ObjectBucketWebsiteConfigurationIndexDocumentArgs.builder()
            .suffix("string")
            .build())
        .errorDocument(ObjectBucketWebsiteConfigurationErrorDocumentArgs.builder()
            .key("string")
            .build())
        .projectId("string")
        .region("string")
        .build());
    
    object_bucket_website_configuration_resource = scaleway.ObjectBucketWebsiteConfiguration("objectBucketWebsiteConfigurationResource",
        bucket="string",
        index_document=scaleway.ObjectBucketWebsiteConfigurationIndexDocumentArgs(
            suffix="string",
        ),
        error_document=scaleway.ObjectBucketWebsiteConfigurationErrorDocumentArgs(
            key="string",
        ),
        project_id="string",
        region="string")
    
    const objectBucketWebsiteConfigurationResource = new scaleway.ObjectBucketWebsiteConfiguration("objectBucketWebsiteConfigurationResource", {
        bucket: "string",
        indexDocument: {
            suffix: "string",
        },
        errorDocument: {
            key: "string",
        },
        projectId: "string",
        region: "string",
    });
    
    type: scaleway:ObjectBucketWebsiteConfiguration
    properties:
        bucket: string
        errorDocument:
            key: string
        indexDocument:
            suffix: string
        projectId: string
        region: string
    

    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

    The ObjectBucketWebsiteConfiguration resource accepts the following input properties:

    Bucket string
    The name of the bucket.
    IndexDocument Pulumiverse.Scaleway.Inputs.ObjectBucketWebsiteConfigurationIndexDocument
    The name of the index document for the website detailed below.
    ErrorDocument Pulumiverse.Scaleway.Inputs.ObjectBucketWebsiteConfigurationErrorDocument
    The name of the error document for the website detailed below.
    ProjectId string
    The project_id you want to attach the resource to
    Region string
    The region you want to attach the resource to
    Bucket string
    The name of the bucket.
    IndexDocument ObjectBucketWebsiteConfigurationIndexDocumentArgs
    The name of the index document for the website detailed below.
    ErrorDocument ObjectBucketWebsiteConfigurationErrorDocumentArgs
    The name of the error document for the website detailed below.
    ProjectId string
    The project_id you want to attach the resource to
    Region string
    The region you want to attach the resource to
    bucket String
    The name of the bucket.
    indexDocument ObjectBucketWebsiteConfigurationIndexDocument
    The name of the index document for the website detailed below.
    errorDocument ObjectBucketWebsiteConfigurationErrorDocument
    The name of the error document for the website detailed below.
    projectId String
    The project_id you want to attach the resource to
    region String
    The region you want to attach the resource to
    bucket string
    The name of the bucket.
    indexDocument ObjectBucketWebsiteConfigurationIndexDocument
    The name of the index document for the website detailed below.
    errorDocument ObjectBucketWebsiteConfigurationErrorDocument
    The name of the error document for the website detailed below.
    projectId string
    The project_id you want to attach the resource to
    region string
    The region you want to attach the resource to
    bucket str
    The name of the bucket.
    index_document ObjectBucketWebsiteConfigurationIndexDocumentArgs
    The name of the index document for the website detailed below.
    error_document ObjectBucketWebsiteConfigurationErrorDocumentArgs
    The name of the error document for the website detailed below.
    project_id str
    The project_id you want to attach the resource to
    region str
    The region you want to attach the resource to
    bucket String
    The name of the bucket.
    indexDocument Property Map
    The name of the index document for the website detailed below.
    errorDocument Property Map
    The name of the error document for the website detailed below.
    projectId String
    The project_id you want to attach the resource to
    region 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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Bucket string
    The name of the bucket.
    ErrorDocument Pulumiverse.Scaleway.Inputs.ObjectBucketWebsiteConfigurationErrorDocument
    The name of the error document for the website detailed below.
    IndexDocument Pulumiverse.Scaleway.Inputs.ObjectBucketWebsiteConfigurationIndexDocument
    The name of the index document for the website detailed below.
    ProjectId string
    The project_id you want to attach the resource to
    Region 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 string
    The name of the bucket.
    ErrorDocument ObjectBucketWebsiteConfigurationErrorDocumentArgs
    The name of the error document for the website detailed below.
    IndexDocument ObjectBucketWebsiteConfigurationIndexDocumentArgs
    The name of the index document for the website detailed below.
    ProjectId string
    The project_id you want to attach the resource to
    Region 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 String
    The name of the bucket.
    errorDocument ObjectBucketWebsiteConfigurationErrorDocument
    The name of the error document for the website detailed below.
    indexDocument ObjectBucketWebsiteConfigurationIndexDocument
    The name of the index document for the website detailed below.
    projectId String
    The project_id you want to attach the resource to
    region 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 string
    The name of the bucket.
    errorDocument ObjectBucketWebsiteConfigurationErrorDocument
    The name of the error document for the website detailed below.
    indexDocument ObjectBucketWebsiteConfigurationIndexDocument
    The name of the index document for the website detailed below.
    projectId string
    The project_id you want to attach the resource to
    region 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 str
    The name of the bucket.
    error_document ObjectBucketWebsiteConfigurationErrorDocumentArgs
    The name of the error document for the website detailed below.
    index_document ObjectBucketWebsiteConfigurationIndexDocumentArgs
    The name of the index document for the website detailed below.
    project_id str
    The project_id you want to attach the resource to
    region 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 String
    The name of the bucket.
    errorDocument Property Map
    The name of the error document for the website detailed below.
    indexDocument Property Map
    The name of the index document for the website detailed below.
    projectId String
    The project_id you want to attach the resource to
    region 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 string
    The object key name to use when a 4XX class error occurs.
    Key string
    The object key name to use when a 4XX class error occurs.
    key String
    The object key name to use when a 4XX class error occurs.
    key string
    The object key name to use when a 4XX class error occurs.
    key str
    The object key name to use when a 4XX class error occurs.
    key String
    The object key name to use when a 4XX class error occurs.

    ObjectBucketWebsiteConfigurationIndexDocument, ObjectBucketWebsiteConfigurationIndexDocumentArgs

    Suffix string

    A suffix that is appended to a request that is for a 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 string

    A suffix that is appended to a request that is for a 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 String

    A suffix that is appended to a request that is for a 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 string

    A suffix that is appended to a request that is for a 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 str

    A suffix that is appended to a request that is for a 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 String

    A suffix that is appended to a request that is for a 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, e.g.

    bash

    $ pulumi import scaleway:index/objectBucketWebsiteConfiguration:ObjectBucketWebsiteConfiguration some_bucket fr-par/some-bucket
    

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

    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.
    scaleway logo
    Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse