1. Packages
  2. Packages
  3. UpCloud
  4. API Docs
  5. ManagedObjectStorageStaticSite
Viewing docs for UpCloud v0.16.0
published on Wednesday, Jul 15, 2026 by UpCloudLtd
upcloud logo
Viewing docs for UpCloud v0.16.0
published on Wednesday, Jul 15, 2026 by UpCloudLtd

    This resource represents an UpCloud Managed Object Storage static site.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as upcloud from "@upcloud/pulumi-upcloud";
    
    const _this = new upcloud.ManagedObjectStorage("this", {
        name: "example",
        region: "europe-1",
        configuredStatus: "started",
    });
    const thisManagedObjectStorageStaticSite = new upcloud.ManagedObjectStorageStaticSite("this", {
        serviceUuid: "1201cd6f-20cd-44b6-939d-ae1c861769e7",
        bucketName: "example",
        bucketPrefix: "public/",
        errorPages: [{
            errorDocument: "404.html",
            statusCode: 404,
        }],
    });
    
    import pulumi
    import pulumi_upcloud as upcloud
    
    this = upcloud.ManagedObjectStorage("this",
        name="example",
        region="europe-1",
        configured_status="started")
    this_managed_object_storage_static_site = upcloud.ManagedObjectStorageStaticSite("this",
        service_uuid="1201cd6f-20cd-44b6-939d-ae1c861769e7",
        bucket_name="example",
        bucket_prefix="public/",
        error_pages=[{
            "error_document": "404.html",
            "status_code": 404,
        }])
    
    package main
    
    import (
    	"github.com/UpCloudLtd/pulumi-upcloud/sdk/go/upcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := upcloud.NewManagedObjectStorage(ctx, "this", &upcloud.ManagedObjectStorageArgs{
    			Name:             pulumi.String("example"),
    			Region:           pulumi.String("europe-1"),
    			ConfiguredStatus: pulumi.String("started"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = upcloud.NewManagedObjectStorageStaticSite(ctx, "this", &upcloud.ManagedObjectStorageStaticSiteArgs{
    			ServiceUuid:  pulumi.String("1201cd6f-20cd-44b6-939d-ae1c861769e7"),
    			BucketName:   pulumi.String("example"),
    			BucketPrefix: pulumi.String("public/"),
    			ErrorPages: upcloud.ManagedObjectStorageStaticSiteErrorPageArray{
    				&upcloud.ManagedObjectStorageStaticSiteErrorPageArgs{
    					ErrorDocument: pulumi.String("404.html"),
    					StatusCode:    pulumi.Int(404),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using UpCloud = UpCloud.Pulumi.UpCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = new UpCloud.ManagedObjectStorage("this", new()
        {
            Name = "example",
            Region = "europe-1",
            ConfiguredStatus = "started",
        });
    
        var thisManagedObjectStorageStaticSite = new UpCloud.ManagedObjectStorageStaticSite("this", new()
        {
            ServiceUuid = "1201cd6f-20cd-44b6-939d-ae1c861769e7",
            BucketName = "example",
            BucketPrefix = "public/",
            ErrorPages = new[]
            {
                new UpCloud.Inputs.ManagedObjectStorageStaticSiteErrorPageArgs
                {
                    ErrorDocument = "404.html",
                    StatusCode = 404,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.upcloud.ManagedObjectStorage;
    import com.pulumi.upcloud.ManagedObjectStorageArgs;
    import com.pulumi.upcloud.ManagedObjectStorageStaticSite;
    import com.pulumi.upcloud.ManagedObjectStorageStaticSiteArgs;
    import com.pulumi.upcloud.inputs.ManagedObjectStorageStaticSiteErrorPageArgs;
    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 this_ = new ManagedObjectStorage("this", ManagedObjectStorageArgs.builder()
                .name("example")
                .region("europe-1")
                .configuredStatus("started")
                .build());
    
            var thisManagedObjectStorageStaticSite = new ManagedObjectStorageStaticSite("thisManagedObjectStorageStaticSite", ManagedObjectStorageStaticSiteArgs.builder()
                .serviceUuid("1201cd6f-20cd-44b6-939d-ae1c861769e7")
                .bucketName("example")
                .bucketPrefix("public/")
                .errorPages(ManagedObjectStorageStaticSiteErrorPageArgs.builder()
                    .errorDocument("404.html")
                    .statusCode(404)
                    .build())
                .build());
    
        }
    }
    
    resources:
      this:
        type: upcloud:ManagedObjectStorage
        properties:
          name: example
          region: europe-1
          configuredStatus: started
      thisManagedObjectStorageStaticSite:
        type: upcloud:ManagedObjectStorageStaticSite
        name: this
        properties:
          serviceUuid: 1201cd6f-20cd-44b6-939d-ae1c861769e7
          bucketName: example
          bucketPrefix: public/
          errorPages:
            - errorDocument: 404.html
              statusCode: 404
    
    Example coming soon!
    

    Create ManagedObjectStorageStaticSite Resource

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

    Constructor syntax

    new ManagedObjectStorageStaticSite(name: string, args: ManagedObjectStorageStaticSiteArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedObjectStorageStaticSite(resource_name: str,
                                       args: ManagedObjectStorageStaticSiteArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagedObjectStorageStaticSite(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       bucket_name: Optional[str] = None,
                                       service_uuid: Optional[str] = None,
                                       bucket_prefix: Optional[str] = None,
                                       domain_name: Optional[str] = None,
                                       enabled: Optional[bool] = None,
                                       error_pages: Optional[Sequence[ManagedObjectStorageStaticSiteErrorPageArgs]] = None,
                                       index_document: Optional[str] = None,
                                       spa_mode: Optional[bool] = None)
    func NewManagedObjectStorageStaticSite(ctx *Context, name string, args ManagedObjectStorageStaticSiteArgs, opts ...ResourceOption) (*ManagedObjectStorageStaticSite, error)
    public ManagedObjectStorageStaticSite(string name, ManagedObjectStorageStaticSiteArgs args, CustomResourceOptions? opts = null)
    public ManagedObjectStorageStaticSite(String name, ManagedObjectStorageStaticSiteArgs args)
    public ManagedObjectStorageStaticSite(String name, ManagedObjectStorageStaticSiteArgs args, CustomResourceOptions options)
    
    type: upcloud:ManagedObjectStorageStaticSite
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "upcloud_managed_object_storage_static_site" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ManagedObjectStorageStaticSiteArgs
    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 ManagedObjectStorageStaticSiteArgs
    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 ManagedObjectStorageStaticSiteArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedObjectStorageStaticSiteArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedObjectStorageStaticSiteArgs
    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 managedObjectStorageStaticSiteResource = new UpCloud.ManagedObjectStorageStaticSite("managedObjectStorageStaticSiteResource", new()
    {
        BucketName = "string",
        ServiceUuid = "string",
        BucketPrefix = "string",
        DomainName = "string",
        Enabled = false,
        ErrorPages = new[]
        {
            new UpCloud.Inputs.ManagedObjectStorageStaticSiteErrorPageArgs
            {
                ErrorDocument = "string",
                StatusCode = 0,
                StatusRangeEnd = 0,
                StatusRangeStart = 0,
            },
        },
        IndexDocument = "string",
        SpaMode = false,
    });
    
    example, err := upcloud.NewManagedObjectStorageStaticSite(ctx, "managedObjectStorageStaticSiteResource", &upcloud.ManagedObjectStorageStaticSiteArgs{
    	BucketName:   pulumi.String("string"),
    	ServiceUuid:  pulumi.String("string"),
    	BucketPrefix: pulumi.String("string"),
    	DomainName:   pulumi.String("string"),
    	Enabled:      pulumi.Bool(false),
    	ErrorPages: upcloud.ManagedObjectStorageStaticSiteErrorPageArray{
    		&upcloud.ManagedObjectStorageStaticSiteErrorPageArgs{
    			ErrorDocument:    pulumi.String("string"),
    			StatusCode:       pulumi.Int(0),
    			StatusRangeEnd:   pulumi.Int(0),
    			StatusRangeStart: pulumi.Int(0),
    		},
    	},
    	IndexDocument: pulumi.String("string"),
    	SpaMode:       pulumi.Bool(false),
    })
    
    resource "upcloud_managed_object_storage_static_site" "managedObjectStorageStaticSiteResource" {
      lifecycle {
        create_before_destroy = true
      }
      bucket_name   = "string"
      service_uuid  = "string"
      bucket_prefix = "string"
      domain_name   = "string"
      enabled       = false
      error_pages {
        error_document     = "string"
        status_code        = 0
        status_range_end   = 0
        status_range_start = 0
      }
      index_document = "string"
      spa_mode       = false
    }
    
    var managedObjectStorageStaticSiteResource = new ManagedObjectStorageStaticSite("managedObjectStorageStaticSiteResource", ManagedObjectStorageStaticSiteArgs.builder()
        .bucketName("string")
        .serviceUuid("string")
        .bucketPrefix("string")
        .domainName("string")
        .enabled(false)
        .errorPages(ManagedObjectStorageStaticSiteErrorPageArgs.builder()
            .errorDocument("string")
            .statusCode(0)
            .statusRangeEnd(0)
            .statusRangeStart(0)
            .build())
        .indexDocument("string")
        .spaMode(false)
        .build());
    
    managed_object_storage_static_site_resource = upcloud.ManagedObjectStorageStaticSite("managedObjectStorageStaticSiteResource",
        bucket_name="string",
        service_uuid="string",
        bucket_prefix="string",
        domain_name="string",
        enabled=False,
        error_pages=[{
            "error_document": "string",
            "status_code": 0,
            "status_range_end": 0,
            "status_range_start": 0,
        }],
        index_document="string",
        spa_mode=False)
    
    const managedObjectStorageStaticSiteResource = new upcloud.ManagedObjectStorageStaticSite("managedObjectStorageStaticSiteResource", {
        bucketName: "string",
        serviceUuid: "string",
        bucketPrefix: "string",
        domainName: "string",
        enabled: false,
        errorPages: [{
            errorDocument: "string",
            statusCode: 0,
            statusRangeEnd: 0,
            statusRangeStart: 0,
        }],
        indexDocument: "string",
        spaMode: false,
    });
    
    type: upcloud:ManagedObjectStorageStaticSite
    properties:
        bucketName: string
        bucketPrefix: string
        domainName: string
        enabled: false
        errorPages:
            - errorDocument: string
              statusCode: 0
              statusRangeEnd: 0
              statusRangeStart: 0
        indexDocument: string
        serviceUuid: string
        spaMode: false
    

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

    BucketName string
    S3 bucket from which static content is served. Must have a public read policy.
    ServiceUuid string
    Managed Object Storage service UUID.
    BucketPrefix string
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    DomainName string
    A custom domain in static-website mode attached to the service.
    Enabled bool
    Enable or disable serving content on this domain. Defaults to true.
    ErrorPages List<UpCloud.Pulumi.UpCloud.Inputs.ManagedObjectStorageStaticSiteErrorPage>
    Custom error pages served when the storage backend returns an error status.
    IndexDocument string
    Name of the index document. Defaults to index.html.
    SpaMode bool
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.
    BucketName string
    S3 bucket from which static content is served. Must have a public read policy.
    ServiceUuid string
    Managed Object Storage service UUID.
    BucketPrefix string
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    DomainName string
    A custom domain in static-website mode attached to the service.
    Enabled bool
    Enable or disable serving content on this domain. Defaults to true.
    ErrorPages []ManagedObjectStorageStaticSiteErrorPageArgs
    Custom error pages served when the storage backend returns an error status.
    IndexDocument string
    Name of the index document. Defaults to index.html.
    SpaMode bool
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.
    bucket_name string
    S3 bucket from which static content is served. Must have a public read policy.
    service_uuid string
    Managed Object Storage service UUID.
    bucket_prefix string
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    domain_name string
    A custom domain in static-website mode attached to the service.
    enabled bool
    Enable or disable serving content on this domain. Defaults to true.
    error_pages list(object)
    Custom error pages served when the storage backend returns an error status.
    index_document string
    Name of the index document. Defaults to index.html.
    spa_mode bool
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.
    bucketName String
    S3 bucket from which static content is served. Must have a public read policy.
    serviceUuid String
    Managed Object Storage service UUID.
    bucketPrefix String
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    domainName String
    A custom domain in static-website mode attached to the service.
    enabled Boolean
    Enable or disable serving content on this domain. Defaults to true.
    errorPages List<ManagedObjectStorageStaticSiteErrorPage>
    Custom error pages served when the storage backend returns an error status.
    indexDocument String
    Name of the index document. Defaults to index.html.
    spaMode Boolean
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.
    bucketName string
    S3 bucket from which static content is served. Must have a public read policy.
    serviceUuid string
    Managed Object Storage service UUID.
    bucketPrefix string
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    domainName string
    A custom domain in static-website mode attached to the service.
    enabled boolean
    Enable or disable serving content on this domain. Defaults to true.
    errorPages ManagedObjectStorageStaticSiteErrorPage[]
    Custom error pages served when the storage backend returns an error status.
    indexDocument string
    Name of the index document. Defaults to index.html.
    spaMode boolean
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.
    bucket_name str
    S3 bucket from which static content is served. Must have a public read policy.
    service_uuid str
    Managed Object Storage service UUID.
    bucket_prefix str
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    domain_name str
    A custom domain in static-website mode attached to the service.
    enabled bool
    Enable or disable serving content on this domain. Defaults to true.
    error_pages Sequence[ManagedObjectStorageStaticSiteErrorPageArgs]
    Custom error pages served when the storage backend returns an error status.
    index_document str
    Name of the index document. Defaults to index.html.
    spa_mode bool
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.
    bucketName String
    S3 bucket from which static content is served. Must have a public read policy.
    serviceUuid String
    Managed Object Storage service UUID.
    bucketPrefix String
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    domainName String
    A custom domain in static-website mode attached to the service.
    enabled Boolean
    Enable or disable serving content on this domain. Defaults to true.
    errorPages List<Property Map>
    Custom error pages served when the storage backend returns an error status.
    indexDocument String
    Name of the index document. Defaults to index.html.
    spaMode Boolean
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ManagedObjectStorageStaticSite Resource

    Get an existing ManagedObjectStorageStaticSite 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?: ManagedObjectStorageStaticSiteState, opts?: CustomResourceOptions): ManagedObjectStorageStaticSite
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket_name: Optional[str] = None,
            bucket_prefix: Optional[str] = None,
            domain_name: Optional[str] = None,
            enabled: Optional[bool] = None,
            error_pages: Optional[Sequence[ManagedObjectStorageStaticSiteErrorPageArgs]] = None,
            index_document: Optional[str] = None,
            service_uuid: Optional[str] = None,
            spa_mode: Optional[bool] = None) -> ManagedObjectStorageStaticSite
    func GetManagedObjectStorageStaticSite(ctx *Context, name string, id IDInput, state *ManagedObjectStorageStaticSiteState, opts ...ResourceOption) (*ManagedObjectStorageStaticSite, error)
    public static ManagedObjectStorageStaticSite Get(string name, Input<string> id, ManagedObjectStorageStaticSiteState? state, CustomResourceOptions? opts = null)
    public static ManagedObjectStorageStaticSite get(String name, Output<String> id, ManagedObjectStorageStaticSiteState state, CustomResourceOptions options)
    resources:  _:    type: upcloud:ManagedObjectStorageStaticSite    get:      id: ${id}
    import {
      to = upcloud_managed_object_storage_static_site.example
      id = "${id}"
    }
    
    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:
    BucketName string
    S3 bucket from which static content is served. Must have a public read policy.
    BucketPrefix string
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    DomainName string
    A custom domain in static-website mode attached to the service.
    Enabled bool
    Enable or disable serving content on this domain. Defaults to true.
    ErrorPages List<UpCloud.Pulumi.UpCloud.Inputs.ManagedObjectStorageStaticSiteErrorPage>
    Custom error pages served when the storage backend returns an error status.
    IndexDocument string
    Name of the index document. Defaults to index.html.
    ServiceUuid string
    Managed Object Storage service UUID.
    SpaMode bool
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.
    BucketName string
    S3 bucket from which static content is served. Must have a public read policy.
    BucketPrefix string
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    DomainName string
    A custom domain in static-website mode attached to the service.
    Enabled bool
    Enable or disable serving content on this domain. Defaults to true.
    ErrorPages []ManagedObjectStorageStaticSiteErrorPageArgs
    Custom error pages served when the storage backend returns an error status.
    IndexDocument string
    Name of the index document. Defaults to index.html.
    ServiceUuid string
    Managed Object Storage service UUID.
    SpaMode bool
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.
    bucket_name string
    S3 bucket from which static content is served. Must have a public read policy.
    bucket_prefix string
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    domain_name string
    A custom domain in static-website mode attached to the service.
    enabled bool
    Enable or disable serving content on this domain. Defaults to true.
    error_pages list(object)
    Custom error pages served when the storage backend returns an error status.
    index_document string
    Name of the index document. Defaults to index.html.
    service_uuid string
    Managed Object Storage service UUID.
    spa_mode bool
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.
    bucketName String
    S3 bucket from which static content is served. Must have a public read policy.
    bucketPrefix String
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    domainName String
    A custom domain in static-website mode attached to the service.
    enabled Boolean
    Enable or disable serving content on this domain. Defaults to true.
    errorPages List<ManagedObjectStorageStaticSiteErrorPage>
    Custom error pages served when the storage backend returns an error status.
    indexDocument String
    Name of the index document. Defaults to index.html.
    serviceUuid String
    Managed Object Storage service UUID.
    spaMode Boolean
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.
    bucketName string
    S3 bucket from which static content is served. Must have a public read policy.
    bucketPrefix string
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    domainName string
    A custom domain in static-website mode attached to the service.
    enabled boolean
    Enable or disable serving content on this domain. Defaults to true.
    errorPages ManagedObjectStorageStaticSiteErrorPage[]
    Custom error pages served when the storage backend returns an error status.
    indexDocument string
    Name of the index document. Defaults to index.html.
    serviceUuid string
    Managed Object Storage service UUID.
    spaMode boolean
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.
    bucket_name str
    S3 bucket from which static content is served. Must have a public read policy.
    bucket_prefix str
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    domain_name str
    A custom domain in static-website mode attached to the service.
    enabled bool
    Enable or disable serving content on this domain. Defaults to true.
    error_pages Sequence[ManagedObjectStorageStaticSiteErrorPageArgs]
    Custom error pages served when the storage backend returns an error status.
    index_document str
    Name of the index document. Defaults to index.html.
    service_uuid str
    Managed Object Storage service UUID.
    spa_mode bool
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.
    bucketName String
    S3 bucket from which static content is served. Must have a public read policy.
    bucketPrefix String
    Path prefix within the bucket. For example, dist/ serves content from the dist/ folder. Defaults to empty string (bucket root).
    domainName String
    A custom domain in static-website mode attached to the service.
    enabled Boolean
    Enable or disable serving content on this domain. Defaults to true.
    errorPages List<Property Map>
    Custom error pages served when the storage backend returns an error status.
    indexDocument String
    Name of the index document. Defaults to index.html.
    serviceUuid String
    Managed Object Storage service UUID.
    spaMode Boolean
    Whether to enable single-page application mode. In SPA mode, the index document is served for all paths, which is useful for client-side routing.

    Supporting Types

    ManagedObjectStorageStaticSiteErrorPage, ManagedObjectStorageStaticSiteErrorPageArgs

    ErrorDocument string
    Path to the error page document within the bucket.
    StatusCode int
    Exact HTTP status code to match. Mutually exclusive with status range.
    StatusRangeEnd int
    End of the status code range (inclusive). Must be greater than start.
    StatusRangeStart int
    Start of the status code range (inclusive).
    ErrorDocument string
    Path to the error page document within the bucket.
    StatusCode int
    Exact HTTP status code to match. Mutually exclusive with status range.
    StatusRangeEnd int
    End of the status code range (inclusive). Must be greater than start.
    StatusRangeStart int
    Start of the status code range (inclusive).
    error_document string
    Path to the error page document within the bucket.
    status_code number
    Exact HTTP status code to match. Mutually exclusive with status range.
    status_range_end number
    End of the status code range (inclusive). Must be greater than start.
    status_range_start number
    Start of the status code range (inclusive).
    errorDocument String
    Path to the error page document within the bucket.
    statusCode Integer
    Exact HTTP status code to match. Mutually exclusive with status range.
    statusRangeEnd Integer
    End of the status code range (inclusive). Must be greater than start.
    statusRangeStart Integer
    Start of the status code range (inclusive).
    errorDocument string
    Path to the error page document within the bucket.
    statusCode number
    Exact HTTP status code to match. Mutually exclusive with status range.
    statusRangeEnd number
    End of the status code range (inclusive). Must be greater than start.
    statusRangeStart number
    Start of the status code range (inclusive).
    error_document str
    Path to the error page document within the bucket.
    status_code int
    Exact HTTP status code to match. Mutually exclusive with status range.
    status_range_end int
    End of the status code range (inclusive). Must be greater than start.
    status_range_start int
    Start of the status code range (inclusive).
    errorDocument String
    Path to the error page document within the bucket.
    statusCode Number
    Exact HTTP status code to match. Mutually exclusive with status range.
    statusRangeEnd Number
    End of the status code range (inclusive). Must be greater than start.
    statusRangeStart Number
    Start of the status code range (inclusive).

    Package Details

    Repository
    upcloud UpCloudLtd/pulumi-upcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the upcloud Terraform Provider.
    upcloud logo
    Viewing docs for UpCloud v0.16.0
    published on Wednesday, Jul 15, 2026 by UpCloudLtd

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial