1. Packages
  2. Scaleway
  3. API Docs
  4. ObjectBucketWebsiteConfiguration
Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs

scaleway.ObjectBucketWebsiteConfiguration

Explore with Pulumi AI

scaleway logo
Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs

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

    Example with policy

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@lbrlabs/pulumi-scaleway";
    
    const mainObjectBucket = new scaleway.ObjectBucket("mainObjectBucket", {acl: "public-read"});
    const mainObjectBucketPolicy = new scaleway.ObjectBucketPolicy("mainObjectBucketPolicy", {
        bucket: mainObjectBucket.name,
        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.name,
        indexDocument: {
            suffix: "index.html",
        },
    });
    
    import pulumi
    import json
    import lbrlabs_pulumi_scaleway as scaleway
    
    main_object_bucket = scaleway.ObjectBucket("mainObjectBucket", acl="public-read")
    main_object_bucket_policy = scaleway.ObjectBucketPolicy("mainObjectBucketPolicy",
        bucket=main_object_bucket.name,
        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.name,
        index_document=scaleway.ObjectBucketWebsiteConfigurationIndexDocumentArgs(
            suffix="index.html",
        ))
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var mainObjectBucket = new Scaleway.ObjectBucket("mainObjectBucket", new()
        {
            Acl = "public-read",
        });
    
        var mainObjectBucketPolicy = new Scaleway.ObjectBucketPolicy("mainObjectBucketPolicy", new()
        {
            Bucket = mainObjectBucket.Name,
            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.Name,
            IndexDocument = new Scaleway.Inputs.ObjectBucketWebsiteConfigurationIndexDocumentArgs
            {
                Suffix = "index.html",
            },
        });
    
    });
    
    package main
    
    import (
    	"encoding/json"
    
    	"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 {
    		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.Name,
    			Policy: pulumi.String(json0),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewObjectBucketWebsiteConfiguration(ctx, "mainObjectBucketWebsiteConfiguration", &scaleway.ObjectBucketWebsiteConfigurationArgs{
    			Bucket: mainObjectBucket.Name,
    			IndexDocument: &scaleway.ObjectBucketWebsiteConfigurationIndexDocumentArgs{
    				Suffix: pulumi.String("index.html"),
    			},
    		})
    		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.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.name())
                .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.name())
                .indexDocument(ObjectBucketWebsiteConfigurationIndexDocumentArgs.builder()
                    .suffix("index.html")
                    .build())
                .build());
    
        }
    }
    
    resources:
      mainObjectBucket:
        type: scaleway:ObjectBucket
        properties:
          acl: public-read
      mainObjectBucketPolicy:
        type: scaleway:ObjectBucketPolicy
        properties:
          bucket: ${mainObjectBucket.name}
          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.name}
          indexDocument:
            suffix: index.html
    

    index_document

    The index_document configuration block supports the following arguments:

    • suffix - (Required) 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.

    In addition to all above arguments, the following attribute is exported:

    • id - The region and bucket separated by a slash (/)
    • website_domain - The domain of the website endpoint. This is used to create DNS alias records.
    • website_endpoint - The website endpoint.

    Important: Please check our concepts section to know more about the endpoint.

    error_document

    The error_document configuration block supports the following arguments:

    • key - (Required) The object key name to use when a 4XX class error occurs.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var mainObjectBucket = new Scaleway.ObjectBucket("mainObjectBucket", new()
        {
            Acl = "public-read",
        });
    
        var mainObjectBucketWebsiteConfiguration = new Scaleway.ObjectBucketWebsiteConfiguration("mainObjectBucketWebsiteConfiguration", new()
        {
            Bucket = mainObjectBucket.Name,
            IndexDocument = new Scaleway.Inputs.ObjectBucketWebsiteConfigurationIndexDocumentArgs
            {
                Suffix = "index.html",
            },
        });
    
    });
    
    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 {
    		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.Name,
    			IndexDocument: &scaleway.ObjectBucketWebsiteConfigurationIndexDocumentArgs{
    				Suffix: pulumi.String("index.html"),
    			},
    		})
    		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.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.name())
                .indexDocument(ObjectBucketWebsiteConfigurationIndexDocumentArgs.builder()
                    .suffix("index.html")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_scaleway as scaleway
    
    main_object_bucket = scaleway.ObjectBucket("mainObjectBucket", acl="public-read")
    main_object_bucket_website_configuration = scaleway.ObjectBucketWebsiteConfiguration("mainObjectBucketWebsiteConfiguration",
        bucket=main_object_bucket.name,
        index_document=scaleway.ObjectBucketWebsiteConfigurationIndexDocumentArgs(
            suffix="index.html",
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@lbrlabs/pulumi-scaleway";
    
    const mainObjectBucket = new scaleway.ObjectBucket("mainObjectBucket", {acl: "public-read"});
    const mainObjectBucketWebsiteConfiguration = new scaleway.ObjectBucketWebsiteConfiguration("mainObjectBucketWebsiteConfiguration", {
        bucket: mainObjectBucket.name,
        indexDocument: {
            suffix: "index.html",
        },
    });
    
    resources:
      mainObjectBucket:
        type: scaleway:ObjectBucket
        properties:
          acl: public-read
      mainObjectBucketWebsiteConfiguration:
        type: scaleway:ObjectBucketWebsiteConfiguration
        properties:
          bucket: ${mainObjectBucket.name}
          indexDocument:
            suffix: index.html
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var mainObjectBucket = new Scaleway.ObjectBucket("mainObjectBucket", new()
        {
            Acl = "public-read",
        });
    
        var mainObjectBucketPolicy = new Scaleway.ObjectBucketPolicy("mainObjectBucketPolicy", new()
        {
            Bucket = mainObjectBucket.Name,
            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.Name,
            IndexDocument = new Scaleway.Inputs.ObjectBucketWebsiteConfigurationIndexDocumentArgs
            {
                Suffix = "index.html",
            },
        });
    
    });
    
    package main
    
    import (
    	"encoding/json"
    
    	"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 {
    		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.Name,
    			Policy: pulumi.String(json0),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewObjectBucketWebsiteConfiguration(ctx, "mainObjectBucketWebsiteConfiguration", &scaleway.ObjectBucketWebsiteConfigurationArgs{
    			Bucket: mainObjectBucket.Name,
    			IndexDocument: &scaleway.ObjectBucketWebsiteConfigurationIndexDocumentArgs{
    				Suffix: pulumi.String("index.html"),
    			},
    		})
    		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.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.name())
                .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.name())
                .indexDocument(ObjectBucketWebsiteConfigurationIndexDocumentArgs.builder()
                    .suffix("index.html")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import json
    import lbrlabs_pulumi_scaleway as scaleway
    
    main_object_bucket = scaleway.ObjectBucket("mainObjectBucket", acl="public-read")
    main_object_bucket_policy = scaleway.ObjectBucketPolicy("mainObjectBucketPolicy",
        bucket=main_object_bucket.name,
        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.name,
        index_document=scaleway.ObjectBucketWebsiteConfigurationIndexDocumentArgs(
            suffix="index.html",
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@lbrlabs/pulumi-scaleway";
    
    const mainObjectBucket = new scaleway.ObjectBucket("mainObjectBucket", {acl: "public-read"});
    const mainObjectBucketPolicy = new scaleway.ObjectBucketPolicy("mainObjectBucketPolicy", {
        bucket: mainObjectBucket.name,
        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.name,
        indexDocument: {
            suffix: "index.html",
        },
    });
    
    resources:
      mainObjectBucket:
        type: scaleway:ObjectBucket
        properties:
          acl: public-read
      mainObjectBucketPolicy:
        type: scaleway:ObjectBucketPolicy
        properties:
          bucket: ${mainObjectBucket.name}
          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.name}
          indexDocument:
            suffix: index.html
    

    Create ObjectBucketWebsiteConfiguration Resource

    new ObjectBucketWebsiteConfiguration(name: string, args: ObjectBucketWebsiteConfigurationArgs, opts?: CustomResourceOptions);
    @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)
    @overload
    def ObjectBucketWebsiteConfiguration(resource_name: str,
                                         args: ObjectBucketWebsiteConfigurationArgs,
                                         opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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

    (Required, Forces new resource) The name of the bucket.

    IndexDocument Lbrlabs.PulumiPackage.Scaleway.Inputs.ObjectBucketWebsiteConfigurationIndexDocument

    (Required) The name of the index document for the website detailed below.

    ErrorDocument Lbrlabs.PulumiPackage.Scaleway.Inputs.ObjectBucketWebsiteConfigurationErrorDocument

    (Optional) The name of the error document for the website detailed below.

    ProjectId string

    (Defaults to provider project_id) The ID of the project the bucket is associated with.

    Region string

    The region you want to attach the resource to

    Bucket string

    (Required, Forces new resource) The name of the bucket.

    IndexDocument ObjectBucketWebsiteConfigurationIndexDocumentArgs

    (Required) The name of the index document for the website detailed below.

    ErrorDocument ObjectBucketWebsiteConfigurationErrorDocumentArgs

    (Optional) The name of the error document for the website detailed below.

    ProjectId string

    (Defaults to provider project_id) The ID of the project the bucket is associated with.

    Region string

    The region you want to attach the resource to

    bucket String

    (Required, Forces new resource) The name of the bucket.

    indexDocument ObjectBucketWebsiteConfigurationIndexDocument

    (Required) The name of the index document for the website detailed below.

    errorDocument ObjectBucketWebsiteConfigurationErrorDocument

    (Optional) The name of the error document for the website detailed below.

    projectId String

    (Defaults to provider project_id) The ID of the project the bucket is associated with.

    region String

    The region you want to attach the resource to

    bucket string

    (Required, Forces new resource) The name of the bucket.

    indexDocument ObjectBucketWebsiteConfigurationIndexDocument

    (Required) The name of the index document for the website detailed below.

    errorDocument ObjectBucketWebsiteConfigurationErrorDocument

    (Optional) The name of the error document for the website detailed below.

    projectId string

    (Defaults to provider project_id) The ID of the project the bucket is associated with.

    region string

    The region you want to attach the resource to

    bucket str

    (Required, Forces new resource) The name of the bucket.

    index_document ObjectBucketWebsiteConfigurationIndexDocumentArgs

    (Required) The name of the index document for the website detailed below.

    error_document ObjectBucketWebsiteConfigurationErrorDocumentArgs

    (Optional) The name of the error document for the website detailed below.

    project_id str

    (Defaults to provider project_id) The ID of the project the bucket is associated with.

    region str

    The region you want to attach the resource to

    bucket String

    (Required, Forces new resource) The name of the bucket.

    indexDocument Property Map

    (Required) The name of the index document for the website detailed below.

    errorDocument Property Map

    (Optional) The name of the error document for the website detailed below.

    projectId String

    (Defaults to provider project_id) The ID of the project the bucket is associated with.

    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 website endpoint.

    WebsiteEndpoint string

    The domain of the website endpoint.

    Id string

    The provider-assigned unique ID for this managed resource.

    WebsiteDomain string

    The website endpoint.

    WebsiteEndpoint string

    The domain of the website endpoint.

    id String

    The provider-assigned unique ID for this managed resource.

    websiteDomain String

    The website endpoint.

    websiteEndpoint String

    The domain of the website endpoint.

    id string

    The provider-assigned unique ID for this managed resource.

    websiteDomain string

    The website endpoint.

    websiteEndpoint string

    The domain of the website endpoint.

    id str

    The provider-assigned unique ID for this managed resource.

    website_domain str

    The website endpoint.

    website_endpoint str

    The domain of the website endpoint.

    id String

    The provider-assigned unique ID for this managed resource.

    websiteDomain String

    The website endpoint.

    websiteEndpoint String

    The domain of 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

    (Required, Forces new resource) The name of the bucket.

    ErrorDocument Lbrlabs.PulumiPackage.Scaleway.Inputs.ObjectBucketWebsiteConfigurationErrorDocument

    (Optional) The name of the error document for the website detailed below.

    IndexDocument Lbrlabs.PulumiPackage.Scaleway.Inputs.ObjectBucketWebsiteConfigurationIndexDocument

    (Required) The name of the index document for the website detailed below.

    ProjectId string

    (Defaults to provider project_id) The ID of the project the bucket is associated with.

    Region string

    The region you want to attach the resource to

    WebsiteDomain string

    The website endpoint.

    WebsiteEndpoint string

    The domain of the website endpoint.

    Bucket string

    (Required, Forces new resource) The name of the bucket.

    ErrorDocument ObjectBucketWebsiteConfigurationErrorDocumentArgs

    (Optional) The name of the error document for the website detailed below.

    IndexDocument ObjectBucketWebsiteConfigurationIndexDocumentArgs

    (Required) The name of the index document for the website detailed below.

    ProjectId string

    (Defaults to provider project_id) The ID of the project the bucket is associated with.

    Region string

    The region you want to attach the resource to

    WebsiteDomain string

    The website endpoint.

    WebsiteEndpoint string

    The domain of the website endpoint.

    bucket String

    (Required, Forces new resource) The name of the bucket.

    errorDocument ObjectBucketWebsiteConfigurationErrorDocument

    (Optional) The name of the error document for the website detailed below.

    indexDocument ObjectBucketWebsiteConfigurationIndexDocument

    (Required) The name of the index document for the website detailed below.

    projectId String

    (Defaults to provider project_id) The ID of the project the bucket is associated with.

    region String

    The region you want to attach the resource to

    websiteDomain String

    The website endpoint.

    websiteEndpoint String

    The domain of the website endpoint.

    bucket string

    (Required, Forces new resource) The name of the bucket.

    errorDocument ObjectBucketWebsiteConfigurationErrorDocument

    (Optional) The name of the error document for the website detailed below.

    indexDocument ObjectBucketWebsiteConfigurationIndexDocument

    (Required) The name of the index document for the website detailed below.

    projectId string

    (Defaults to provider project_id) The ID of the project the bucket is associated with.

    region string

    The region you want to attach the resource to

    websiteDomain string

    The website endpoint.

    websiteEndpoint string

    The domain of the website endpoint.

    bucket str

    (Required, Forces new resource) The name of the bucket.

    error_document ObjectBucketWebsiteConfigurationErrorDocumentArgs

    (Optional) The name of the error document for the website detailed below.

    index_document ObjectBucketWebsiteConfigurationIndexDocumentArgs

    (Required) The name of the index document for the website detailed below.

    project_id str

    (Defaults to provider project_id) The ID of the project the bucket is associated with.

    region str

    The region you want to attach the resource to

    website_domain str

    The website endpoint.

    website_endpoint str

    The domain of the website endpoint.

    bucket String

    (Required, Forces new resource) The name of the bucket.

    errorDocument Property Map

    (Optional) The name of the error document for the website detailed below.

    indexDocument Property Map

    (Required) The name of the index document for the website detailed below.

    projectId String

    (Defaults to provider project_id) The ID of the project the bucket is associated with.

    region String

    The region you want to attach the resource to

    websiteDomain String

    The website endpoint.

    websiteEndpoint String

    The domain of the website endpoint.

    Supporting Types

    ObjectBucketWebsiteConfigurationErrorDocument, ObjectBucketWebsiteConfigurationErrorDocumentArgs

    Key string
    Key string
    key String
    key string
    key str
    key String

    ObjectBucketWebsiteConfigurationIndexDocument, ObjectBucketWebsiteConfigurationIndexDocumentArgs

    Suffix string
    Suffix string
    suffix String
    suffix string
    suffix str
    suffix String

    Import

    Website configuration Bucket can be imported using the {region}/{bucketName} identifier, e.g. bash

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

    Package Details

    Repository
    scaleway lbrlabs/pulumi-scaleway
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the scaleway Terraform Provider.

    scaleway logo
    Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs