1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. oss
  5. BucketWebsite
Alibaba Cloud v3.73.0 published on Wednesday, Jan 15, 2025 by Pulumi

alicloud.oss.BucketWebsite

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.73.0 published on Wednesday, Jan 15, 2025 by Pulumi

    Provides a OSS Bucket Website resource.

    the static website configuration and mirror configuration of the bucket.

    For information about OSS Bucket Website and how to use it, see What is Bucket Website.

    NOTE: Available since v1.237.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new random.index.Uuid("default", {});
    const defaultnVj9x3 = new alicloud.oss.Bucket("defaultnVj9x3", {
        bucket: `${name}-${_default.result}`,
        storageClass: "Standard",
    });
    const defaultBucketWebsite = new alicloud.oss.BucketWebsite("default", {
        indexDocument: {
            suffix: "index.html",
            supportSubDir: true,
            type: "0",
        },
        errorDocument: {
            key: "error.html",
            httpStatus: 404,
        },
        bucket: defaultnVj9x3.bucket,
        routingRules: {
            routingRules: [{
                ruleNumber: 1,
                condition: {
                    httpErrorCodeReturnedEquals: "404",
                },
                redirect: {
                    protocol: "https",
                    httpRedirectCode: "305",
                    redirectType: "AliCDN",
                    hostName: "www.alicdn-master.com",
                },
                luaConfig: {
                    script: "example.lua",
                },
            }],
        },
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = random.index.Uuid("default")
    defaultn_vj9x3 = alicloud.oss.Bucket("defaultnVj9x3",
        bucket=f"{name}-{default['result']}",
        storage_class="Standard")
    default_bucket_website = alicloud.oss.BucketWebsite("default",
        index_document={
            "suffix": "index.html",
            "support_sub_dir": True,
            "type": "0",
        },
        error_document={
            "key": "error.html",
            "http_status": 404,
        },
        bucket=defaultn_vj9x3.bucket,
        routing_rules={
            "routing_rules": [{
                "rule_number": 1,
                "condition": {
                    "http_error_code_returned_equals": "404",
                },
                "redirect": {
                    "protocol": "https",
                    "http_redirect_code": "305",
                    "redirect_type": "AliCDN",
                    "host_name": "www.alicdn-master.com",
                },
                "lua_config": {
                    "script": "example.lua",
                },
            }],
        })
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oss"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := random.NewUuid(ctx, "default", nil)
    		if err != nil {
    			return err
    		}
    		defaultnVj9x3, err := oss.NewBucket(ctx, "defaultnVj9x3", &oss.BucketArgs{
    			Bucket:       pulumi.Sprintf("%v-%v", name, _default.Result),
    			StorageClass: pulumi.String("Standard"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = oss.NewBucketWebsite(ctx, "default", &oss.BucketWebsiteArgs{
    			IndexDocument: &oss.BucketWebsiteIndexDocumentArgs{
    				Suffix:        pulumi.String("index.html"),
    				SupportSubDir: pulumi.Bool(true),
    				Type:          pulumi.String("0"),
    			},
    			ErrorDocument: &oss.BucketWebsiteErrorDocumentArgs{
    				Key:        pulumi.String("error.html"),
    				HttpStatus: pulumi.Int(404),
    			},
    			Bucket: defaultnVj9x3.Bucket,
    			RoutingRules: &oss.BucketWebsiteRoutingRulesArgs{
    				RoutingRules: oss.BucketWebsiteRoutingRulesRoutingRuleArray{
    					&oss.BucketWebsiteRoutingRulesRoutingRuleArgs{
    						RuleNumber: pulumi.Int(1),
    						Condition: &oss.BucketWebsiteRoutingRulesRoutingRuleConditionArgs{
    							HttpErrorCodeReturnedEquals: pulumi.String("404"),
    						},
    						Redirect: &oss.BucketWebsiteRoutingRulesRoutingRuleRedirectArgs{
    							Protocol:         pulumi.String("https"),
    							HttpRedirectCode: pulumi.String("305"),
    							RedirectType:     pulumi.String("AliCDN"),
    							HostName:         pulumi.String("www.alicdn-master.com"),
    						},
    						LuaConfig: &oss.BucketWebsiteRoutingRulesRoutingRuleLuaConfigArgs{
    							Script: pulumi.String("example.lua"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new Random.Index.Uuid("default");
    
        var defaultnVj9x3 = new AliCloud.Oss.Bucket("defaultnVj9x3", new()
        {
            BucketName = $"{name}-{@default.Result}",
            StorageClass = "Standard",
        });
    
        var defaultBucketWebsite = new AliCloud.Oss.BucketWebsite("default", new()
        {
            IndexDocument = new AliCloud.Oss.Inputs.BucketWebsiteIndexDocumentArgs
            {
                Suffix = "index.html",
                SupportSubDir = true,
                Type = "0",
            },
            ErrorDocument = new AliCloud.Oss.Inputs.BucketWebsiteErrorDocumentArgs
            {
                Key = "error.html",
                HttpStatus = 404,
            },
            Bucket = defaultnVj9x3.BucketName,
            RoutingRules = new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesArgs
            {
                RoutingRules = new[]
                {
                    new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleArgs
                    {
                        RuleNumber = 1,
                        Condition = new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleConditionArgs
                        {
                            HttpErrorCodeReturnedEquals = "404",
                        },
                        Redirect = new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectArgs
                        {
                            Protocol = "https",
                            HttpRedirectCode = "305",
                            RedirectType = "AliCDN",
                            HostName = "www.alicdn-master.com",
                        },
                        LuaConfig = new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleLuaConfigArgs
                        {
                            Script = "example.lua",
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.uuid;
    import com.pulumi.alicloud.oss.Bucket;
    import com.pulumi.alicloud.oss.BucketArgs;
    import com.pulumi.alicloud.oss.BucketWebsite;
    import com.pulumi.alicloud.oss.BucketWebsiteArgs;
    import com.pulumi.alicloud.oss.inputs.BucketWebsiteIndexDocumentArgs;
    import com.pulumi.alicloud.oss.inputs.BucketWebsiteErrorDocumentArgs;
    import com.pulumi.alicloud.oss.inputs.BucketWebsiteRoutingRulesArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new Uuid("default");
    
            var defaultnVj9x3 = new Bucket("defaultnVj9x3", BucketArgs.builder()
                .bucket(String.format("%s-%s", name,default_.result()))
                .storageClass("Standard")
                .build());
    
            var defaultBucketWebsite = new BucketWebsite("defaultBucketWebsite", BucketWebsiteArgs.builder()
                .indexDocument(BucketWebsiteIndexDocumentArgs.builder()
                    .suffix("index.html")
                    .supportSubDir("true")
                    .type("0")
                    .build())
                .errorDocument(BucketWebsiteErrorDocumentArgs.builder()
                    .key("error.html")
                    .httpStatus("404")
                    .build())
                .bucket(defaultnVj9x3.bucket())
                .routingRules(BucketWebsiteRoutingRulesArgs.builder()
                    .routingRules(BucketWebsiteRoutingRulesRoutingRuleArgs.builder()
                        .ruleNumber("1")
                        .condition(BucketWebsiteRoutingRulesRoutingRuleConditionArgs.builder()
                            .httpErrorCodeReturnedEquals("404")
                            .build())
                        .redirect(BucketWebsiteRoutingRulesRoutingRuleRedirectArgs.builder()
                            .protocol("https")
                            .httpRedirectCode("305")
                            .redirectType("AliCDN")
                            .hostName("www.alicdn-master.com")
                            .build())
                        .luaConfig(BucketWebsiteRoutingRulesRoutingRuleLuaConfigArgs.builder()
                            .script("example.lua")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: random:uuid
      defaultnVj9x3:
        type: alicloud:oss:Bucket
        properties:
          bucket: ${name}-${default.result}
          storageClass: Standard
      defaultBucketWebsite:
        type: alicloud:oss:BucketWebsite
        name: default
        properties:
          indexDocument:
            suffix: index.html
            supportSubDir: 'true'
            type: '0'
          errorDocument:
            key: error.html
            httpStatus: '404'
          bucket: ${defaultnVj9x3.bucket}
          routingRules:
            routingRules:
              - ruleNumber: '1'
                condition:
                  httpErrorCodeReturnedEquals: '404'
                redirect:
                  protocol: https
                  httpRedirectCode: '305'
                  redirectType: AliCDN
                  hostName: www.alicdn-master.com
                luaConfig:
                  script: example.lua
    

    Create BucketWebsite Resource

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

    Constructor syntax

    new BucketWebsite(name: string, args: BucketWebsiteArgs, opts?: CustomResourceOptions);
    @overload
    def BucketWebsite(resource_name: str,
                      args: BucketWebsiteInitArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def BucketWebsite(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      bucket: Optional[str] = None,
                      error_document: Optional[BucketWebsiteErrorDocumentArgs] = None,
                      index_document: Optional[BucketWebsiteIndexDocumentArgs] = None,
                      routing_rules: Optional[BucketWebsiteRoutingRulesArgs] = None)
    func NewBucketWebsite(ctx *Context, name string, args BucketWebsiteArgs, opts ...ResourceOption) (*BucketWebsite, error)
    public BucketWebsite(string name, BucketWebsiteArgs args, CustomResourceOptions? opts = null)
    public BucketWebsite(String name, BucketWebsiteArgs args)
    public BucketWebsite(String name, BucketWebsiteArgs args, CustomResourceOptions options)
    
    type: alicloud:oss:BucketWebsite
    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 BucketWebsiteArgs
    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 BucketWebsiteInitArgs
    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 BucketWebsiteArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BucketWebsiteArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BucketWebsiteArgs
    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 bucketWebsiteResource = new AliCloud.Oss.BucketWebsite("bucketWebsiteResource", new()
    {
        Bucket = "string",
        ErrorDocument = new AliCloud.Oss.Inputs.BucketWebsiteErrorDocumentArgs
        {
            HttpStatus = 0,
            Key = "string",
        },
        IndexDocument = new AliCloud.Oss.Inputs.BucketWebsiteIndexDocumentArgs
        {
            Suffix = "string",
            SupportSubDir = false,
            Type = "string",
        },
        RoutingRules = new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesArgs
        {
            RoutingRules = new[]
            {
                new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleArgs
                {
                    Condition = new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleConditionArgs
                    {
                        HttpErrorCodeReturnedEquals = "string",
                        IncludeHeaders = new[]
                        {
                            new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleConditionIncludeHeaderArgs
                            {
                                EndsWith = "string",
                                Equals = "string",
                                Key = "string",
                                StartsWith = "string",
                            },
                        },
                        KeyPrefixEquals = "string",
                        KeySuffixEquals = "string",
                    },
                    LuaConfig = new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleLuaConfigArgs
                    {
                        Script = "string",
                    },
                    Redirect = new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectArgs
                    {
                        EnableReplacePrefix = false,
                        HostName = "string",
                        HttpRedirectCode = "string",
                        MirrorAllowGetImageInfo = false,
                        MirrorAllowHeadObject = false,
                        MirrorAllowVideoSnapshot = false,
                        MirrorAsyncStatus = 0,
                        MirrorAuth = new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuthArgs
                        {
                            AccessKeyId = "string",
                            AccessKeySecret = "string",
                            AuthType = "string",
                            Region = "string",
                        },
                        MirrorCheckMd5 = false,
                        MirrorDstRegion = "string",
                        MirrorDstSlaveVpcId = "string",
                        MirrorDstVpcId = "string",
                        MirrorFollowRedirect = false,
                        MirrorHeaders = new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersArgs
                        {
                            PassAll = false,
                            Passes = new[]
                            {
                                "string",
                            },
                            Removes = new[]
                            {
                                "string",
                            },
                            Sets = new[]
                            {
                                new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSetArgs
                                {
                                    Key = "string",
                                    Value = "string",
                                },
                            },
                        },
                        MirrorIsExpressTunnel = false,
                        MirrorMultiAlternates = new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesArgs
                        {
                            MirrorMultiAlternates = new[]
                            {
                                new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternateArgs
                                {
                                    MirrorMultiAlternateDstRegion = "string",
                                    MirrorMultiAlternateNumber = 0,
                                    MirrorMultiAlternateUrl = "string",
                                    MirrorMultiAlternateVpcId = "string",
                                },
                            },
                        },
                        MirrorPassOriginalSlashes = false,
                        MirrorPassQueryString = false,
                        MirrorProxyPass = false,
                        MirrorReturnHeaders = new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersArgs
                        {
                            ReturnHeaders = new[]
                            {
                                new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersReturnHeaderArgs
                                {
                                    Key = "string",
                                    Value = "string",
                                },
                            },
                        },
                        MirrorRole = "string",
                        MirrorSaveOssMeta = false,
                        MirrorSni = false,
                        MirrorSwitchAllErrors = false,
                        MirrorTaggings = new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsArgs
                        {
                            Taggings = new[]
                            {
                                new AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTaggingArgs
                                {
                                    Key = "string",
                                    Value = "string",
                                },
                            },
                        },
                        MirrorTunnelId = "string",
                        MirrorUrl = "string",
                        MirrorUrlProbe = "string",
                        MirrorUrlSlave = "string",
                        MirrorUserLastModified = false,
                        MirrorUsingRole = false,
                        PassQueryString = false,
                        Protocol = "string",
                        RedirectType = "string",
                        ReplaceKeyPrefixWith = "string",
                        ReplaceKeyWith = "string",
                        TransparentMirrorResponseCodes = "string",
                    },
                    RuleNumber = 0,
                },
            },
        },
    });
    
    example, err := oss.NewBucketWebsite(ctx, "bucketWebsiteResource", &oss.BucketWebsiteArgs{
    	Bucket: pulumi.String("string"),
    	ErrorDocument: &oss.BucketWebsiteErrorDocumentArgs{
    		HttpStatus: pulumi.Int(0),
    		Key:        pulumi.String("string"),
    	},
    	IndexDocument: &oss.BucketWebsiteIndexDocumentArgs{
    		Suffix:        pulumi.String("string"),
    		SupportSubDir: pulumi.Bool(false),
    		Type:          pulumi.String("string"),
    	},
    	RoutingRules: &oss.BucketWebsiteRoutingRulesArgs{
    		RoutingRules: oss.BucketWebsiteRoutingRulesRoutingRuleArray{
    			&oss.BucketWebsiteRoutingRulesRoutingRuleArgs{
    				Condition: &oss.BucketWebsiteRoutingRulesRoutingRuleConditionArgs{
    					HttpErrorCodeReturnedEquals: pulumi.String("string"),
    					IncludeHeaders: oss.BucketWebsiteRoutingRulesRoutingRuleConditionIncludeHeaderArray{
    						&oss.BucketWebsiteRoutingRulesRoutingRuleConditionIncludeHeaderArgs{
    							EndsWith:   pulumi.String("string"),
    							Equals:     pulumi.String("string"),
    							Key:        pulumi.String("string"),
    							StartsWith: pulumi.String("string"),
    						},
    					},
    					KeyPrefixEquals: pulumi.String("string"),
    					KeySuffixEquals: pulumi.String("string"),
    				},
    				LuaConfig: &oss.BucketWebsiteRoutingRulesRoutingRuleLuaConfigArgs{
    					Script: pulumi.String("string"),
    				},
    				Redirect: &oss.BucketWebsiteRoutingRulesRoutingRuleRedirectArgs{
    					EnableReplacePrefix:      pulumi.Bool(false),
    					HostName:                 pulumi.String("string"),
    					HttpRedirectCode:         pulumi.String("string"),
    					MirrorAllowGetImageInfo:  pulumi.Bool(false),
    					MirrorAllowHeadObject:    pulumi.Bool(false),
    					MirrorAllowVideoSnapshot: pulumi.Bool(false),
    					MirrorAsyncStatus:        pulumi.Int(0),
    					MirrorAuth: &oss.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuthArgs{
    						AccessKeyId:     pulumi.String("string"),
    						AccessKeySecret: pulumi.String("string"),
    						AuthType:        pulumi.String("string"),
    						Region:          pulumi.String("string"),
    					},
    					MirrorCheckMd5:       pulumi.Bool(false),
    					MirrorDstRegion:      pulumi.String("string"),
    					MirrorDstSlaveVpcId:  pulumi.String("string"),
    					MirrorDstVpcId:       pulumi.String("string"),
    					MirrorFollowRedirect: pulumi.Bool(false),
    					MirrorHeaders: &oss.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersArgs{
    						PassAll: pulumi.Bool(false),
    						Passes: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						Removes: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						Sets: oss.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSetArray{
    							&oss.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSetArgs{
    								Key:   pulumi.String("string"),
    								Value: pulumi.String("string"),
    							},
    						},
    					},
    					MirrorIsExpressTunnel: pulumi.Bool(false),
    					MirrorMultiAlternates: &oss.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesArgs{
    						MirrorMultiAlternates: oss.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternateArray{
    							&oss.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternateArgs{
    								MirrorMultiAlternateDstRegion: pulumi.String("string"),
    								MirrorMultiAlternateNumber:    pulumi.Int(0),
    								MirrorMultiAlternateUrl:       pulumi.String("string"),
    								MirrorMultiAlternateVpcId:     pulumi.String("string"),
    							},
    						},
    					},
    					MirrorPassOriginalSlashes: pulumi.Bool(false),
    					MirrorPassQueryString:     pulumi.Bool(false),
    					MirrorProxyPass:           pulumi.Bool(false),
    					MirrorReturnHeaders: &oss.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersArgs{
    						ReturnHeaders: oss.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersReturnHeaderArray{
    							&oss.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersReturnHeaderArgs{
    								Key:   pulumi.String("string"),
    								Value: pulumi.String("string"),
    							},
    						},
    					},
    					MirrorRole:            pulumi.String("string"),
    					MirrorSaveOssMeta:     pulumi.Bool(false),
    					MirrorSni:             pulumi.Bool(false),
    					MirrorSwitchAllErrors: pulumi.Bool(false),
    					MirrorTaggings: &oss.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsArgs{
    						Taggings: oss.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTaggingArray{
    							&oss.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTaggingArgs{
    								Key:   pulumi.String("string"),
    								Value: pulumi.String("string"),
    							},
    						},
    					},
    					MirrorTunnelId:                 pulumi.String("string"),
    					MirrorUrl:                      pulumi.String("string"),
    					MirrorUrlProbe:                 pulumi.String("string"),
    					MirrorUrlSlave:                 pulumi.String("string"),
    					MirrorUserLastModified:         pulumi.Bool(false),
    					MirrorUsingRole:                pulumi.Bool(false),
    					PassQueryString:                pulumi.Bool(false),
    					Protocol:                       pulumi.String("string"),
    					RedirectType:                   pulumi.String("string"),
    					ReplaceKeyPrefixWith:           pulumi.String("string"),
    					ReplaceKeyWith:                 pulumi.String("string"),
    					TransparentMirrorResponseCodes: pulumi.String("string"),
    				},
    				RuleNumber: pulumi.Int(0),
    			},
    		},
    	},
    })
    
    var bucketWebsiteResource = new BucketWebsite("bucketWebsiteResource", BucketWebsiteArgs.builder()
        .bucket("string")
        .errorDocument(BucketWebsiteErrorDocumentArgs.builder()
            .httpStatus(0)
            .key("string")
            .build())
        .indexDocument(BucketWebsiteIndexDocumentArgs.builder()
            .suffix("string")
            .supportSubDir(false)
            .type("string")
            .build())
        .routingRules(BucketWebsiteRoutingRulesArgs.builder()
            .routingRules(BucketWebsiteRoutingRulesRoutingRuleArgs.builder()
                .condition(BucketWebsiteRoutingRulesRoutingRuleConditionArgs.builder()
                    .httpErrorCodeReturnedEquals("string")
                    .includeHeaders(BucketWebsiteRoutingRulesRoutingRuleConditionIncludeHeaderArgs.builder()
                        .endsWith("string")
                        .equals("string")
                        .key("string")
                        .startsWith("string")
                        .build())
                    .keyPrefixEquals("string")
                    .keySuffixEquals("string")
                    .build())
                .luaConfig(BucketWebsiteRoutingRulesRoutingRuleLuaConfigArgs.builder()
                    .script("string")
                    .build())
                .redirect(BucketWebsiteRoutingRulesRoutingRuleRedirectArgs.builder()
                    .enableReplacePrefix(false)
                    .hostName("string")
                    .httpRedirectCode("string")
                    .mirrorAllowGetImageInfo(false)
                    .mirrorAllowHeadObject(false)
                    .mirrorAllowVideoSnapshot(false)
                    .mirrorAsyncStatus(0)
                    .mirrorAuth(BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuthArgs.builder()
                        .accessKeyId("string")
                        .accessKeySecret("string")
                        .authType("string")
                        .region("string")
                        .build())
                    .mirrorCheckMd5(false)
                    .mirrorDstRegion("string")
                    .mirrorDstSlaveVpcId("string")
                    .mirrorDstVpcId("string")
                    .mirrorFollowRedirect(false)
                    .mirrorHeaders(BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersArgs.builder()
                        .passAll(false)
                        .passes("string")
                        .removes("string")
                        .sets(BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSetArgs.builder()
                            .key("string")
                            .value("string")
                            .build())
                        .build())
                    .mirrorIsExpressTunnel(false)
                    .mirrorMultiAlternates(BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesArgs.builder()
                        .mirrorMultiAlternates(BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternateArgs.builder()
                            .mirrorMultiAlternateDstRegion("string")
                            .mirrorMultiAlternateNumber(0)
                            .mirrorMultiAlternateUrl("string")
                            .mirrorMultiAlternateVpcId("string")
                            .build())
                        .build())
                    .mirrorPassOriginalSlashes(false)
                    .mirrorPassQueryString(false)
                    .mirrorProxyPass(false)
                    .mirrorReturnHeaders(BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersArgs.builder()
                        .returnHeaders(BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersReturnHeaderArgs.builder()
                            .key("string")
                            .value("string")
                            .build())
                        .build())
                    .mirrorRole("string")
                    .mirrorSaveOssMeta(false)
                    .mirrorSni(false)
                    .mirrorSwitchAllErrors(false)
                    .mirrorTaggings(BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsArgs.builder()
                        .taggings(BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTaggingArgs.builder()
                            .key("string")
                            .value("string")
                            .build())
                        .build())
                    .mirrorTunnelId("string")
                    .mirrorUrl("string")
                    .mirrorUrlProbe("string")
                    .mirrorUrlSlave("string")
                    .mirrorUserLastModified(false)
                    .mirrorUsingRole(false)
                    .passQueryString(false)
                    .protocol("string")
                    .redirectType("string")
                    .replaceKeyPrefixWith("string")
                    .replaceKeyWith("string")
                    .transparentMirrorResponseCodes("string")
                    .build())
                .ruleNumber(0)
                .build())
            .build())
        .build());
    
    bucket_website_resource = alicloud.oss.BucketWebsite("bucketWebsiteResource",
        bucket="string",
        error_document={
            "http_status": 0,
            "key": "string",
        },
        index_document={
            "suffix": "string",
            "support_sub_dir": False,
            "type": "string",
        },
        routing_rules={
            "routing_rules": [{
                "condition": {
                    "http_error_code_returned_equals": "string",
                    "include_headers": [{
                        "ends_with": "string",
                        "equals": "string",
                        "key": "string",
                        "starts_with": "string",
                    }],
                    "key_prefix_equals": "string",
                    "key_suffix_equals": "string",
                },
                "lua_config": {
                    "script": "string",
                },
                "redirect": {
                    "enable_replace_prefix": False,
                    "host_name": "string",
                    "http_redirect_code": "string",
                    "mirror_allow_get_image_info": False,
                    "mirror_allow_head_object": False,
                    "mirror_allow_video_snapshot": False,
                    "mirror_async_status": 0,
                    "mirror_auth": {
                        "access_key_id": "string",
                        "access_key_secret": "string",
                        "auth_type": "string",
                        "region": "string",
                    },
                    "mirror_check_md5": False,
                    "mirror_dst_region": "string",
                    "mirror_dst_slave_vpc_id": "string",
                    "mirror_dst_vpc_id": "string",
                    "mirror_follow_redirect": False,
                    "mirror_headers": {
                        "pass_all": False,
                        "passes": ["string"],
                        "removes": ["string"],
                        "sets": [{
                            "key": "string",
                            "value": "string",
                        }],
                    },
                    "mirror_is_express_tunnel": False,
                    "mirror_multi_alternates": {
                        "mirror_multi_alternates": [{
                            "mirror_multi_alternate_dst_region": "string",
                            "mirror_multi_alternate_number": 0,
                            "mirror_multi_alternate_url": "string",
                            "mirror_multi_alternate_vpc_id": "string",
                        }],
                    },
                    "mirror_pass_original_slashes": False,
                    "mirror_pass_query_string": False,
                    "mirror_proxy_pass": False,
                    "mirror_return_headers": {
                        "return_headers": [{
                            "key": "string",
                            "value": "string",
                        }],
                    },
                    "mirror_role": "string",
                    "mirror_save_oss_meta": False,
                    "mirror_sni": False,
                    "mirror_switch_all_errors": False,
                    "mirror_taggings": {
                        "taggings": [{
                            "key": "string",
                            "value": "string",
                        }],
                    },
                    "mirror_tunnel_id": "string",
                    "mirror_url": "string",
                    "mirror_url_probe": "string",
                    "mirror_url_slave": "string",
                    "mirror_user_last_modified": False,
                    "mirror_using_role": False,
                    "pass_query_string": False,
                    "protocol": "string",
                    "redirect_type": "string",
                    "replace_key_prefix_with": "string",
                    "replace_key_with": "string",
                    "transparent_mirror_response_codes": "string",
                },
                "rule_number": 0,
            }],
        })
    
    const bucketWebsiteResource = new alicloud.oss.BucketWebsite("bucketWebsiteResource", {
        bucket: "string",
        errorDocument: {
            httpStatus: 0,
            key: "string",
        },
        indexDocument: {
            suffix: "string",
            supportSubDir: false,
            type: "string",
        },
        routingRules: {
            routingRules: [{
                condition: {
                    httpErrorCodeReturnedEquals: "string",
                    includeHeaders: [{
                        endsWith: "string",
                        equals: "string",
                        key: "string",
                        startsWith: "string",
                    }],
                    keyPrefixEquals: "string",
                    keySuffixEquals: "string",
                },
                luaConfig: {
                    script: "string",
                },
                redirect: {
                    enableReplacePrefix: false,
                    hostName: "string",
                    httpRedirectCode: "string",
                    mirrorAllowGetImageInfo: false,
                    mirrorAllowHeadObject: false,
                    mirrorAllowVideoSnapshot: false,
                    mirrorAsyncStatus: 0,
                    mirrorAuth: {
                        accessKeyId: "string",
                        accessKeySecret: "string",
                        authType: "string",
                        region: "string",
                    },
                    mirrorCheckMd5: false,
                    mirrorDstRegion: "string",
                    mirrorDstSlaveVpcId: "string",
                    mirrorDstVpcId: "string",
                    mirrorFollowRedirect: false,
                    mirrorHeaders: {
                        passAll: false,
                        passes: ["string"],
                        removes: ["string"],
                        sets: [{
                            key: "string",
                            value: "string",
                        }],
                    },
                    mirrorIsExpressTunnel: false,
                    mirrorMultiAlternates: {
                        mirrorMultiAlternates: [{
                            mirrorMultiAlternateDstRegion: "string",
                            mirrorMultiAlternateNumber: 0,
                            mirrorMultiAlternateUrl: "string",
                            mirrorMultiAlternateVpcId: "string",
                        }],
                    },
                    mirrorPassOriginalSlashes: false,
                    mirrorPassQueryString: false,
                    mirrorProxyPass: false,
                    mirrorReturnHeaders: {
                        returnHeaders: [{
                            key: "string",
                            value: "string",
                        }],
                    },
                    mirrorRole: "string",
                    mirrorSaveOssMeta: false,
                    mirrorSni: false,
                    mirrorSwitchAllErrors: false,
                    mirrorTaggings: {
                        taggings: [{
                            key: "string",
                            value: "string",
                        }],
                    },
                    mirrorTunnelId: "string",
                    mirrorUrl: "string",
                    mirrorUrlProbe: "string",
                    mirrorUrlSlave: "string",
                    mirrorUserLastModified: false,
                    mirrorUsingRole: false,
                    passQueryString: false,
                    protocol: "string",
                    redirectType: "string",
                    replaceKeyPrefixWith: "string",
                    replaceKeyWith: "string",
                    transparentMirrorResponseCodes: "string",
                },
                ruleNumber: 0,
            }],
        },
    });
    
    type: alicloud:oss:BucketWebsite
    properties:
        bucket: string
        errorDocument:
            httpStatus: 0
            key: string
        indexDocument:
            suffix: string
            supportSubDir: false
            type: string
        routingRules:
            routingRules:
                - condition:
                    httpErrorCodeReturnedEquals: string
                    includeHeaders:
                        - endsWith: string
                          equals: string
                          key: string
                          startsWith: string
                    keyPrefixEquals: string
                    keySuffixEquals: string
                  luaConfig:
                    script: string
                  redirect:
                    enableReplacePrefix: false
                    hostName: string
                    httpRedirectCode: string
                    mirrorAllowGetImageInfo: false
                    mirrorAllowHeadObject: false
                    mirrorAllowVideoSnapshot: false
                    mirrorAsyncStatus: 0
                    mirrorAuth:
                        accessKeyId: string
                        accessKeySecret: string
                        authType: string
                        region: string
                    mirrorCheckMd5: false
                    mirrorDstRegion: string
                    mirrorDstSlaveVpcId: string
                    mirrorDstVpcId: string
                    mirrorFollowRedirect: false
                    mirrorHeaders:
                        passAll: false
                        passes:
                            - string
                        removes:
                            - string
                        sets:
                            - key: string
                              value: string
                    mirrorIsExpressTunnel: false
                    mirrorMultiAlternates:
                        mirrorMultiAlternates:
                            - mirrorMultiAlternateDstRegion: string
                              mirrorMultiAlternateNumber: 0
                              mirrorMultiAlternateUrl: string
                              mirrorMultiAlternateVpcId: string
                    mirrorPassOriginalSlashes: false
                    mirrorPassQueryString: false
                    mirrorProxyPass: false
                    mirrorReturnHeaders:
                        returnHeaders:
                            - key: string
                              value: string
                    mirrorRole: string
                    mirrorSaveOssMeta: false
                    mirrorSni: false
                    mirrorSwitchAllErrors: false
                    mirrorTaggings:
                        taggings:
                            - key: string
                              value: string
                    mirrorTunnelId: string
                    mirrorUrl: string
                    mirrorUrlProbe: string
                    mirrorUrlSlave: string
                    mirrorUserLastModified: false
                    mirrorUsingRole: false
                    passQueryString: false
                    protocol: string
                    redirectType: string
                    replaceKeyPrefixWith: string
                    replaceKeyWith: string
                    transparentMirrorResponseCodes: string
                  ruleNumber: 0
    

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

    Bucket string
    The name of the bucket
    ErrorDocument Pulumi.AliCloud.Oss.Inputs.BucketWebsiteErrorDocument
    The container that holds the error page configuration information. See error_document below.
    IndexDocument Pulumi.AliCloud.Oss.Inputs.BucketWebsiteIndexDocument
    Static Website Default Home Page Configuration See index_document below.
    RoutingRules Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRules
    The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rules below.
    Bucket string
    The name of the bucket
    ErrorDocument BucketWebsiteErrorDocumentArgs
    The container that holds the error page configuration information. See error_document below.
    IndexDocument BucketWebsiteIndexDocumentArgs
    Static Website Default Home Page Configuration See index_document below.
    RoutingRules BucketWebsiteRoutingRulesArgs
    The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rules below.
    bucket String
    The name of the bucket
    errorDocument BucketWebsiteErrorDocument
    The container that holds the error page configuration information. See error_document below.
    indexDocument BucketWebsiteIndexDocument
    Static Website Default Home Page Configuration See index_document below.
    routingRules BucketWebsiteRoutingRules
    The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rules below.
    bucket string
    The name of the bucket
    errorDocument BucketWebsiteErrorDocument
    The container that holds the error page configuration information. See error_document below.
    indexDocument BucketWebsiteIndexDocument
    Static Website Default Home Page Configuration See index_document below.
    routingRules BucketWebsiteRoutingRules
    The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rules below.
    bucket str
    The name of the bucket
    error_document BucketWebsiteErrorDocumentArgs
    The container that holds the error page configuration information. See error_document below.
    index_document BucketWebsiteIndexDocumentArgs
    Static Website Default Home Page Configuration See index_document below.
    routing_rules BucketWebsiteRoutingRulesArgs
    The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rules below.
    bucket String
    The name of the bucket
    errorDocument Property Map
    The container that holds the error page configuration information. See error_document below.
    indexDocument Property Map
    Static Website Default Home Page Configuration See index_document below.
    routingRules Property Map
    The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rules below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BucketWebsite 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 BucketWebsite Resource

    Get an existing BucketWebsite 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?: BucketWebsiteState, opts?: CustomResourceOptions): BucketWebsite
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            error_document: Optional[BucketWebsiteErrorDocumentArgs] = None,
            index_document: Optional[BucketWebsiteIndexDocumentArgs] = None,
            routing_rules: Optional[BucketWebsiteRoutingRulesArgs] = None) -> BucketWebsite
    func GetBucketWebsite(ctx *Context, name string, id IDInput, state *BucketWebsiteState, opts ...ResourceOption) (*BucketWebsite, error)
    public static BucketWebsite Get(string name, Input<string> id, BucketWebsiteState? state, CustomResourceOptions? opts = null)
    public static BucketWebsite get(String name, Output<String> id, BucketWebsiteState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:oss:BucketWebsite    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
    The name of the bucket
    ErrorDocument Pulumi.AliCloud.Oss.Inputs.BucketWebsiteErrorDocument
    The container that holds the error page configuration information. See error_document below.
    IndexDocument Pulumi.AliCloud.Oss.Inputs.BucketWebsiteIndexDocument
    Static Website Default Home Page Configuration See index_document below.
    RoutingRules Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRules
    The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rules below.
    Bucket string
    The name of the bucket
    ErrorDocument BucketWebsiteErrorDocumentArgs
    The container that holds the error page configuration information. See error_document below.
    IndexDocument BucketWebsiteIndexDocumentArgs
    Static Website Default Home Page Configuration See index_document below.
    RoutingRules BucketWebsiteRoutingRulesArgs
    The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rules below.
    bucket String
    The name of the bucket
    errorDocument BucketWebsiteErrorDocument
    The container that holds the error page configuration information. See error_document below.
    indexDocument BucketWebsiteIndexDocument
    Static Website Default Home Page Configuration See index_document below.
    routingRules BucketWebsiteRoutingRules
    The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rules below.
    bucket string
    The name of the bucket
    errorDocument BucketWebsiteErrorDocument
    The container that holds the error page configuration information. See error_document below.
    indexDocument BucketWebsiteIndexDocument
    Static Website Default Home Page Configuration See index_document below.
    routingRules BucketWebsiteRoutingRules
    The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rules below.
    bucket str
    The name of the bucket
    error_document BucketWebsiteErrorDocumentArgs
    The container that holds the error page configuration information. See error_document below.
    index_document BucketWebsiteIndexDocumentArgs
    Static Website Default Home Page Configuration See index_document below.
    routing_rules BucketWebsiteRoutingRulesArgs
    The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rules below.
    bucket String
    The name of the bucket
    errorDocument Property Map
    The container that holds the error page configuration information. See error_document below.
    indexDocument Property Map
    Static Website Default Home Page Configuration See index_document below.
    routingRules Property Map
    The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rules below.

    Supporting Types

    BucketWebsiteErrorDocument, BucketWebsiteErrorDocumentArgs

    HttpStatus int
    The HTTP status code when the error page is returned. The default 404.
    Key string
    The error page file. If the Object accessed does not exist, this error page is returned.
    HttpStatus int
    The HTTP status code when the error page is returned. The default 404.
    Key string
    The error page file. If the Object accessed does not exist, this error page is returned.
    httpStatus Integer
    The HTTP status code when the error page is returned. The default 404.
    key String
    The error page file. If the Object accessed does not exist, this error page is returned.
    httpStatus number
    The HTTP status code when the error page is returned. The default 404.
    key string
    The error page file. If the Object accessed does not exist, this error page is returned.
    http_status int
    The HTTP status code when the error page is returned. The default 404.
    key str
    The error page file. If the Object accessed does not exist, this error page is returned.
    httpStatus Number
    The HTTP status code when the error page is returned. The default 404.
    key String
    The error page file. If the Object accessed does not exist, this error page is returned.

    BucketWebsiteIndexDocument, BucketWebsiteIndexDocumentArgs

    Suffix string
    The default home page.
    SupportSubDir bool
    Whether to jump to the default home page of a subdirectory when accessing a subdirectory.
    Type string
    After the default homepage is set, the behavior when an Object that ends with a non-forward slash (/) is accessed and the Object does not exist.
    Suffix string
    The default home page.
    SupportSubDir bool
    Whether to jump to the default home page of a subdirectory when accessing a subdirectory.
    Type string
    After the default homepage is set, the behavior when an Object that ends with a non-forward slash (/) is accessed and the Object does not exist.
    suffix String
    The default home page.
    supportSubDir Boolean
    Whether to jump to the default home page of a subdirectory when accessing a subdirectory.
    type String
    After the default homepage is set, the behavior when an Object that ends with a non-forward slash (/) is accessed and the Object does not exist.
    suffix string
    The default home page.
    supportSubDir boolean
    Whether to jump to the default home page of a subdirectory when accessing a subdirectory.
    type string
    After the default homepage is set, the behavior when an Object that ends with a non-forward slash (/) is accessed and the Object does not exist.
    suffix str
    The default home page.
    support_sub_dir bool
    Whether to jump to the default home page of a subdirectory when accessing a subdirectory.
    type str
    After the default homepage is set, the behavior when an Object that ends with a non-forward slash (/) is accessed and the Object does not exist.
    suffix String
    The default home page.
    supportSubDir Boolean
    Whether to jump to the default home page of a subdirectory when accessing a subdirectory.
    type String
    After the default homepage is set, the behavior when an Object that ends with a non-forward slash (/) is accessed and the Object does not exist.

    BucketWebsiteRoutingRules, BucketWebsiteRoutingRulesArgs

    RoutingRules List<Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRule>
    Specify a jump rule or a mirroring back-to-origin rule, with a maximum of 20 routing rules. See routing_rule below.
    RoutingRules []BucketWebsiteRoutingRulesRoutingRule
    Specify a jump rule or a mirroring back-to-origin rule, with a maximum of 20 routing rules. See routing_rule below.
    routingRules List<BucketWebsiteRoutingRulesRoutingRule>
    Specify a jump rule or a mirroring back-to-origin rule, with a maximum of 20 routing rules. See routing_rule below.
    routingRules BucketWebsiteRoutingRulesRoutingRule[]
    Specify a jump rule or a mirroring back-to-origin rule, with a maximum of 20 routing rules. See routing_rule below.
    routing_rules Sequence[BucketWebsiteRoutingRulesRoutingRule]
    Specify a jump rule or a mirroring back-to-origin rule, with a maximum of 20 routing rules. See routing_rule below.
    routingRules List<Property Map>
    Specify a jump rule or a mirroring back-to-origin rule, with a maximum of 20 routing rules. See routing_rule below.

    BucketWebsiteRoutingRulesRoutingRule, BucketWebsiteRoutingRulesRoutingRuleArgs

    Condition Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleCondition
    Save the criteria that the rule needs to match. See condition below.
    LuaConfig Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleLuaConfig
    The Lua script configuration to be executed. See lua_config below.
    Redirect Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirect
    Specifies the action to perform after this rule is matched. See redirect below.
    RuleNumber int
    The sequence number of the matching and executing jump rules. OSS matches rules according to this sequence number. If the match is successful, the rule is executed and subsequent rules are not executed.
    Condition BucketWebsiteRoutingRulesRoutingRuleCondition
    Save the criteria that the rule needs to match. See condition below.
    LuaConfig BucketWebsiteRoutingRulesRoutingRuleLuaConfig
    The Lua script configuration to be executed. See lua_config below.
    Redirect BucketWebsiteRoutingRulesRoutingRuleRedirect
    Specifies the action to perform after this rule is matched. See redirect below.
    RuleNumber int
    The sequence number of the matching and executing jump rules. OSS matches rules according to this sequence number. If the match is successful, the rule is executed and subsequent rules are not executed.
    condition BucketWebsiteRoutingRulesRoutingRuleCondition
    Save the criteria that the rule needs to match. See condition below.
    luaConfig BucketWebsiteRoutingRulesRoutingRuleLuaConfig
    The Lua script configuration to be executed. See lua_config below.
    redirect BucketWebsiteRoutingRulesRoutingRuleRedirect
    Specifies the action to perform after this rule is matched. See redirect below.
    ruleNumber Integer
    The sequence number of the matching and executing jump rules. OSS matches rules according to this sequence number. If the match is successful, the rule is executed and subsequent rules are not executed.
    condition BucketWebsiteRoutingRulesRoutingRuleCondition
    Save the criteria that the rule needs to match. See condition below.
    luaConfig BucketWebsiteRoutingRulesRoutingRuleLuaConfig
    The Lua script configuration to be executed. See lua_config below.
    redirect BucketWebsiteRoutingRulesRoutingRuleRedirect
    Specifies the action to perform after this rule is matched. See redirect below.
    ruleNumber number
    The sequence number of the matching and executing jump rules. OSS matches rules according to this sequence number. If the match is successful, the rule is executed and subsequent rules are not executed.
    condition BucketWebsiteRoutingRulesRoutingRuleCondition
    Save the criteria that the rule needs to match. See condition below.
    lua_config BucketWebsiteRoutingRulesRoutingRuleLuaConfig
    The Lua script configuration to be executed. See lua_config below.
    redirect BucketWebsiteRoutingRulesRoutingRuleRedirect
    Specifies the action to perform after this rule is matched. See redirect below.
    rule_number int
    The sequence number of the matching and executing jump rules. OSS matches rules according to this sequence number. If the match is successful, the rule is executed and subsequent rules are not executed.
    condition Property Map
    Save the criteria that the rule needs to match. See condition below.
    luaConfig Property Map
    The Lua script configuration to be executed. See lua_config below.
    redirect Property Map
    Specifies the action to perform after this rule is matched. See redirect below.
    ruleNumber Number
    The sequence number of the matching and executing jump rules. OSS matches rules according to this sequence number. If the match is successful, the rule is executed and subsequent rules are not executed.

    BucketWebsiteRoutingRulesRoutingRuleCondition, BucketWebsiteRoutingRulesRoutingRuleConditionArgs

    HttpErrorCodeReturnedEquals string
    When the specified Object is accessed, this status is returned to match this rule. This field must be 404 when the jump rule is mirrored back to the source.
    IncludeHeaders List<Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleConditionIncludeHeader>
    This rule can only be matched if the request contains the specified Header and the value is the specified value. You can specify up to 10 containers. See include_headers below.
    KeyPrefixEquals string
    Only objects that match this prefix can match this rule.
    KeySuffixEquals string
    Only objects that match this suffix can match this rule.
    HttpErrorCodeReturnedEquals string
    When the specified Object is accessed, this status is returned to match this rule. This field must be 404 when the jump rule is mirrored back to the source.
    IncludeHeaders []BucketWebsiteRoutingRulesRoutingRuleConditionIncludeHeader
    This rule can only be matched if the request contains the specified Header and the value is the specified value. You can specify up to 10 containers. See include_headers below.
    KeyPrefixEquals string
    Only objects that match this prefix can match this rule.
    KeySuffixEquals string
    Only objects that match this suffix can match this rule.
    httpErrorCodeReturnedEquals String
    When the specified Object is accessed, this status is returned to match this rule. This field must be 404 when the jump rule is mirrored back to the source.
    includeHeaders List<BucketWebsiteRoutingRulesRoutingRuleConditionIncludeHeader>
    This rule can only be matched if the request contains the specified Header and the value is the specified value. You can specify up to 10 containers. See include_headers below.
    keyPrefixEquals String
    Only objects that match this prefix can match this rule.
    keySuffixEquals String
    Only objects that match this suffix can match this rule.
    httpErrorCodeReturnedEquals string
    When the specified Object is accessed, this status is returned to match this rule. This field must be 404 when the jump rule is mirrored back to the source.
    includeHeaders BucketWebsiteRoutingRulesRoutingRuleConditionIncludeHeader[]
    This rule can only be matched if the request contains the specified Header and the value is the specified value. You can specify up to 10 containers. See include_headers below.
    keyPrefixEquals string
    Only objects that match this prefix can match this rule.
    keySuffixEquals string
    Only objects that match this suffix can match this rule.
    http_error_code_returned_equals str
    When the specified Object is accessed, this status is returned to match this rule. This field must be 404 when the jump rule is mirrored back to the source.
    include_headers Sequence[BucketWebsiteRoutingRulesRoutingRuleConditionIncludeHeader]
    This rule can only be matched if the request contains the specified Header and the value is the specified value. You can specify up to 10 containers. See include_headers below.
    key_prefix_equals str
    Only objects that match this prefix can match this rule.
    key_suffix_equals str
    Only objects that match this suffix can match this rule.
    httpErrorCodeReturnedEquals String
    When the specified Object is accessed, this status is returned to match this rule. This field must be 404 when the jump rule is mirrored back to the source.
    includeHeaders List<Property Map>
    This rule can only be matched if the request contains the specified Header and the value is the specified value. You can specify up to 10 containers. See include_headers below.
    keyPrefixEquals String
    Only objects that match this prefix can match this rule.
    keySuffixEquals String
    Only objects that match this suffix can match this rule.

    BucketWebsiteRoutingRulesRoutingRuleConditionIncludeHeader, BucketWebsiteRoutingRulesRoutingRuleConditionIncludeHeaderArgs

    EndsWith string
    This rule can only be matched if the request contains the Header specified by Key and the value ends with this value.
    Equals string
    This rule can only be matched if the request contains the Header specified by Key and the value is the specified value.
    Key string
    StartsWith string
    This rule can only be matched if the request contains the Header specified by Key and the value starts with this value.
    EndsWith string
    This rule can only be matched if the request contains the Header specified by Key and the value ends with this value.
    Equals string
    This rule can only be matched if the request contains the Header specified by Key and the value is the specified value.
    Key string
    StartsWith string
    This rule can only be matched if the request contains the Header specified by Key and the value starts with this value.
    endsWith String
    This rule can only be matched if the request contains the Header specified by Key and the value ends with this value.
    equals_ String
    This rule can only be matched if the request contains the Header specified by Key and the value is the specified value.
    key String
    startsWith String
    This rule can only be matched if the request contains the Header specified by Key and the value starts with this value.
    endsWith string
    This rule can only be matched if the request contains the Header specified by Key and the value ends with this value.
    equals string
    This rule can only be matched if the request contains the Header specified by Key and the value is the specified value.
    key string
    startsWith string
    This rule can only be matched if the request contains the Header specified by Key and the value starts with this value.
    ends_with str
    This rule can only be matched if the request contains the Header specified by Key and the value ends with this value.
    equals str
    This rule can only be matched if the request contains the Header specified by Key and the value is the specified value.
    key str
    starts_with str
    This rule can only be matched if the request contains the Header specified by Key and the value starts with this value.
    endsWith String
    This rule can only be matched if the request contains the Header specified by Key and the value ends with this value.
    equals String
    This rule can only be matched if the request contains the Header specified by Key and the value is the specified value.
    key String
    startsWith String
    This rule can only be matched if the request contains the Header specified by Key and the value starts with this value.

    BucketWebsiteRoutingRulesRoutingRuleLuaConfig, BucketWebsiteRoutingRulesRoutingRuleLuaConfigArgs

    Script string
    The Lua script name.
    Script string
    The Lua script name.
    script String
    The Lua script name.
    script string
    The Lua script name.
    script str
    The Lua script name.
    script String
    The Lua script name.

    BucketWebsiteRoutingRulesRoutingRuleRedirect, BucketWebsiteRoutingRulesRoutingRuleRedirectArgs

    EnableReplacePrefix bool
    If this field is set to true, the prefix of Object is replaced with the value specified by ReplaceKeyPrefixWith. If this field is not specified or is blank, the Object prefix is truncated.
    HostName string
    The domain name during the jump. The domain name must comply with the domain name specification.
    HttpRedirectCode string
    The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
    MirrorAllowGetImageInfo bool
    Image back-to-source allows getting Image information
    MirrorAllowHeadObject bool
    Whether to allow HeadObject in image back-to-source
    MirrorAllowVideoSnapshot bool
    Mirror back-to-source allows support for video frame truncation
    MirrorAsyncStatus int
    The status code of the mirror back-to-source trigger asynchronous pull mode.
    MirrorAuth Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuth
    Image back Source station authentication information See mirror_auth below.
    MirrorCheckMd5 bool
    Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
    MirrorDstRegion string
    Mirrored back-to-source high-speed Channel vpregion
    MirrorDstSlaveVpcId string
    Mirroring back-to-source high-speed Channel standby station VpcId
    MirrorDstVpcId string
    Mirror back-to-source high-speed Channel VpcId
    MirrorFollowRedirect bool
    If the result of the image back-to-source acquisition is 3xx, whether to continue to jump to the specified Location to obtain data. It takes effect only when the RedirectType is set to Mirror.
    MirrorHeaders Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeaders
    Specifies the Header carried when the image returns to the source. It takes effect only when the RedirectType is set to Mirror. See mirror_headers below.
    MirrorIsExpressTunnel bool
    Whether it is a mirror back-to-source high-speed Channel
    MirrorMultiAlternates Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternates
    Mirror back-to-source multi-source station configuration container. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_multi_alternates below.
    MirrorPassOriginalSlashes bool
    Transparent transmission/to source Station
    MirrorPassQueryString bool
    Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
    MirrorProxyPass bool
    Whether mirroring back to source does not save data
    MirrorReturnHeaders Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeaders
    The container that saves the image back to the source and returns the response header rule. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_return_headers below.
    MirrorRole string
    Roles used when mirroring back-to-source
    MirrorSaveOssMeta bool
    Mirror back-to-source back-to-source OSS automatically saves user metadata
    MirrorSni bool
    Transparent transmission of SNI
    MirrorSwitchAllErrors bool
    It is used to judge the status of active-standby switching. The judgment logic of active-standby switching is that the source station returns an error. If MirrorSwitchAllErrors is true, it is considered a failure except the following status code: 200,206,301,302,303,307,404; If false, only the source Station Returns 5xx or times out is considered a failure.
    MirrorTaggings Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggings
    Save the label according to the parameters when saving the file from the mirror back to the source. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_taggings below.
    MirrorTunnelId string
    Mirror back-to-source leased line back-to-source tunnel ID
    MirrorUrl string
    The address of the origin of the image. It takes effect only when the RedirectType is set to Mirror. The origin address must start with http:// or https:// and end with a forward slash (/). OSS takes the Object name after the Origin address to form the origin URL.
    MirrorUrlProbe string
    Mirror back-to-source Master-backup back-to-source switching decision URL
    MirrorUrlSlave string
    Mirror back-to-source primary backup back-to-source backup station URL
    MirrorUserLastModified bool
    Whether the source station LastModifiedTime is used for the image back-to-source save file.
    MirrorUsingRole bool
    Whether to use role for mirroring back to source
    PassQueryString bool
    Whether to carry the request parameters when executing the jump or mirror back-to-source rule. Did the user carry the request parameters when requesting OSS? a = B & c = d, and set PassQueryString to true. If the rule is a 302 jump, this request parameter is added to the Location header of the jump. For example Location:example.com? a = B & c = d, and the jump type is mirrored back-to-origin, this request parameter is also carried in the back-to-origin request initiated. Values: true, false (default)
    Protocol string
    The protocol at the time of the jump. It takes effect only when the RedirectType is set to External or AliCDN.
    RedirectType string
    Specifies the type of jump. The value range is as follows: Mirror: Mirror back to the source. External: External redirects, that is, OSS returns a 3xx request to redirect to another address. AliCDN: Alibaba Cloud CDN jump, mainly used for Alibaba Cloud CDN. Unlike External, OSS adds an additional Header. After recognizing this Header, Alibaba Cloud CDN redirects the data to the specified address and returns the obtained data to the user instead of returning the 3xx Redirection request to the user.
    ReplaceKeyPrefixWith string
    The prefix of the Object name will be replaced with this value during Redirect. If the prefix is empty, this string is inserted in front of the Object name.
    ReplaceKeyWith string
    During redirection, the Object name is replaced with the value specified by ReplaceKeyWith. You can set variables in ReplaceKeyWith. Currently, the supported variable is ${key}, which indicates the name of the Object in the request.
    TransparentMirrorResponseCodes string
    Mirror back-to-source transparent source station response code list
    EnableReplacePrefix bool
    If this field is set to true, the prefix of Object is replaced with the value specified by ReplaceKeyPrefixWith. If this field is not specified or is blank, the Object prefix is truncated.
    HostName string
    The domain name during the jump. The domain name must comply with the domain name specification.
    HttpRedirectCode string
    The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
    MirrorAllowGetImageInfo bool
    Image back-to-source allows getting Image information
    MirrorAllowHeadObject bool
    Whether to allow HeadObject in image back-to-source
    MirrorAllowVideoSnapshot bool
    Mirror back-to-source allows support for video frame truncation
    MirrorAsyncStatus int
    The status code of the mirror back-to-source trigger asynchronous pull mode.
    MirrorAuth BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuth
    Image back Source station authentication information See mirror_auth below.
    MirrorCheckMd5 bool
    Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
    MirrorDstRegion string
    Mirrored back-to-source high-speed Channel vpregion
    MirrorDstSlaveVpcId string
    Mirroring back-to-source high-speed Channel standby station VpcId
    MirrorDstVpcId string
    Mirror back-to-source high-speed Channel VpcId
    MirrorFollowRedirect bool
    If the result of the image back-to-source acquisition is 3xx, whether to continue to jump to the specified Location to obtain data. It takes effect only when the RedirectType is set to Mirror.
    MirrorHeaders BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeaders
    Specifies the Header carried when the image returns to the source. It takes effect only when the RedirectType is set to Mirror. See mirror_headers below.
    MirrorIsExpressTunnel bool
    Whether it is a mirror back-to-source high-speed Channel
    MirrorMultiAlternates BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternates
    Mirror back-to-source multi-source station configuration container. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_multi_alternates below.
    MirrorPassOriginalSlashes bool
    Transparent transmission/to source Station
    MirrorPassQueryString bool
    Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
    MirrorProxyPass bool
    Whether mirroring back to source does not save data
    MirrorReturnHeaders BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeaders
    The container that saves the image back to the source and returns the response header rule. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_return_headers below.
    MirrorRole string
    Roles used when mirroring back-to-source
    MirrorSaveOssMeta bool
    Mirror back-to-source back-to-source OSS automatically saves user metadata
    MirrorSni bool
    Transparent transmission of SNI
    MirrorSwitchAllErrors bool
    It is used to judge the status of active-standby switching. The judgment logic of active-standby switching is that the source station returns an error. If MirrorSwitchAllErrors is true, it is considered a failure except the following status code: 200,206,301,302,303,307,404; If false, only the source Station Returns 5xx or times out is considered a failure.
    MirrorTaggings BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggings
    Save the label according to the parameters when saving the file from the mirror back to the source. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_taggings below.
    MirrorTunnelId string
    Mirror back-to-source leased line back-to-source tunnel ID
    MirrorUrl string
    The address of the origin of the image. It takes effect only when the RedirectType is set to Mirror. The origin address must start with http:// or https:// and end with a forward slash (/). OSS takes the Object name after the Origin address to form the origin URL.
    MirrorUrlProbe string
    Mirror back-to-source Master-backup back-to-source switching decision URL
    MirrorUrlSlave string
    Mirror back-to-source primary backup back-to-source backup station URL
    MirrorUserLastModified bool
    Whether the source station LastModifiedTime is used for the image back-to-source save file.
    MirrorUsingRole bool
    Whether to use role for mirroring back to source
    PassQueryString bool
    Whether to carry the request parameters when executing the jump or mirror back-to-source rule. Did the user carry the request parameters when requesting OSS? a = B & c = d, and set PassQueryString to true. If the rule is a 302 jump, this request parameter is added to the Location header of the jump. For example Location:example.com? a = B & c = d, and the jump type is mirrored back-to-origin, this request parameter is also carried in the back-to-origin request initiated. Values: true, false (default)
    Protocol string
    The protocol at the time of the jump. It takes effect only when the RedirectType is set to External or AliCDN.
    RedirectType string
    Specifies the type of jump. The value range is as follows: Mirror: Mirror back to the source. External: External redirects, that is, OSS returns a 3xx request to redirect to another address. AliCDN: Alibaba Cloud CDN jump, mainly used for Alibaba Cloud CDN. Unlike External, OSS adds an additional Header. After recognizing this Header, Alibaba Cloud CDN redirects the data to the specified address and returns the obtained data to the user instead of returning the 3xx Redirection request to the user.
    ReplaceKeyPrefixWith string
    The prefix of the Object name will be replaced with this value during Redirect. If the prefix is empty, this string is inserted in front of the Object name.
    ReplaceKeyWith string
    During redirection, the Object name is replaced with the value specified by ReplaceKeyWith. You can set variables in ReplaceKeyWith. Currently, the supported variable is ${key}, which indicates the name of the Object in the request.
    TransparentMirrorResponseCodes string
    Mirror back-to-source transparent source station response code list
    enableReplacePrefix Boolean
    If this field is set to true, the prefix of Object is replaced with the value specified by ReplaceKeyPrefixWith. If this field is not specified or is blank, the Object prefix is truncated.
    hostName String
    The domain name during the jump. The domain name must comply with the domain name specification.
    httpRedirectCode String
    The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
    mirrorAllowGetImageInfo Boolean
    Image back-to-source allows getting Image information
    mirrorAllowHeadObject Boolean
    Whether to allow HeadObject in image back-to-source
    mirrorAllowVideoSnapshot Boolean
    Mirror back-to-source allows support for video frame truncation
    mirrorAsyncStatus Integer
    The status code of the mirror back-to-source trigger asynchronous pull mode.
    mirrorAuth BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuth
    Image back Source station authentication information See mirror_auth below.
    mirrorCheckMd5 Boolean
    Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
    mirrorDstRegion String
    Mirrored back-to-source high-speed Channel vpregion
    mirrorDstSlaveVpcId String
    Mirroring back-to-source high-speed Channel standby station VpcId
    mirrorDstVpcId String
    Mirror back-to-source high-speed Channel VpcId
    mirrorFollowRedirect Boolean
    If the result of the image back-to-source acquisition is 3xx, whether to continue to jump to the specified Location to obtain data. It takes effect only when the RedirectType is set to Mirror.
    mirrorHeaders BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeaders
    Specifies the Header carried when the image returns to the source. It takes effect only when the RedirectType is set to Mirror. See mirror_headers below.
    mirrorIsExpressTunnel Boolean
    Whether it is a mirror back-to-source high-speed Channel
    mirrorMultiAlternates BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternates
    Mirror back-to-source multi-source station configuration container. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_multi_alternates below.
    mirrorPassOriginalSlashes Boolean
    Transparent transmission/to source Station
    mirrorPassQueryString Boolean
    Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
    mirrorProxyPass Boolean
    Whether mirroring back to source does not save data
    mirrorReturnHeaders BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeaders
    The container that saves the image back to the source and returns the response header rule. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_return_headers below.
    mirrorRole String
    Roles used when mirroring back-to-source
    mirrorSaveOssMeta Boolean
    Mirror back-to-source back-to-source OSS automatically saves user metadata
    mirrorSni Boolean
    Transparent transmission of SNI
    mirrorSwitchAllErrors Boolean
    It is used to judge the status of active-standby switching. The judgment logic of active-standby switching is that the source station returns an error. If MirrorSwitchAllErrors is true, it is considered a failure except the following status code: 200,206,301,302,303,307,404; If false, only the source Station Returns 5xx or times out is considered a failure.
    mirrorTaggings BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggings
    Save the label according to the parameters when saving the file from the mirror back to the source. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_taggings below.
    mirrorTunnelId String
    Mirror back-to-source leased line back-to-source tunnel ID
    mirrorUrl String
    The address of the origin of the image. It takes effect only when the RedirectType is set to Mirror. The origin address must start with http:// or https:// and end with a forward slash (/). OSS takes the Object name after the Origin address to form the origin URL.
    mirrorUrlProbe String
    Mirror back-to-source Master-backup back-to-source switching decision URL
    mirrorUrlSlave String
    Mirror back-to-source primary backup back-to-source backup station URL
    mirrorUserLastModified Boolean
    Whether the source station LastModifiedTime is used for the image back-to-source save file.
    mirrorUsingRole Boolean
    Whether to use role for mirroring back to source
    passQueryString Boolean
    Whether to carry the request parameters when executing the jump or mirror back-to-source rule. Did the user carry the request parameters when requesting OSS? a = B & c = d, and set PassQueryString to true. If the rule is a 302 jump, this request parameter is added to the Location header of the jump. For example Location:example.com? a = B & c = d, and the jump type is mirrored back-to-origin, this request parameter is also carried in the back-to-origin request initiated. Values: true, false (default)
    protocol String
    The protocol at the time of the jump. It takes effect only when the RedirectType is set to External or AliCDN.
    redirectType String
    Specifies the type of jump. The value range is as follows: Mirror: Mirror back to the source. External: External redirects, that is, OSS returns a 3xx request to redirect to another address. AliCDN: Alibaba Cloud CDN jump, mainly used for Alibaba Cloud CDN. Unlike External, OSS adds an additional Header. After recognizing this Header, Alibaba Cloud CDN redirects the data to the specified address and returns the obtained data to the user instead of returning the 3xx Redirection request to the user.
    replaceKeyPrefixWith String
    The prefix of the Object name will be replaced with this value during Redirect. If the prefix is empty, this string is inserted in front of the Object name.
    replaceKeyWith String
    During redirection, the Object name is replaced with the value specified by ReplaceKeyWith. You can set variables in ReplaceKeyWith. Currently, the supported variable is ${key}, which indicates the name of the Object in the request.
    transparentMirrorResponseCodes String
    Mirror back-to-source transparent source station response code list
    enableReplacePrefix boolean
    If this field is set to true, the prefix of Object is replaced with the value specified by ReplaceKeyPrefixWith. If this field is not specified or is blank, the Object prefix is truncated.
    hostName string
    The domain name during the jump. The domain name must comply with the domain name specification.
    httpRedirectCode string
    The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
    mirrorAllowGetImageInfo boolean
    Image back-to-source allows getting Image information
    mirrorAllowHeadObject boolean
    Whether to allow HeadObject in image back-to-source
    mirrorAllowVideoSnapshot boolean
    Mirror back-to-source allows support for video frame truncation
    mirrorAsyncStatus number
    The status code of the mirror back-to-source trigger asynchronous pull mode.
    mirrorAuth BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuth
    Image back Source station authentication information See mirror_auth below.
    mirrorCheckMd5 boolean
    Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
    mirrorDstRegion string
    Mirrored back-to-source high-speed Channel vpregion
    mirrorDstSlaveVpcId string
    Mirroring back-to-source high-speed Channel standby station VpcId
    mirrorDstVpcId string
    Mirror back-to-source high-speed Channel VpcId
    mirrorFollowRedirect boolean
    If the result of the image back-to-source acquisition is 3xx, whether to continue to jump to the specified Location to obtain data. It takes effect only when the RedirectType is set to Mirror.
    mirrorHeaders BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeaders
    Specifies the Header carried when the image returns to the source. It takes effect only when the RedirectType is set to Mirror. See mirror_headers below.
    mirrorIsExpressTunnel boolean
    Whether it is a mirror back-to-source high-speed Channel
    mirrorMultiAlternates BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternates
    Mirror back-to-source multi-source station configuration container. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_multi_alternates below.
    mirrorPassOriginalSlashes boolean
    Transparent transmission/to source Station
    mirrorPassQueryString boolean
    Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
    mirrorProxyPass boolean
    Whether mirroring back to source does not save data
    mirrorReturnHeaders BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeaders
    The container that saves the image back to the source and returns the response header rule. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_return_headers below.
    mirrorRole string
    Roles used when mirroring back-to-source
    mirrorSaveOssMeta boolean
    Mirror back-to-source back-to-source OSS automatically saves user metadata
    mirrorSni boolean
    Transparent transmission of SNI
    mirrorSwitchAllErrors boolean
    It is used to judge the status of active-standby switching. The judgment logic of active-standby switching is that the source station returns an error. If MirrorSwitchAllErrors is true, it is considered a failure except the following status code: 200,206,301,302,303,307,404; If false, only the source Station Returns 5xx or times out is considered a failure.
    mirrorTaggings BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggings
    Save the label according to the parameters when saving the file from the mirror back to the source. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_taggings below.
    mirrorTunnelId string
    Mirror back-to-source leased line back-to-source tunnel ID
    mirrorUrl string
    The address of the origin of the image. It takes effect only when the RedirectType is set to Mirror. The origin address must start with http:// or https:// and end with a forward slash (/). OSS takes the Object name after the Origin address to form the origin URL.
    mirrorUrlProbe string
    Mirror back-to-source Master-backup back-to-source switching decision URL
    mirrorUrlSlave string
    Mirror back-to-source primary backup back-to-source backup station URL
    mirrorUserLastModified boolean
    Whether the source station LastModifiedTime is used for the image back-to-source save file.
    mirrorUsingRole boolean
    Whether to use role for mirroring back to source
    passQueryString boolean
    Whether to carry the request parameters when executing the jump or mirror back-to-source rule. Did the user carry the request parameters when requesting OSS? a = B & c = d, and set PassQueryString to true. If the rule is a 302 jump, this request parameter is added to the Location header of the jump. For example Location:example.com? a = B & c = d, and the jump type is mirrored back-to-origin, this request parameter is also carried in the back-to-origin request initiated. Values: true, false (default)
    protocol string
    The protocol at the time of the jump. It takes effect only when the RedirectType is set to External or AliCDN.
    redirectType string
    Specifies the type of jump. The value range is as follows: Mirror: Mirror back to the source. External: External redirects, that is, OSS returns a 3xx request to redirect to another address. AliCDN: Alibaba Cloud CDN jump, mainly used for Alibaba Cloud CDN. Unlike External, OSS adds an additional Header. After recognizing this Header, Alibaba Cloud CDN redirects the data to the specified address and returns the obtained data to the user instead of returning the 3xx Redirection request to the user.
    replaceKeyPrefixWith string
    The prefix of the Object name will be replaced with this value during Redirect. If the prefix is empty, this string is inserted in front of the Object name.
    replaceKeyWith string
    During redirection, the Object name is replaced with the value specified by ReplaceKeyWith. You can set variables in ReplaceKeyWith. Currently, the supported variable is ${key}, which indicates the name of the Object in the request.
    transparentMirrorResponseCodes string
    Mirror back-to-source transparent source station response code list
    enable_replace_prefix bool
    If this field is set to true, the prefix of Object is replaced with the value specified by ReplaceKeyPrefixWith. If this field is not specified or is blank, the Object prefix is truncated.
    host_name str
    The domain name during the jump. The domain name must comply with the domain name specification.
    http_redirect_code str
    The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
    mirror_allow_get_image_info bool
    Image back-to-source allows getting Image information
    mirror_allow_head_object bool
    Whether to allow HeadObject in image back-to-source
    mirror_allow_video_snapshot bool
    Mirror back-to-source allows support for video frame truncation
    mirror_async_status int
    The status code of the mirror back-to-source trigger asynchronous pull mode.
    mirror_auth BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuth
    Image back Source station authentication information See mirror_auth below.
    mirror_check_md5 bool
    Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
    mirror_dst_region str
    Mirrored back-to-source high-speed Channel vpregion
    mirror_dst_slave_vpc_id str
    Mirroring back-to-source high-speed Channel standby station VpcId
    mirror_dst_vpc_id str
    Mirror back-to-source high-speed Channel VpcId
    mirror_follow_redirect bool
    If the result of the image back-to-source acquisition is 3xx, whether to continue to jump to the specified Location to obtain data. It takes effect only when the RedirectType is set to Mirror.
    mirror_headers BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeaders
    Specifies the Header carried when the image returns to the source. It takes effect only when the RedirectType is set to Mirror. See mirror_headers below.
    mirror_is_express_tunnel bool
    Whether it is a mirror back-to-source high-speed Channel
    mirror_multi_alternates BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternates
    Mirror back-to-source multi-source station configuration container. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_multi_alternates below.
    mirror_pass_original_slashes bool
    Transparent transmission/to source Station
    mirror_pass_query_string bool
    Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
    mirror_proxy_pass bool
    Whether mirroring back to source does not save data
    mirror_return_headers BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeaders
    The container that saves the image back to the source and returns the response header rule. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_return_headers below.
    mirror_role str
    Roles used when mirroring back-to-source
    mirror_save_oss_meta bool
    Mirror back-to-source back-to-source OSS automatically saves user metadata
    mirror_sni bool
    Transparent transmission of SNI
    mirror_switch_all_errors bool
    It is used to judge the status of active-standby switching. The judgment logic of active-standby switching is that the source station returns an error. If MirrorSwitchAllErrors is true, it is considered a failure except the following status code: 200,206,301,302,303,307,404; If false, only the source Station Returns 5xx or times out is considered a failure.
    mirror_taggings BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggings
    Save the label according to the parameters when saving the file from the mirror back to the source. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_taggings below.
    mirror_tunnel_id str
    Mirror back-to-source leased line back-to-source tunnel ID
    mirror_url str
    The address of the origin of the image. It takes effect only when the RedirectType is set to Mirror. The origin address must start with http:// or https:// and end with a forward slash (/). OSS takes the Object name after the Origin address to form the origin URL.
    mirror_url_probe str
    Mirror back-to-source Master-backup back-to-source switching decision URL
    mirror_url_slave str
    Mirror back-to-source primary backup back-to-source backup station URL
    mirror_user_last_modified bool
    Whether the source station LastModifiedTime is used for the image back-to-source save file.
    mirror_using_role bool
    Whether to use role for mirroring back to source
    pass_query_string bool
    Whether to carry the request parameters when executing the jump or mirror back-to-source rule. Did the user carry the request parameters when requesting OSS? a = B & c = d, and set PassQueryString to true. If the rule is a 302 jump, this request parameter is added to the Location header of the jump. For example Location:example.com? a = B & c = d, and the jump type is mirrored back-to-origin, this request parameter is also carried in the back-to-origin request initiated. Values: true, false (default)
    protocol str
    The protocol at the time of the jump. It takes effect only when the RedirectType is set to External or AliCDN.
    redirect_type str
    Specifies the type of jump. The value range is as follows: Mirror: Mirror back to the source. External: External redirects, that is, OSS returns a 3xx request to redirect to another address. AliCDN: Alibaba Cloud CDN jump, mainly used for Alibaba Cloud CDN. Unlike External, OSS adds an additional Header. After recognizing this Header, Alibaba Cloud CDN redirects the data to the specified address and returns the obtained data to the user instead of returning the 3xx Redirection request to the user.
    replace_key_prefix_with str
    The prefix of the Object name will be replaced with this value during Redirect. If the prefix is empty, this string is inserted in front of the Object name.
    replace_key_with str
    During redirection, the Object name is replaced with the value specified by ReplaceKeyWith. You can set variables in ReplaceKeyWith. Currently, the supported variable is ${key}, which indicates the name of the Object in the request.
    transparent_mirror_response_codes str
    Mirror back-to-source transparent source station response code list
    enableReplacePrefix Boolean
    If this field is set to true, the prefix of Object is replaced with the value specified by ReplaceKeyPrefixWith. If this field is not specified or is blank, the Object prefix is truncated.
    hostName String
    The domain name during the jump. The domain name must comply with the domain name specification.
    httpRedirectCode String
    The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
    mirrorAllowGetImageInfo Boolean
    Image back-to-source allows getting Image information
    mirrorAllowHeadObject Boolean
    Whether to allow HeadObject in image back-to-source
    mirrorAllowVideoSnapshot Boolean
    Mirror back-to-source allows support for video frame truncation
    mirrorAsyncStatus Number
    The status code of the mirror back-to-source trigger asynchronous pull mode.
    mirrorAuth Property Map
    Image back Source station authentication information See mirror_auth below.
    mirrorCheckMd5 Boolean
    Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
    mirrorDstRegion String
    Mirrored back-to-source high-speed Channel vpregion
    mirrorDstSlaveVpcId String
    Mirroring back-to-source high-speed Channel standby station VpcId
    mirrorDstVpcId String
    Mirror back-to-source high-speed Channel VpcId
    mirrorFollowRedirect Boolean
    If the result of the image back-to-source acquisition is 3xx, whether to continue to jump to the specified Location to obtain data. It takes effect only when the RedirectType is set to Mirror.
    mirrorHeaders Property Map
    Specifies the Header carried when the image returns to the source. It takes effect only when the RedirectType is set to Mirror. See mirror_headers below.
    mirrorIsExpressTunnel Boolean
    Whether it is a mirror back-to-source high-speed Channel
    mirrorMultiAlternates Property Map
    Mirror back-to-source multi-source station configuration container. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_multi_alternates below.
    mirrorPassOriginalSlashes Boolean
    Transparent transmission/to source Station
    mirrorPassQueryString Boolean
    Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
    mirrorProxyPass Boolean
    Whether mirroring back to source does not save data
    mirrorReturnHeaders Property Map
    The container that saves the image back to the source and returns the response header rule. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_return_headers below.
    mirrorRole String
    Roles used when mirroring back-to-source
    mirrorSaveOssMeta Boolean
    Mirror back-to-source back-to-source OSS automatically saves user metadata
    mirrorSni Boolean
    Transparent transmission of SNI
    mirrorSwitchAllErrors Boolean
    It is used to judge the status of active-standby switching. The judgment logic of active-standby switching is that the source station returns an error. If MirrorSwitchAllErrors is true, it is considered a failure except the following status code: 200,206,301,302,303,307,404; If false, only the source Station Returns 5xx or times out is considered a failure.
    mirrorTaggings Property Map
    Save the label according to the parameters when saving the file from the mirror back to the source. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See mirror_taggings below.
    mirrorTunnelId String
    Mirror back-to-source leased line back-to-source tunnel ID
    mirrorUrl String
    The address of the origin of the image. It takes effect only when the RedirectType is set to Mirror. The origin address must start with http:// or https:// and end with a forward slash (/). OSS takes the Object name after the Origin address to form the origin URL.
    mirrorUrlProbe String
    Mirror back-to-source Master-backup back-to-source switching decision URL
    mirrorUrlSlave String
    Mirror back-to-source primary backup back-to-source backup station URL
    mirrorUserLastModified Boolean
    Whether the source station LastModifiedTime is used for the image back-to-source save file.
    mirrorUsingRole Boolean
    Whether to use role for mirroring back to source
    passQueryString Boolean
    Whether to carry the request parameters when executing the jump or mirror back-to-source rule. Did the user carry the request parameters when requesting OSS? a = B & c = d, and set PassQueryString to true. If the rule is a 302 jump, this request parameter is added to the Location header of the jump. For example Location:example.com? a = B & c = d, and the jump type is mirrored back-to-origin, this request parameter is also carried in the back-to-origin request initiated. Values: true, false (default)
    protocol String
    The protocol at the time of the jump. It takes effect only when the RedirectType is set to External or AliCDN.
    redirectType String
    Specifies the type of jump. The value range is as follows: Mirror: Mirror back to the source. External: External redirects, that is, OSS returns a 3xx request to redirect to another address. AliCDN: Alibaba Cloud CDN jump, mainly used for Alibaba Cloud CDN. Unlike External, OSS adds an additional Header. After recognizing this Header, Alibaba Cloud CDN redirects the data to the specified address and returns the obtained data to the user instead of returning the 3xx Redirection request to the user.
    replaceKeyPrefixWith String
    The prefix of the Object name will be replaced with this value during Redirect. If the prefix is empty, this string is inserted in front of the Object name.
    replaceKeyWith String
    During redirection, the Object name is replaced with the value specified by ReplaceKeyWith. You can set variables in ReplaceKeyWith. Currently, the supported variable is ${key}, which indicates the name of the Object in the request.
    transparentMirrorResponseCodes String
    Mirror back-to-source transparent source station response code list

    BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuth, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuthArgs

    AccessKeyId string
    Mirror back-to-source source Station back-to-source AK
    AccessKeySecret string
    Mirroring back to the source station back to the source SK will be automatically desensitized when obtaining the configuration.
    AuthType string
    Authentication type of mirror return Source
    Region string
    Signature Region
    AccessKeyId string
    Mirror back-to-source source Station back-to-source AK
    AccessKeySecret string
    Mirroring back to the source station back to the source SK will be automatically desensitized when obtaining the configuration.
    AuthType string
    Authentication type of mirror return Source
    Region string
    Signature Region
    accessKeyId String
    Mirror back-to-source source Station back-to-source AK
    accessKeySecret String
    Mirroring back to the source station back to the source SK will be automatically desensitized when obtaining the configuration.
    authType String
    Authentication type of mirror return Source
    region String
    Signature Region
    accessKeyId string
    Mirror back-to-source source Station back-to-source AK
    accessKeySecret string
    Mirroring back to the source station back to the source SK will be automatically desensitized when obtaining the configuration.
    authType string
    Authentication type of mirror return Source
    region string
    Signature Region
    access_key_id str
    Mirror back-to-source source Station back-to-source AK
    access_key_secret str
    Mirroring back to the source station back to the source SK will be automatically desensitized when obtaining the configuration.
    auth_type str
    Authentication type of mirror return Source
    region str
    Signature Region
    accessKeyId String
    Mirror back-to-source source Station back-to-source AK
    accessKeySecret String
    Mirroring back to the source station back to the source SK will be automatically desensitized when obtaining the configuration.
    authType String
    Authentication type of mirror return Source
    region String
    Signature Region

    BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeaders, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersArgs

    PassAll bool
    Indicates whether other headers except the following headers are transmitted to the source site. It takes effect only when the RedirectType is set to Mirror. content-length, authorization2, authorization, range, date, and other headers Headers whose names start with oss-/x-oss-/x-drs-
    Passes List<string>
    Pass through the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
    Removes List<string>
    Do not pass the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
    Sets List<Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSet>
    Set a Header to send to the source site. Regardless of whether the request contains the specified Header, these headers will be set when returning to the source site. It takes effect only when the RedirectType is set to Mirror. See set below.
    PassAll bool
    Indicates whether other headers except the following headers are transmitted to the source site. It takes effect only when the RedirectType is set to Mirror. content-length, authorization2, authorization, range, date, and other headers Headers whose names start with oss-/x-oss-/x-drs-
    Passes []string
    Pass through the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
    Removes []string
    Do not pass the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
    Sets []BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSet
    Set a Header to send to the source site. Regardless of whether the request contains the specified Header, these headers will be set when returning to the source site. It takes effect only when the RedirectType is set to Mirror. See set below.
    passAll Boolean
    Indicates whether other headers except the following headers are transmitted to the source site. It takes effect only when the RedirectType is set to Mirror. content-length, authorization2, authorization, range, date, and other headers Headers whose names start with oss-/x-oss-/x-drs-
    passes List<String>
    Pass through the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
    removes List<String>
    Do not pass the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
    sets List<BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSet>
    Set a Header to send to the source site. Regardless of whether the request contains the specified Header, these headers will be set when returning to the source site. It takes effect only when the RedirectType is set to Mirror. See set below.
    passAll boolean
    Indicates whether other headers except the following headers are transmitted to the source site. It takes effect only when the RedirectType is set to Mirror. content-length, authorization2, authorization, range, date, and other headers Headers whose names start with oss-/x-oss-/x-drs-
    passes string[]
    Pass through the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
    removes string[]
    Do not pass the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
    sets BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSet[]
    Set a Header to send to the source site. Regardless of whether the request contains the specified Header, these headers will be set when returning to the source site. It takes effect only when the RedirectType is set to Mirror. See set below.
    pass_all bool
    Indicates whether other headers except the following headers are transmitted to the source site. It takes effect only when the RedirectType is set to Mirror. content-length, authorization2, authorization, range, date, and other headers Headers whose names start with oss-/x-oss-/x-drs-
    passes Sequence[str]
    Pass through the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
    removes Sequence[str]
    Do not pass the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
    sets Sequence[BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSet]
    Set a Header to send to the source site. Regardless of whether the request contains the specified Header, these headers will be set when returning to the source site. It takes effect only when the RedirectType is set to Mirror. See set below.
    passAll Boolean
    Indicates whether other headers except the following headers are transmitted to the source site. It takes effect only when the RedirectType is set to Mirror. content-length, authorization2, authorization, range, date, and other headers Headers whose names start with oss-/x-oss-/x-drs-
    passes List<String>
    Pass through the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
    removes List<String>
    Do not pass the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
    sets List<Property Map>
    Set a Header to send to the source site. Regardless of whether the request contains the specified Header, these headers will be set when returning to the source site. It takes effect only when the RedirectType is set to Mirror. See set below.

    BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSet, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSetArgs

    Key string
    Value string
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    Key string
    Value string
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    key String
    value String
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    key string
    value string
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    key str
    value str
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    key String
    value String
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.

    BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternates, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesArgs

    MirrorMultiAlternates List<Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternate>
    Mirror back-to-source multi-source station configuration list See mirror_multi_alternate below.
    MirrorMultiAlternates []BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternate
    Mirror back-to-source multi-source station configuration list See mirror_multi_alternate below.
    mirrorMultiAlternates List<BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternate>
    Mirror back-to-source multi-source station configuration list See mirror_multi_alternate below.
    mirrorMultiAlternates BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternate[]
    Mirror back-to-source multi-source station configuration list See mirror_multi_alternate below.
    mirror_multi_alternates Sequence[BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternate]
    Mirror back-to-source multi-source station configuration list See mirror_multi_alternate below.
    mirrorMultiAlternates List<Property Map>
    Mirror back-to-source multi-source station configuration list See mirror_multi_alternate below.

    BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternate, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternateArgs

    MirrorMultiAlternateDstRegion string
    Mirroring back-to-source multi-station Region
    MirrorMultiAlternateNumber int
    Image back-to-source multi-source station serial number
    MirrorMultiAlternateUrl string
    Mirroring back-to-source multi-source site URL
    MirrorMultiAlternateVpcId string
    Mirroring back-to-source multi-source VpcId
    MirrorMultiAlternateDstRegion string
    Mirroring back-to-source multi-station Region
    MirrorMultiAlternateNumber int
    Image back-to-source multi-source station serial number
    MirrorMultiAlternateUrl string
    Mirroring back-to-source multi-source site URL
    MirrorMultiAlternateVpcId string
    Mirroring back-to-source multi-source VpcId
    mirrorMultiAlternateDstRegion String
    Mirroring back-to-source multi-station Region
    mirrorMultiAlternateNumber Integer
    Image back-to-source multi-source station serial number
    mirrorMultiAlternateUrl String
    Mirroring back-to-source multi-source site URL
    mirrorMultiAlternateVpcId String
    Mirroring back-to-source multi-source VpcId
    mirrorMultiAlternateDstRegion string
    Mirroring back-to-source multi-station Region
    mirrorMultiAlternateNumber number
    Image back-to-source multi-source station serial number
    mirrorMultiAlternateUrl string
    Mirroring back-to-source multi-source site URL
    mirrorMultiAlternateVpcId string
    Mirroring back-to-source multi-source VpcId
    mirror_multi_alternate_dst_region str
    Mirroring back-to-source multi-station Region
    mirror_multi_alternate_number int
    Image back-to-source multi-source station serial number
    mirror_multi_alternate_url str
    Mirroring back-to-source multi-source site URL
    mirror_multi_alternate_vpc_id str
    Mirroring back-to-source multi-source VpcId
    mirrorMultiAlternateDstRegion String
    Mirroring back-to-source multi-station Region
    mirrorMultiAlternateNumber Number
    Image back-to-source multi-source station serial number
    mirrorMultiAlternateUrl String
    Mirroring back-to-source multi-source site URL
    mirrorMultiAlternateVpcId String
    Mirroring back-to-source multi-source VpcId

    BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeaders, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersArgs

    ReturnHeaders List<Pulumi.AliCloud.Oss.Inputs.BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersReturnHeader>
    The list of response header rules for mirroring back-to-source return. See return_header below.
    ReturnHeaders []BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersReturnHeader
    The list of response header rules for mirroring back-to-source return. See return_header below.
    returnHeaders List<BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersReturnHeader>
    The list of response header rules for mirroring back-to-source return. See return_header below.
    returnHeaders BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersReturnHeader[]
    The list of response header rules for mirroring back-to-source return. See return_header below.
    return_headers Sequence[BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersReturnHeader]
    The list of response header rules for mirroring back-to-source return. See return_header below.
    returnHeaders List<Property Map>
    The list of response header rules for mirroring back-to-source return. See return_header below.

    BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersReturnHeader, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersReturnHeaderArgs

    Key string
    Value string
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    Key string
    Value string
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    key String
    value String
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    key string
    value string
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    key str
    value str
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    key String
    value String
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.

    BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggings, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsArgs

    Taggings []BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTagging
    Image back-to-source save label rule list See taggings below.
    taggings List<BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTagging>
    Image back-to-source save label rule list See taggings below.
    taggings BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTagging[]
    Image back-to-source save label rule list See taggings below.
    taggings Sequence[BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTagging]
    Image back-to-source save label rule list See taggings below.
    taggings List<Property Map>
    Image back-to-source save label rule list See taggings below.

    BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTagging, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTaggingArgs

    Key string
    Value string
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    Key string
    Value string
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    key String
    value String
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    key string
    value string
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    key str
    value str
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.
    key String
    value String
    Set the value of the Header to 1024 bytes at most. \r\n. It takes effect only when the RedirectType is set to Mirror.

    Import

    OSS Bucket Website can be imported using the id, e.g.

    $ pulumi import alicloud:oss/bucketWebsite:BucketWebsite example <id>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.73.0 published on Wednesday, Jan 15, 2025 by Pulumi