1. Packages
  2. Ionoscloud Provider
  3. API Docs
  4. S3BucketWebsiteConfiguration
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

ionoscloud.S3BucketWebsiteConfiguration

Explore with Pulumi AI

ionoscloud logo
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.S3Bucket;
    import com.pulumi.ionoscloud.S3BucketWebsiteConfiguration;
    import com.pulumi.ionoscloud.S3BucketWebsiteConfigurationArgs;
    import com.pulumi.ionoscloud.inputs.S3BucketWebsiteConfigurationRoutingRuleArgs;
    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 exampleS3Bucket = new S3Bucket("exampleS3Bucket");
    
            var exampleS3BucketWebsiteConfiguration = new S3BucketWebsiteConfiguration("exampleS3BucketWebsiteConfiguration", S3BucketWebsiteConfigurationArgs.builder()
                .bucket(exampleS3Bucket.name())
                .indexDocument(S3BucketWebsiteConfigurationIndexDocumentArgs.builder()
                    .suffix("index.html")
                    .build())
                .errorDocument(S3BucketWebsiteConfigurationErrorDocumentArgs.builder()
                    .key("error.html")
                    .build())
                .routingRules(S3BucketWebsiteConfigurationRoutingRuleArgs.builder()
                    .condition(S3BucketWebsiteConfigurationRoutingRuleConditionArgs.builder()
                        .keyPrefixEquals("docs/")
                        .build())
                    .redirect(S3BucketWebsiteConfigurationRoutingRuleRedirectArgs.builder()
                        .replaceKeyPrefixWith("documents/")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      exampleS3Bucket:
        type: ionoscloud:S3Bucket
      exampleS3BucketWebsiteConfiguration:
        type: ionoscloud:S3BucketWebsiteConfiguration
        properties:
          bucket: ${exampleS3Bucket.name}
          indexDocument:
            - suffix: index.html
          errorDocument:
            - key: error.html
          routingRules:
            - condition:
                - keyPrefixEquals: docs/
              redirect:
                - replaceKeyPrefixWith: documents/
    

    Create S3BucketWebsiteConfiguration Resource

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

    Constructor syntax

    new S3BucketWebsiteConfiguration(name: string, args: S3BucketWebsiteConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def S3BucketWebsiteConfiguration(resource_name: str,
                                     args: S3BucketWebsiteConfigurationArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def S3BucketWebsiteConfiguration(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     bucket: Optional[str] = None,
                                     error_document: Optional[S3BucketWebsiteConfigurationErrorDocumentArgs] = None,
                                     index_document: Optional[S3BucketWebsiteConfigurationIndexDocumentArgs] = None,
                                     redirect_all_requests_to: Optional[S3BucketWebsiteConfigurationRedirectAllRequestsToArgs] = None,
                                     routing_rules: Optional[Sequence[S3BucketWebsiteConfigurationRoutingRuleArgs]] = None)
    func NewS3BucketWebsiteConfiguration(ctx *Context, name string, args S3BucketWebsiteConfigurationArgs, opts ...ResourceOption) (*S3BucketWebsiteConfiguration, error)
    public S3BucketWebsiteConfiguration(string name, S3BucketWebsiteConfigurationArgs args, CustomResourceOptions? opts = null)
    public S3BucketWebsiteConfiguration(String name, S3BucketWebsiteConfigurationArgs args)
    public S3BucketWebsiteConfiguration(String name, S3BucketWebsiteConfigurationArgs args, CustomResourceOptions options)
    
    type: ionoscloud:S3BucketWebsiteConfiguration
    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 S3BucketWebsiteConfigurationArgs
    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 S3BucketWebsiteConfigurationArgs
    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 S3BucketWebsiteConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args S3BucketWebsiteConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args S3BucketWebsiteConfigurationArgs
    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 s3bucketWebsiteConfigurationResource = new Ionoscloud.S3BucketWebsiteConfiguration("s3bucketWebsiteConfigurationResource", new()
    {
        Bucket = "string",
        ErrorDocument = new Ionoscloud.Inputs.S3BucketWebsiteConfigurationErrorDocumentArgs
        {
            Key = "string",
        },
        IndexDocument = new Ionoscloud.Inputs.S3BucketWebsiteConfigurationIndexDocumentArgs
        {
            Suffix = "string",
        },
        RedirectAllRequestsTo = new Ionoscloud.Inputs.S3BucketWebsiteConfigurationRedirectAllRequestsToArgs
        {
            HostName = "string",
            Protocol = "string",
        },
        RoutingRules = new[]
        {
            new Ionoscloud.Inputs.S3BucketWebsiteConfigurationRoutingRuleArgs
            {
                Condition = new Ionoscloud.Inputs.S3BucketWebsiteConfigurationRoutingRuleConditionArgs
                {
                    HttpErrorCodeReturnedEquals = "string",
                    KeyPrefixEquals = "string",
                },
                Redirect = new Ionoscloud.Inputs.S3BucketWebsiteConfigurationRoutingRuleRedirectArgs
                {
                    HostName = "string",
                    HttpRedirectCode = "string",
                    Protocol = "string",
                    ReplaceKeyPrefixWith = "string",
                    ReplaceKeyWith = "string",
                },
            },
        },
    });
    
    example, err := ionoscloud.NewS3BucketWebsiteConfiguration(ctx, "s3bucketWebsiteConfigurationResource", &ionoscloud.S3BucketWebsiteConfigurationArgs{
    	Bucket: pulumi.String("string"),
    	ErrorDocument: &ionoscloud.S3BucketWebsiteConfigurationErrorDocumentArgs{
    		Key: pulumi.String("string"),
    	},
    	IndexDocument: &ionoscloud.S3BucketWebsiteConfigurationIndexDocumentArgs{
    		Suffix: pulumi.String("string"),
    	},
    	RedirectAllRequestsTo: &ionoscloud.S3BucketWebsiteConfigurationRedirectAllRequestsToArgs{
    		HostName: pulumi.String("string"),
    		Protocol: pulumi.String("string"),
    	},
    	RoutingRules: ionoscloud.S3BucketWebsiteConfigurationRoutingRuleArray{
    		&ionoscloud.S3BucketWebsiteConfigurationRoutingRuleArgs{
    			Condition: &ionoscloud.S3BucketWebsiteConfigurationRoutingRuleConditionArgs{
    				HttpErrorCodeReturnedEquals: pulumi.String("string"),
    				KeyPrefixEquals:             pulumi.String("string"),
    			},
    			Redirect: &ionoscloud.S3BucketWebsiteConfigurationRoutingRuleRedirectArgs{
    				HostName:             pulumi.String("string"),
    				HttpRedirectCode:     pulumi.String("string"),
    				Protocol:             pulumi.String("string"),
    				ReplaceKeyPrefixWith: pulumi.String("string"),
    				ReplaceKeyWith:       pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var s3bucketWebsiteConfigurationResource = new S3BucketWebsiteConfiguration("s3bucketWebsiteConfigurationResource", S3BucketWebsiteConfigurationArgs.builder()
        .bucket("string")
        .errorDocument(S3BucketWebsiteConfigurationErrorDocumentArgs.builder()
            .key("string")
            .build())
        .indexDocument(S3BucketWebsiteConfigurationIndexDocumentArgs.builder()
            .suffix("string")
            .build())
        .redirectAllRequestsTo(S3BucketWebsiteConfigurationRedirectAllRequestsToArgs.builder()
            .hostName("string")
            .protocol("string")
            .build())
        .routingRules(S3BucketWebsiteConfigurationRoutingRuleArgs.builder()
            .condition(S3BucketWebsiteConfigurationRoutingRuleConditionArgs.builder()
                .httpErrorCodeReturnedEquals("string")
                .keyPrefixEquals("string")
                .build())
            .redirect(S3BucketWebsiteConfigurationRoutingRuleRedirectArgs.builder()
                .hostName("string")
                .httpRedirectCode("string")
                .protocol("string")
                .replaceKeyPrefixWith("string")
                .replaceKeyWith("string")
                .build())
            .build())
        .build());
    
    s3bucket_website_configuration_resource = ionoscloud.S3BucketWebsiteConfiguration("s3bucketWebsiteConfigurationResource",
        bucket="string",
        error_document={
            "key": "string",
        },
        index_document={
            "suffix": "string",
        },
        redirect_all_requests_to={
            "host_name": "string",
            "protocol": "string",
        },
        routing_rules=[{
            "condition": {
                "http_error_code_returned_equals": "string",
                "key_prefix_equals": "string",
            },
            "redirect": {
                "host_name": "string",
                "http_redirect_code": "string",
                "protocol": "string",
                "replace_key_prefix_with": "string",
                "replace_key_with": "string",
            },
        }])
    
    const s3bucketWebsiteConfigurationResource = new ionoscloud.S3BucketWebsiteConfiguration("s3bucketWebsiteConfigurationResource", {
        bucket: "string",
        errorDocument: {
            key: "string",
        },
        indexDocument: {
            suffix: "string",
        },
        redirectAllRequestsTo: {
            hostName: "string",
            protocol: "string",
        },
        routingRules: [{
            condition: {
                httpErrorCodeReturnedEquals: "string",
                keyPrefixEquals: "string",
            },
            redirect: {
                hostName: "string",
                httpRedirectCode: "string",
                protocol: "string",
                replaceKeyPrefixWith: "string",
                replaceKeyWith: "string",
            },
        }],
    });
    
    type: ionoscloud:S3BucketWebsiteConfiguration
    properties:
        bucket: string
        errorDocument:
            key: string
        indexDocument:
            suffix: string
        redirectAllRequestsTo:
            hostName: string
            protocol: string
        routingRules:
            - condition:
                httpErrorCodeReturnedEquals: string
                keyPrefixEquals: string
              redirect:
                hostName: string
                httpRedirectCode: string
                protocol: string
                replaceKeyPrefixWith: string
                replaceKeyWith: string
    

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

    Bucket string
    [string] The name of the bucket where the object will be stored.
    ErrorDocument S3BucketWebsiteConfigurationErrorDocument
    The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
    IndexDocument S3BucketWebsiteConfigurationIndexDocument
    Container for the Suffix element.
    RedirectAllRequestsTo S3BucketWebsiteConfigurationRedirectAllRequestsTo
    Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
    RoutingRules List<S3BucketWebsiteConfigurationRoutingRule>
    A container for describing a condition that must be met for the specified redirect to apply.
    Bucket string
    [string] The name of the bucket where the object will be stored.
    ErrorDocument S3BucketWebsiteConfigurationErrorDocumentArgs
    The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
    IndexDocument S3BucketWebsiteConfigurationIndexDocumentArgs
    Container for the Suffix element.
    RedirectAllRequestsTo S3BucketWebsiteConfigurationRedirectAllRequestsToArgs
    Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
    RoutingRules []S3BucketWebsiteConfigurationRoutingRuleArgs
    A container for describing a condition that must be met for the specified redirect to apply.
    bucket String
    [string] The name of the bucket where the object will be stored.
    errorDocument S3BucketWebsiteConfigurationErrorDocument
    The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
    indexDocument S3BucketWebsiteConfigurationIndexDocument
    Container for the Suffix element.
    redirectAllRequestsTo S3BucketWebsiteConfigurationRedirectAllRequestsTo
    Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
    routingRules List<S3BucketWebsiteConfigurationRoutingRule>
    A container for describing a condition that must be met for the specified redirect to apply.
    bucket string
    [string] The name of the bucket where the object will be stored.
    errorDocument S3BucketWebsiteConfigurationErrorDocument
    The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
    indexDocument S3BucketWebsiteConfigurationIndexDocument
    Container for the Suffix element.
    redirectAllRequestsTo S3BucketWebsiteConfigurationRedirectAllRequestsTo
    Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
    routingRules S3BucketWebsiteConfigurationRoutingRule[]
    A container for describing a condition that must be met for the specified redirect to apply.
    bucket str
    [string] The name of the bucket where the object will be stored.
    error_document S3BucketWebsiteConfigurationErrorDocumentArgs
    The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
    index_document S3BucketWebsiteConfigurationIndexDocumentArgs
    Container for the Suffix element.
    redirect_all_requests_to S3BucketWebsiteConfigurationRedirectAllRequestsToArgs
    Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
    routing_rules Sequence[S3BucketWebsiteConfigurationRoutingRuleArgs]
    A container for describing a condition that must be met for the specified redirect to apply.
    bucket String
    [string] The name of the bucket where the object will be stored.
    errorDocument Property Map
    The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
    indexDocument Property Map
    Container for the Suffix element.
    redirectAllRequestsTo Property Map
    Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
    routingRules List<Property Map>
    A container for describing a condition that must be met for the specified redirect to apply.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the S3BucketWebsiteConfiguration 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing S3BucketWebsiteConfiguration Resource

    Get an existing S3BucketWebsiteConfiguration 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?: S3BucketWebsiteConfigurationState, opts?: CustomResourceOptions): S3BucketWebsiteConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            error_document: Optional[S3BucketWebsiteConfigurationErrorDocumentArgs] = None,
            index_document: Optional[S3BucketWebsiteConfigurationIndexDocumentArgs] = None,
            redirect_all_requests_to: Optional[S3BucketWebsiteConfigurationRedirectAllRequestsToArgs] = None,
            routing_rules: Optional[Sequence[S3BucketWebsiteConfigurationRoutingRuleArgs]] = None) -> S3BucketWebsiteConfiguration
    func GetS3BucketWebsiteConfiguration(ctx *Context, name string, id IDInput, state *S3BucketWebsiteConfigurationState, opts ...ResourceOption) (*S3BucketWebsiteConfiguration, error)
    public static S3BucketWebsiteConfiguration Get(string name, Input<string> id, S3BucketWebsiteConfigurationState? state, CustomResourceOptions? opts = null)
    public static S3BucketWebsiteConfiguration get(String name, Output<String> id, S3BucketWebsiteConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: ionoscloud:S3BucketWebsiteConfiguration    get:      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:
    Bucket string
    [string] The name of the bucket where the object will be stored.
    ErrorDocument S3BucketWebsiteConfigurationErrorDocument
    The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
    IndexDocument S3BucketWebsiteConfigurationIndexDocument
    Container for the Suffix element.
    RedirectAllRequestsTo S3BucketWebsiteConfigurationRedirectAllRequestsTo
    Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
    RoutingRules List<S3BucketWebsiteConfigurationRoutingRule>
    A container for describing a condition that must be met for the specified redirect to apply.
    Bucket string
    [string] The name of the bucket where the object will be stored.
    ErrorDocument S3BucketWebsiteConfigurationErrorDocumentArgs
    The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
    IndexDocument S3BucketWebsiteConfigurationIndexDocumentArgs
    Container for the Suffix element.
    RedirectAllRequestsTo S3BucketWebsiteConfigurationRedirectAllRequestsToArgs
    Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
    RoutingRules []S3BucketWebsiteConfigurationRoutingRuleArgs
    A container for describing a condition that must be met for the specified redirect to apply.
    bucket String
    [string] The name of the bucket where the object will be stored.
    errorDocument S3BucketWebsiteConfigurationErrorDocument
    The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
    indexDocument S3BucketWebsiteConfigurationIndexDocument
    Container for the Suffix element.
    redirectAllRequestsTo S3BucketWebsiteConfigurationRedirectAllRequestsTo
    Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
    routingRules List<S3BucketWebsiteConfigurationRoutingRule>
    A container for describing a condition that must be met for the specified redirect to apply.
    bucket string
    [string] The name of the bucket where the object will be stored.
    errorDocument S3BucketWebsiteConfigurationErrorDocument
    The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
    indexDocument S3BucketWebsiteConfigurationIndexDocument
    Container for the Suffix element.
    redirectAllRequestsTo S3BucketWebsiteConfigurationRedirectAllRequestsTo
    Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
    routingRules S3BucketWebsiteConfigurationRoutingRule[]
    A container for describing a condition that must be met for the specified redirect to apply.
    bucket str
    [string] The name of the bucket where the object will be stored.
    error_document S3BucketWebsiteConfigurationErrorDocumentArgs
    The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
    index_document S3BucketWebsiteConfigurationIndexDocumentArgs
    Container for the Suffix element.
    redirect_all_requests_to S3BucketWebsiteConfigurationRedirectAllRequestsToArgs
    Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
    routing_rules Sequence[S3BucketWebsiteConfigurationRoutingRuleArgs]
    A container for describing a condition that must be met for the specified redirect to apply.
    bucket String
    [string] The name of the bucket where the object will be stored.
    errorDocument Property Map
    The object key name to use when a 4XX class error occurs. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests
    indexDocument Property Map
    Container for the Suffix element.
    redirectAllRequestsTo Property Map
    Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.
    routingRules List<Property Map>
    A container for describing a condition that must be met for the specified redirect to apply.

    Supporting Types

    S3BucketWebsiteConfigurationErrorDocument, S3BucketWebsiteConfigurationErrorDocumentArgs

    Key string
    The object key
    Key string
    The object key
    key String
    The object key
    key string
    The object key
    key str
    The object key
    key String
    The object key

    S3BucketWebsiteConfigurationIndexDocument, S3BucketWebsiteConfigurationIndexDocumentArgs

    Suffix string
    A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
    Suffix string
    A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
    suffix String
    A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
    suffix string
    A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
    suffix str
    A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.
    suffix String
    A suffix that is appended to a request that is for a directory on the website endpoint (for example, if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests.

    S3BucketWebsiteConfigurationRedirectAllRequestsTo, S3BucketWebsiteConfigurationRedirectAllRequestsToArgs

    HostName string
    Name of the host where requests will be redirected.
    Protocol string
    Protocol to use (http, https).
    HostName string
    Name of the host where requests will be redirected.
    Protocol string
    Protocol to use (http, https).
    hostName String
    Name of the host where requests will be redirected.
    protocol String
    Protocol to use (http, https).
    hostName string
    Name of the host where requests will be redirected.
    protocol string
    Protocol to use (http, https).
    host_name str
    Name of the host where requests will be redirected.
    protocol str
    Protocol to use (http, https).
    hostName String
    Name of the host where requests will be redirected.
    protocol String
    Protocol to use (http, https).

    S3BucketWebsiteConfigurationRoutingRule, S3BucketWebsiteConfigurationRoutingRuleArgs

    Condition S3BucketWebsiteConfigurationRoutingRuleCondition
    A container for describing a condition that must be met for the specified redirect to apply.
    Redirect S3BucketWebsiteConfigurationRoutingRuleRedirect
    Container for the redirect information.
    Condition S3BucketWebsiteConfigurationRoutingRuleCondition
    A container for describing a condition that must be met for the specified redirect to apply.
    Redirect S3BucketWebsiteConfigurationRoutingRuleRedirect
    Container for the redirect information.
    condition S3BucketWebsiteConfigurationRoutingRuleCondition
    A container for describing a condition that must be met for the specified redirect to apply.
    redirect S3BucketWebsiteConfigurationRoutingRuleRedirect
    Container for the redirect information.
    condition S3BucketWebsiteConfigurationRoutingRuleCondition
    A container for describing a condition that must be met for the specified redirect to apply.
    redirect S3BucketWebsiteConfigurationRoutingRuleRedirect
    Container for the redirect information.
    condition S3BucketWebsiteConfigurationRoutingRuleCondition
    A container for describing a condition that must be met for the specified redirect to apply.
    redirect S3BucketWebsiteConfigurationRoutingRuleRedirect
    Container for the redirect information.
    condition Property Map
    A container for describing a condition that must be met for the specified redirect to apply.
    redirect Property Map
    Container for the redirect information.

    S3BucketWebsiteConfigurationRoutingRuleCondition, S3BucketWebsiteConfigurationRoutingRuleConditionArgs

    HttpErrorCodeReturnedEquals string
    The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
    KeyPrefixEquals string
    The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
    HttpErrorCodeReturnedEquals string
    The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
    KeyPrefixEquals string
    The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
    httpErrorCodeReturnedEquals String
    The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
    keyPrefixEquals String
    The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
    httpErrorCodeReturnedEquals string
    The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
    keyPrefixEquals string
    The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
    http_error_code_returned_equals str
    The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
    key_prefix_equals str
    The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.
    httpErrorCodeReturnedEquals String
    The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.
    keyPrefixEquals String
    The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. To redirect request for all pages with the prefix example, the key prefix will be /example.

    S3BucketWebsiteConfigurationRoutingRuleRedirect, S3BucketWebsiteConfigurationRoutingRuleRedirectArgs

    HostName string
    The host name to use in the redirect request.
    HttpRedirectCode string
    The HTTP redirect code to use on the response. Not required if one of the siblings is present.
    Protocol string
    Protocol to use (http, https).
    ReplaceKeyPrefixWith string
    The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
    ReplaceKeyWith string
    The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
    HostName string
    The host name to use in the redirect request.
    HttpRedirectCode string
    The HTTP redirect code to use on the response. Not required if one of the siblings is present.
    Protocol string
    Protocol to use (http, https).
    ReplaceKeyPrefixWith string
    The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
    ReplaceKeyWith string
    The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
    hostName String
    The host name to use in the redirect request.
    httpRedirectCode String
    The HTTP redirect code to use on the response. Not required if one of the siblings is present.
    protocol String
    Protocol to use (http, https).
    replaceKeyPrefixWith String
    The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
    replaceKeyWith String
    The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
    hostName string
    The host name to use in the redirect request.
    httpRedirectCode string
    The HTTP redirect code to use on the response. Not required if one of the siblings is present.
    protocol string
    Protocol to use (http, https).
    replaceKeyPrefixWith string
    The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
    replaceKeyWith string
    The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
    host_name str
    The host name to use in the redirect request.
    http_redirect_code str
    The HTTP redirect code to use on the response. Not required if one of the siblings is present.
    protocol str
    Protocol to use (http, https).
    replace_key_prefix_with str
    The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
    replace_key_with str
    The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.
    hostName String
    The host name to use in the redirect request.
    httpRedirectCode String
    The HTTP redirect code to use on the response. Not required if one of the siblings is present.
    protocol String
    Protocol to use (http, https).
    replaceKeyPrefixWith String
    The object key to be used in the redirect request. For example, redirect request to error.html, the replace key prefix will be /error.html. Not required if one of the siblings is present.
    replaceKeyWith String
    The specific object key to use in the redirect request. For example, redirect request for error.html, the replace key will be /error.html. Not required if one of the siblings is present.

    Import

    IONOS Object Storage Bucket website configuration can be imported using the bucket name.

    $ pulumi import ionoscloud:index/s3BucketWebsiteConfiguration:S3BucketWebsiteConfiguration example example
    

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

    Package Details

    Repository
    ionoscloud ionos-cloud/terraform-provider-ionoscloud
    License
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud