scaleway.ObjectBucketWebsiteConfiguration
Explore with Pulumi AI
The scaleway.ObjectBucketWebsiteConfiguration
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.ObjectBucket("main", {
name: "MyBucket",
acl: "public-read",
});
const mainObjectBucketWebsiteConfiguration = new scaleway.ObjectBucketWebsiteConfiguration("main", {
bucket: main.id,
indexDocument: {
suffix: "index.html",
},
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.ObjectBucket("main",
name="MyBucket",
acl="public-read")
main_object_bucket_website_configuration = scaleway.ObjectBucketWebsiteConfiguration("main",
bucket=main.id,
index_document={
"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 {
main, err := scaleway.NewObjectBucket(ctx, "main", &scaleway.ObjectBucketArgs{
Name: pulumi.String("MyBucket"),
Acl: pulumi.String("public-read"),
})
if err != nil {
return err
}
_, err = scaleway.NewObjectBucketWebsiteConfiguration(ctx, "main", &scaleway.ObjectBucketWebsiteConfigurationArgs{
Bucket: main.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 main = new Scaleway.ObjectBucket("main", new()
{
Name = "MyBucket",
Acl = "public-read",
});
var mainObjectBucketWebsiteConfiguration = new Scaleway.ObjectBucketWebsiteConfiguration("main", new()
{
Bucket = main.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 main = new ObjectBucket("main", ObjectBucketArgs.builder()
.name("MyBucket")
.acl("public-read")
.build());
var mainObjectBucketWebsiteConfiguration = new ObjectBucketWebsiteConfiguration("mainObjectBucketWebsiteConfiguration", ObjectBucketWebsiteConfigurationArgs.builder()
.bucket(main.id())
.indexDocument(ObjectBucketWebsiteConfigurationIndexDocumentArgs.builder()
.suffix("index.html")
.build())
.build());
}
}
resources:
main:
type: scaleway:ObjectBucket
properties:
name: MyBucket
acl: public-read
mainObjectBucketWebsiteConfiguration:
type: scaleway:ObjectBucketWebsiteConfiguration
name: main
properties:
bucket: ${main.id}
indexDocument:
suffix: index.html
With A Bucket Policy
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.ObjectBucket("main", {
name: "MyBucket",
acl: "public-read",
});
const mainObjectBucketPolicy = new scaleway.ObjectBucketPolicy("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 mainObjectBucketWebsiteConfiguration = new scaleway.ObjectBucketWebsiteConfiguration("main", {
bucket: main.id,
indexDocument: {
suffix: "index.html",
},
});
import pulumi
import json
import pulumiverse_scaleway as scaleway
main = scaleway.ObjectBucket("main",
name="MyBucket",
acl="public-read")
main_object_bucket_policy = scaleway.ObjectBucketPolicy("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_object_bucket_website_configuration = scaleway.ObjectBucketWebsiteConfiguration("main",
bucket=main.id,
index_document={
"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 {
main, err := scaleway.NewObjectBucket(ctx, "main", &scaleway.ObjectBucketArgs{
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 = scaleway.NewObjectBucketPolicy(ctx, "main", &scaleway.ObjectBucketPolicyArgs{
Bucket: main.ID(),
Policy: pulumi.String(json0),
})
if err != nil {
return err
}
_, err = scaleway.NewObjectBucketWebsiteConfiguration(ctx, "main", &scaleway.ObjectBucketWebsiteConfigurationArgs{
Bucket: main.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 main = new Scaleway.ObjectBucket("main", new()
{
Name = "MyBucket",
Acl = "public-read",
});
var mainObjectBucketPolicy = new Scaleway.ObjectBucketPolicy("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 mainObjectBucketWebsiteConfiguration = new Scaleway.ObjectBucketWebsiteConfiguration("main", new()
{
Bucket = main.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 main = new ObjectBucket("main", ObjectBucketArgs.builder()
.name("MyBucket")
.acl("public-read")
.build());
var mainObjectBucketPolicy = new ObjectBucketPolicy("mainObjectBucketPolicy", ObjectBucketPolicyArgs.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 mainObjectBucketWebsiteConfiguration = new ObjectBucketWebsiteConfiguration("mainObjectBucketWebsiteConfiguration", ObjectBucketWebsiteConfigurationArgs.builder()
.bucket(main.id())
.indexDocument(ObjectBucketWebsiteConfigurationIndexDocumentArgs.builder()
.suffix("index.html")
.build())
.build());
}
}
resources:
main:
type: scaleway:ObjectBucket
properties:
name: MyBucket
acl: public-read
mainObjectBucketPolicy:
type: scaleway:ObjectBucketPolicy
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>/*
mainObjectBucketWebsiteConfiguration:
type: scaleway:ObjectBucketWebsiteConfiguration
name: main
properties:
bucket: ${main.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.
Constructor 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={
"suffix": "string",
},
error_document={
"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
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 string
- The name of the bucket.
- Index
Document Pulumiverse.Scaleway. Inputs. Object Bucket Website Configuration Index Document - The name of the index file for the website detailed below.
- Error
Document Pulumiverse.Scaleway. Inputs. Object Bucket Website Configuration Error Document - The name of the error file for the website detailed below.
- Project
Id 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.
- Index
Document ObjectBucket Website Configuration Index Document Args - The name of the index file for the website detailed below.
- Error
Document ObjectBucket Website Configuration Error Document Args - The name of the error file for the website detailed below.
- Project
Id 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.
- index
Document ObjectBucket Website Configuration Index Document - The name of the index file for the website detailed below.
- error
Document ObjectBucket Website Configuration Error Document - The name of the error file for the website detailed below.
- project
Id 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.
- index
Document ObjectBucket Website Configuration Index Document - The name of the index file for the website detailed below.
- error
Document ObjectBucket Website Configuration Error Document - The name of the error file for the website detailed below.
- project
Id 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 ObjectBucket Website Configuration Index Document Args - The name of the index file for the website detailed below.
- error_
document ObjectBucket Website Configuration Error Document Args - The name of the error file 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.
- index
Document Property Map - The name of the index file for the website detailed below.
- error
Document Property Map - The name of the error file for the website detailed below.
- project
Id 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.
- Website
Domain string - The domain of the website endpoint. This is used to create DNS alias records.
- Website
Endpoint string - The website endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- Website
Domain string - The domain of the website endpoint. This is used to create DNS alias records.
- Website
Endpoint string - The website endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- website
Domain String - The domain of the website endpoint. This is used to create DNS alias records.
- website
Endpoint String - The website endpoint.
- id string
- The provider-assigned unique ID for this managed resource.
- website
Domain string - The domain of the website endpoint. This is used to create DNS alias records.
- website
Endpoint 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.
- website
Domain String - The domain of the website endpoint. This is used to create DNS alias records.
- website
Endpoint 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.
- Bucket string
- The name of the bucket.
- Error
Document Pulumiverse.Scaleway. Inputs. Object Bucket Website Configuration Error Document - The name of the error file for the website detailed below.
- Index
Document Pulumiverse.Scaleway. Inputs. Object Bucket Website Configuration Index Document - The name of the index file for the website detailed below.
- Project
Id string - The project_id you want to attach the resource to
- Region string
- The region you want to attach the resource to
- Website
Domain string - The domain of the website endpoint. This is used to create DNS alias records.
- Website
Endpoint string - The website endpoint.
- Bucket string
- The name of the bucket.
- Error
Document ObjectBucket Website Configuration Error Document Args - The name of the error file for the website detailed below.
- Index
Document ObjectBucket Website Configuration Index Document Args - The name of the index file for the website detailed below.
- Project
Id string - The project_id you want to attach the resource to
- Region string
- The region you want to attach the resource to
- Website
Domain string - The domain of the website endpoint. This is used to create DNS alias records.
- Website
Endpoint string - The website endpoint.
- bucket String
- The name of the bucket.
- error
Document ObjectBucket Website Configuration Error Document - The name of the error file for the website detailed below.
- index
Document ObjectBucket Website Configuration Index Document - The name of the index file for the website detailed below.
- project
Id String - The project_id you want to attach the resource to
- region String
- The region you want to attach the resource to
- website
Domain String - The domain of the website endpoint. This is used to create DNS alias records.
- website
Endpoint String - The website endpoint.
- bucket string
- The name of the bucket.
- error
Document ObjectBucket Website Configuration Error Document - The name of the error file for the website detailed below.
- index
Document ObjectBucket Website Configuration Index Document - The name of the index file for the website detailed below.
- project
Id string - The project_id you want to attach the resource to
- region string
- The region you want to attach the resource to
- website
Domain string - The domain of the website endpoint. This is used to create DNS alias records.
- website
Endpoint string - The website endpoint.
- bucket str
- The name of the bucket.
- error_
document ObjectBucket Website Configuration Error Document Args - The name of the error file for the website detailed below.
- index_
document ObjectBucket Website Configuration Index Document Args - The name of the index file 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.
- error
Document Property Map - The name of the error file for the website detailed below.
- index
Document Property Map - The name of the index file for the website detailed below.
- project
Id String - The project_id you want to attach the resource to
- region String
- The region you want to attach the resource to
- website
Domain String - The domain of the website endpoint. This is used to create DNS alias records.
- website
Endpoint 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 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 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 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 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 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 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
~> 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.