alicloud.oss.BucketWebsite
Explore with Pulumi AI
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
		}
		_default, 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.Ali Cloud. Oss. Inputs. Bucket Website Error Document 
- The container that holds the error page configuration information. See error_documentbelow.
- IndexDocument Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Index Document 
- Static Website Default Home Page Configuration See index_documentbelow.
- RoutingRules Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules 
- The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rulesbelow.
- Bucket string
- The name of the bucket
- ErrorDocument BucketWebsite Error Document Args 
- The container that holds the error page configuration information. See error_documentbelow.
- IndexDocument BucketWebsite Index Document Args 
- Static Website Default Home Page Configuration See index_documentbelow.
- RoutingRules BucketWebsite Routing Rules Args 
- The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rulesbelow.
- bucket String
- The name of the bucket
- errorDocument BucketWebsite Error Document 
- The container that holds the error page configuration information. See error_documentbelow.
- indexDocument BucketWebsite Index Document 
- Static Website Default Home Page Configuration See index_documentbelow.
- routingRules BucketWebsite Routing Rules 
- The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rulesbelow.
- bucket string
- The name of the bucket
- errorDocument BucketWebsite Error Document 
- The container that holds the error page configuration information. See error_documentbelow.
- indexDocument BucketWebsite Index Document 
- Static Website Default Home Page Configuration See index_documentbelow.
- routingRules BucketWebsite Routing Rules 
- The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rulesbelow.
- bucket str
- The name of the bucket
- error_document BucketWebsite Error Document Args 
- The container that holds the error page configuration information. See error_documentbelow.
- index_document BucketWebsite Index Document Args 
- Static Website Default Home Page Configuration See index_documentbelow.
- routing_rules BucketWebsite Routing Rules Args 
- The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rulesbelow.
- bucket String
- The name of the bucket
- errorDocument Property Map
- The container that holds the error page configuration information. See error_documentbelow.
- indexDocument Property Map
- Static Website Default Home Page Configuration See index_documentbelow.
- routingRules Property Map
- The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rulesbelow.
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) -> BucketWebsitefunc 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.
- Bucket string
- The name of the bucket
- ErrorDocument Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Error Document 
- The container that holds the error page configuration information. See error_documentbelow.
- IndexDocument Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Index Document 
- Static Website Default Home Page Configuration See index_documentbelow.
- RoutingRules Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules 
- The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rulesbelow.
- Bucket string
- The name of the bucket
- ErrorDocument BucketWebsite Error Document Args 
- The container that holds the error page configuration information. See error_documentbelow.
- IndexDocument BucketWebsite Index Document Args 
- Static Website Default Home Page Configuration See index_documentbelow.
- RoutingRules BucketWebsite Routing Rules Args 
- The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rulesbelow.
- bucket String
- The name of the bucket
- errorDocument BucketWebsite Error Document 
- The container that holds the error page configuration information. See error_documentbelow.
- indexDocument BucketWebsite Index Document 
- Static Website Default Home Page Configuration See index_documentbelow.
- routingRules BucketWebsite Routing Rules 
- The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rulesbelow.
- bucket string
- The name of the bucket
- errorDocument BucketWebsite Error Document 
- The container that holds the error page configuration information. See error_documentbelow.
- indexDocument BucketWebsite Index Document 
- Static Website Default Home Page Configuration See index_documentbelow.
- routingRules BucketWebsite Routing Rules 
- The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rulesbelow.
- bucket str
- The name of the bucket
- error_document BucketWebsite Error Document Args 
- The container that holds the error page configuration information. See error_documentbelow.
- index_document BucketWebsite Index Document Args 
- Static Website Default Home Page Configuration See index_documentbelow.
- routing_rules BucketWebsite Routing Rules Args 
- The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rulesbelow.
- bucket String
- The name of the bucket
- errorDocument Property Map
- The container that holds the error page configuration information. See error_documentbelow.
- indexDocument Property Map
- Static Website Default Home Page Configuration See index_documentbelow.
- routingRules Property Map
- The container that holds the jump rule or the mirroring back-to-origin rule. See routing_rulesbelow.
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.
- SupportSub boolDir 
- 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.
- SupportSub boolDir 
- 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.
- supportSub BooleanDir 
- 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.
- supportSub booleanDir 
- 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_ booldir 
- 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.
- supportSub BooleanDir 
- 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.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule> 
- Specify a jump rule or a mirroring back-to-origin rule, with a maximum of 20 routing rules. See routing_rulebelow.
- RoutingRules []BucketWebsite Routing Rules Routing Rule 
- Specify a jump rule or a mirroring back-to-origin rule, with a maximum of 20 routing rules. See routing_rulebelow.
- routingRules List<BucketWebsite Routing Rules Routing Rule> 
- Specify a jump rule or a mirroring back-to-origin rule, with a maximum of 20 routing rules. See routing_rulebelow.
- routingRules BucketWebsite Routing Rules Routing Rule[] 
- Specify a jump rule or a mirroring back-to-origin rule, with a maximum of 20 routing rules. See routing_rulebelow.
- routing_rules Sequence[BucketWebsite Routing Rules Routing Rule] 
- Specify a jump rule or a mirroring back-to-origin rule, with a maximum of 20 routing rules. See routing_rulebelow.
- routingRules List<Property Map>
- Specify a jump rule or a mirroring back-to-origin rule, with a maximum of 20 routing rules. See routing_rulebelow.
BucketWebsiteRoutingRulesRoutingRule, BucketWebsiteRoutingRulesRoutingRuleArgs            
- Condition
Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Condition 
- Save the criteria that the rule needs to match. See conditionbelow.
- LuaConfig Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Lua Config 
- The Lua script configuration to be executed. See lua_configbelow.
- Redirect
Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Redirect 
- Specifies the action to perform after this rule is matched. See redirectbelow.
- 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
BucketWebsite Routing Rules Routing Rule Condition 
- Save the criteria that the rule needs to match. See conditionbelow.
- LuaConfig BucketWebsite Routing Rules Routing Rule Lua Config 
- The Lua script configuration to be executed. See lua_configbelow.
- Redirect
BucketWebsite Routing Rules Routing Rule Redirect 
- Specifies the action to perform after this rule is matched. See redirectbelow.
- 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
BucketWebsite Routing Rules Routing Rule Condition 
- Save the criteria that the rule needs to match. See conditionbelow.
- luaConfig BucketWebsite Routing Rules Routing Rule Lua Config 
- The Lua script configuration to be executed. See lua_configbelow.
- redirect
BucketWebsite Routing Rules Routing Rule Redirect 
- Specifies the action to perform after this rule is matched. See redirectbelow.
- 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
BucketWebsite Routing Rules Routing Rule Condition 
- Save the criteria that the rule needs to match. See conditionbelow.
- luaConfig BucketWebsite Routing Rules Routing Rule Lua Config 
- The Lua script configuration to be executed. See lua_configbelow.
- redirect
BucketWebsite Routing Rules Routing Rule Redirect 
- Specifies the action to perform after this rule is matched. See redirectbelow.
- 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
BucketWebsite Routing Rules Routing Rule Condition 
- Save the criteria that the rule needs to match. See conditionbelow.
- lua_config BucketWebsite Routing Rules Routing Rule Lua Config 
- The Lua script configuration to be executed. See lua_configbelow.
- redirect
BucketWebsite Routing Rules Routing Rule Redirect 
- Specifies the action to perform after this rule is matched. See redirectbelow.
- 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 conditionbelow.
- luaConfig Property Map
- The Lua script configuration to be executed. See lua_configbelow.
- redirect Property Map
- Specifies the action to perform after this rule is matched. See redirectbelow.
- 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              
- HttpError stringCode Returned Equals 
- 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.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Condition Include Header> 
- 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_headersbelow.
- KeyPrefix stringEquals 
- Only objects that match this prefix can match this rule.
- KeySuffix stringEquals 
- Only objects that match this suffix can match this rule.
- HttpError stringCode Returned Equals 
- 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 []BucketWebsite Routing Rules Routing Rule Condition Include Header 
- 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_headersbelow.
- KeyPrefix stringEquals 
- Only objects that match this prefix can match this rule.
- KeySuffix stringEquals 
- Only objects that match this suffix can match this rule.
- httpError StringCode Returned Equals 
- 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<BucketWebsite Routing Rules Routing Rule Condition Include Header> 
- 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_headersbelow.
- keyPrefix StringEquals 
- Only objects that match this prefix can match this rule.
- keySuffix StringEquals 
- Only objects that match this suffix can match this rule.
- httpError stringCode Returned Equals 
- 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 BucketWebsite Routing Rules Routing Rule Condition Include Header[] 
- 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_headersbelow.
- keyPrefix stringEquals 
- Only objects that match this prefix can match this rule.
- keySuffix stringEquals 
- Only objects that match this suffix can match this rule.
- http_error_ strcode_ returned_ equals 
- 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[BucketWebsite Routing Rules Routing Rule Condition Include Header] 
- 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_headersbelow.
- key_prefix_ strequals 
- Only objects that match this prefix can match this rule.
- key_suffix_ strequals 
- Only objects that match this suffix can match this rule.
- httpError StringCode Returned Equals 
- 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_headersbelow.
- keyPrefix StringEquals 
- Only objects that match this prefix can match this rule.
- keySuffix StringEquals 
- 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              
- EnableReplace boolPrefix 
- 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.
- HttpRedirect stringCode 
- The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
- MirrorAllow boolGet Image Info 
- Image back-to-source allows getting Image information
- MirrorAllow boolHead Object 
- Whether to allow HeadObject in image back-to-source
- MirrorAllow boolVideo Snapshot 
- Mirror back-to-source allows support for video frame truncation
- MirrorAsync intStatus 
- The status code of the mirror back-to-source trigger asynchronous pull mode.
- MirrorAuth Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Redirect Mirror Auth 
- Image back Source station authentication information See mirror_authbelow.
- MirrorCheck boolMd5 
- Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
- MirrorDst stringRegion 
- Mirrored back-to-source high-speed Channel vpregion
- MirrorDst stringSlave Vpc Id 
- Mirroring back-to-source high-speed Channel standby station VpcId
- MirrorDst stringVpc Id 
- Mirror back-to-source high-speed Channel VpcId
- MirrorFollow boolRedirect 
- 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.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Redirect Mirror Headers 
- Specifies the Header carried when the image returns to the source. It takes effect only when the RedirectType is set to Mirror. See mirror_headersbelow.
- MirrorIs boolExpress Tunnel 
- Whether it is a mirror back-to-source high-speed Channel
- MirrorMulti Pulumi.Alternates Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Redirect Mirror Multi Alternates 
- 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_alternatesbelow.
- MirrorPass boolOriginal Slashes 
- Transparent transmission/to source Station
- MirrorPass boolQuery String 
- Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
- MirrorProxy boolPass 
- Whether mirroring back to source does not save data
- MirrorReturn Pulumi.Headers Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Redirect Mirror Return Headers 
- 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_headersbelow.
- MirrorRole string
- Roles used when mirroring back-to-source
- MirrorSave boolOss Meta 
- Mirror back-to-source back-to-source OSS automatically saves user metadata
- MirrorSni bool
- Transparent transmission of SNI
- MirrorSwitch boolAll Errors 
- 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.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Redirect Mirror Taggings 
- 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_taggingsbelow.
- MirrorTunnel stringId 
- 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.
- MirrorUrl stringProbe 
- Mirror back-to-source Master-backup back-to-source switching decision URL
- MirrorUrl stringSlave 
- Mirror back-to-source primary backup back-to-source backup station URL
- MirrorUser boolLast Modified 
- Whether the source station LastModifiedTime is used for the image back-to-source save file.
- MirrorUsing boolRole 
- Whether to use role for mirroring back to source
- PassQuery boolString 
- 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.
- ReplaceKey stringPrefix With 
- 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.
- ReplaceKey stringWith 
- 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.
- TransparentMirror stringResponse Codes 
- Mirror back-to-source transparent source station response code list
- EnableReplace boolPrefix 
- 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.
- HttpRedirect stringCode 
- The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
- MirrorAllow boolGet Image Info 
- Image back-to-source allows getting Image information
- MirrorAllow boolHead Object 
- Whether to allow HeadObject in image back-to-source
- MirrorAllow boolVideo Snapshot 
- Mirror back-to-source allows support for video frame truncation
- MirrorAsync intStatus 
- The status code of the mirror back-to-source trigger asynchronous pull mode.
- MirrorAuth BucketWebsite Routing Rules Routing Rule Redirect Mirror Auth 
- Image back Source station authentication information See mirror_authbelow.
- MirrorCheck boolMd5 
- Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
- MirrorDst stringRegion 
- Mirrored back-to-source high-speed Channel vpregion
- MirrorDst stringSlave Vpc Id 
- Mirroring back-to-source high-speed Channel standby station VpcId
- MirrorDst stringVpc Id 
- Mirror back-to-source high-speed Channel VpcId
- MirrorFollow boolRedirect 
- 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 BucketWebsite Routing Rules Routing Rule Redirect Mirror Headers 
- Specifies the Header carried when the image returns to the source. It takes effect only when the RedirectType is set to Mirror. See mirror_headersbelow.
- MirrorIs boolExpress Tunnel 
- Whether it is a mirror back-to-source high-speed Channel
- MirrorMulti BucketAlternates Website Routing Rules Routing Rule Redirect Mirror Multi Alternates 
- 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_alternatesbelow.
- MirrorPass boolOriginal Slashes 
- Transparent transmission/to source Station
- MirrorPass boolQuery String 
- Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
- MirrorProxy boolPass 
- Whether mirroring back to source does not save data
- MirrorReturn BucketHeaders Website Routing Rules Routing Rule Redirect Mirror Return Headers 
- 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_headersbelow.
- MirrorRole string
- Roles used when mirroring back-to-source
- MirrorSave boolOss Meta 
- Mirror back-to-source back-to-source OSS automatically saves user metadata
- MirrorSni bool
- Transparent transmission of SNI
- MirrorSwitch boolAll Errors 
- 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 BucketWebsite Routing Rules Routing Rule Redirect Mirror Taggings 
- 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_taggingsbelow.
- MirrorTunnel stringId 
- 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.
- MirrorUrl stringProbe 
- Mirror back-to-source Master-backup back-to-source switching decision URL
- MirrorUrl stringSlave 
- Mirror back-to-source primary backup back-to-source backup station URL
- MirrorUser boolLast Modified 
- Whether the source station LastModifiedTime is used for the image back-to-source save file.
- MirrorUsing boolRole 
- Whether to use role for mirroring back to source
- PassQuery boolString 
- 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.
- ReplaceKey stringPrefix With 
- 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.
- ReplaceKey stringWith 
- 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.
- TransparentMirror stringResponse Codes 
- Mirror back-to-source transparent source station response code list
- enableReplace BooleanPrefix 
- 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.
- httpRedirect StringCode 
- The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
- mirrorAllow BooleanGet Image Info 
- Image back-to-source allows getting Image information
- mirrorAllow BooleanHead Object 
- Whether to allow HeadObject in image back-to-source
- mirrorAllow BooleanVideo Snapshot 
- Mirror back-to-source allows support for video frame truncation
- mirrorAsync IntegerStatus 
- The status code of the mirror back-to-source trigger asynchronous pull mode.
- mirrorAuth BucketWebsite Routing Rules Routing Rule Redirect Mirror Auth 
- Image back Source station authentication information See mirror_authbelow.
- mirrorCheck BooleanMd5 
- Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
- mirrorDst StringRegion 
- Mirrored back-to-source high-speed Channel vpregion
- mirrorDst StringSlave Vpc Id 
- Mirroring back-to-source high-speed Channel standby station VpcId
- mirrorDst StringVpc Id 
- Mirror back-to-source high-speed Channel VpcId
- mirrorFollow BooleanRedirect 
- 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 BucketWebsite Routing Rules Routing Rule Redirect Mirror Headers 
- Specifies the Header carried when the image returns to the source. It takes effect only when the RedirectType is set to Mirror. See mirror_headersbelow.
- mirrorIs BooleanExpress Tunnel 
- Whether it is a mirror back-to-source high-speed Channel
- mirrorMulti BucketAlternates Website Routing Rules Routing Rule Redirect Mirror Multi Alternates 
- 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_alternatesbelow.
- mirrorPass BooleanOriginal Slashes 
- Transparent transmission/to source Station
- mirrorPass BooleanQuery String 
- Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
- mirrorProxy BooleanPass 
- Whether mirroring back to source does not save data
- mirrorReturn BucketHeaders Website Routing Rules Routing Rule Redirect Mirror Return Headers 
- 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_headersbelow.
- mirrorRole String
- Roles used when mirroring back-to-source
- mirrorSave BooleanOss Meta 
- Mirror back-to-source back-to-source OSS automatically saves user metadata
- mirrorSni Boolean
- Transparent transmission of SNI
- mirrorSwitch BooleanAll Errors 
- 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 BucketWebsite Routing Rules Routing Rule Redirect Mirror Taggings 
- 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_taggingsbelow.
- mirrorTunnel StringId 
- 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.
- mirrorUrl StringProbe 
- Mirror back-to-source Master-backup back-to-source switching decision URL
- mirrorUrl StringSlave 
- Mirror back-to-source primary backup back-to-source backup station URL
- mirrorUser BooleanLast Modified 
- Whether the source station LastModifiedTime is used for the image back-to-source save file.
- mirrorUsing BooleanRole 
- Whether to use role for mirroring back to source
- passQuery BooleanString 
- 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.
- replaceKey StringPrefix With 
- 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.
- replaceKey StringWith 
- 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.
- transparentMirror StringResponse Codes 
- Mirror back-to-source transparent source station response code list
- enableReplace booleanPrefix 
- 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.
- httpRedirect stringCode 
- The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
- mirrorAllow booleanGet Image Info 
- Image back-to-source allows getting Image information
- mirrorAllow booleanHead Object 
- Whether to allow HeadObject in image back-to-source
- mirrorAllow booleanVideo Snapshot 
- Mirror back-to-source allows support for video frame truncation
- mirrorAsync numberStatus 
- The status code of the mirror back-to-source trigger asynchronous pull mode.
- mirrorAuth BucketWebsite Routing Rules Routing Rule Redirect Mirror Auth 
- Image back Source station authentication information See mirror_authbelow.
- mirrorCheck booleanMd5 
- Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
- mirrorDst stringRegion 
- Mirrored back-to-source high-speed Channel vpregion
- mirrorDst stringSlave Vpc Id 
- Mirroring back-to-source high-speed Channel standby station VpcId
- mirrorDst stringVpc Id 
- Mirror back-to-source high-speed Channel VpcId
- mirrorFollow booleanRedirect 
- 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 BucketWebsite Routing Rules Routing Rule Redirect Mirror Headers 
- Specifies the Header carried when the image returns to the source. It takes effect only when the RedirectType is set to Mirror. See mirror_headersbelow.
- mirrorIs booleanExpress Tunnel 
- Whether it is a mirror back-to-source high-speed Channel
- mirrorMulti BucketAlternates Website Routing Rules Routing Rule Redirect Mirror Multi Alternates 
- 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_alternatesbelow.
- mirrorPass booleanOriginal Slashes 
- Transparent transmission/to source Station
- mirrorPass booleanQuery String 
- Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
- mirrorProxy booleanPass 
- Whether mirroring back to source does not save data
- mirrorReturn BucketHeaders Website Routing Rules Routing Rule Redirect Mirror Return Headers 
- 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_headersbelow.
- mirrorRole string
- Roles used when mirroring back-to-source
- mirrorSave booleanOss Meta 
- Mirror back-to-source back-to-source OSS automatically saves user metadata
- mirrorSni boolean
- Transparent transmission of SNI
- mirrorSwitch booleanAll Errors 
- 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 BucketWebsite Routing Rules Routing Rule Redirect Mirror Taggings 
- 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_taggingsbelow.
- mirrorTunnel stringId 
- 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.
- mirrorUrl stringProbe 
- Mirror back-to-source Master-backup back-to-source switching decision URL
- mirrorUrl stringSlave 
- Mirror back-to-source primary backup back-to-source backup station URL
- mirrorUser booleanLast Modified 
- Whether the source station LastModifiedTime is used for the image back-to-source save file.
- mirrorUsing booleanRole 
- Whether to use role for mirroring back to source
- passQuery booleanString 
- 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.
- replaceKey stringPrefix With 
- 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.
- replaceKey stringWith 
- 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.
- transparentMirror stringResponse Codes 
- Mirror back-to-source transparent source station response code list
- enable_replace_ boolprefix 
- 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_ strcode 
- The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
- mirror_allow_ boolget_ image_ info 
- Image back-to-source allows getting Image information
- mirror_allow_ boolhead_ object 
- Whether to allow HeadObject in image back-to-source
- mirror_allow_ boolvideo_ snapshot 
- Mirror back-to-source allows support for video frame truncation
- mirror_async_ intstatus 
- The status code of the mirror back-to-source trigger asynchronous pull mode.
- mirror_auth BucketWebsite Routing Rules Routing Rule Redirect Mirror Auth 
- Image back Source station authentication information See mirror_authbelow.
- mirror_check_ boolmd5 
- Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
- mirror_dst_ strregion 
- Mirrored back-to-source high-speed Channel vpregion
- mirror_dst_ strslave_ vpc_ id 
- Mirroring back-to-source high-speed Channel standby station VpcId
- mirror_dst_ strvpc_ id 
- Mirror back-to-source high-speed Channel VpcId
- mirror_follow_ boolredirect 
- 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 BucketWebsite Routing Rules Routing Rule Redirect Mirror Headers 
- Specifies the Header carried when the image returns to the source. It takes effect only when the RedirectType is set to Mirror. See mirror_headersbelow.
- mirror_is_ boolexpress_ tunnel 
- Whether it is a mirror back-to-source high-speed Channel
- mirror_multi_ Bucketalternates Website Routing Rules Routing Rule Redirect Mirror Multi Alternates 
- 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_alternatesbelow.
- mirror_pass_ booloriginal_ slashes 
- Transparent transmission/to source Station
- mirror_pass_ boolquery_ string 
- Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
- mirror_proxy_ boolpass 
- Whether mirroring back to source does not save data
- mirror_return_ Bucketheaders Website Routing Rules Routing Rule Redirect Mirror Return Headers 
- 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_headersbelow.
- mirror_role str
- Roles used when mirroring back-to-source
- mirror_save_ booloss_ meta 
- Mirror back-to-source back-to-source OSS automatically saves user metadata
- mirror_sni bool
- Transparent transmission of SNI
- mirror_switch_ boolall_ errors 
- 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 BucketWebsite Routing Rules Routing Rule Redirect Mirror Taggings 
- 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_taggingsbelow.
- mirror_tunnel_ strid 
- 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_ strprobe 
- Mirror back-to-source Master-backup back-to-source switching decision URL
- mirror_url_ strslave 
- Mirror back-to-source primary backup back-to-source backup station URL
- mirror_user_ boollast_ modified 
- Whether the source station LastModifiedTime is used for the image back-to-source save file.
- mirror_using_ boolrole 
- Whether to use role for mirroring back to source
- pass_query_ boolstring 
- 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_ strprefix_ with 
- 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_ strwith 
- 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_ strresponse_ codes 
- Mirror back-to-source transparent source station response code list
- enableReplace BooleanPrefix 
- 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.
- httpRedirect StringCode 
- The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
- mirrorAllow BooleanGet Image Info 
- Image back-to-source allows getting Image information
- mirrorAllow BooleanHead Object 
- Whether to allow HeadObject in image back-to-source
- mirrorAllow BooleanVideo Snapshot 
- Mirror back-to-source allows support for video frame truncation
- mirrorAsync NumberStatus 
- The status code of the mirror back-to-source trigger asynchronous pull mode.
- mirrorAuth Property Map
- Image back Source station authentication information See mirror_authbelow.
- mirrorCheck BooleanMd5 
- Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
- mirrorDst StringRegion 
- Mirrored back-to-source high-speed Channel vpregion
- mirrorDst StringSlave Vpc Id 
- Mirroring back-to-source high-speed Channel standby station VpcId
- mirrorDst StringVpc Id 
- Mirror back-to-source high-speed Channel VpcId
- mirrorFollow BooleanRedirect 
- 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_headersbelow.
- mirrorIs BooleanExpress Tunnel 
- Whether it is a mirror back-to-source high-speed Channel
- mirrorMulti Property MapAlternates 
- 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_alternatesbelow.
- mirrorPass BooleanOriginal Slashes 
- Transparent transmission/to source Station
- mirrorPass BooleanQuery String 
- Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
- mirrorProxy BooleanPass 
- Whether mirroring back to source does not save data
- mirrorReturn Property MapHeaders 
- 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_headersbelow.
- mirrorRole String
- Roles used when mirroring back-to-source
- mirrorSave BooleanOss Meta 
- Mirror back-to-source back-to-source OSS automatically saves user metadata
- mirrorSni Boolean
- Transparent transmission of SNI
- mirrorSwitch BooleanAll Errors 
- 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_taggingsbelow.
- mirrorTunnel StringId 
- 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.
- mirrorUrl StringProbe 
- Mirror back-to-source Master-backup back-to-source switching decision URL
- mirrorUrl StringSlave 
- Mirror back-to-source primary backup back-to-source backup station URL
- mirrorUser BooleanLast Modified 
- Whether the source station LastModifiedTime is used for the image back-to-source save file.
- mirrorUsing BooleanRole 
- Whether to use role for mirroring back to source
- passQuery BooleanString 
- 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.
- replaceKey StringPrefix With 
- 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.
- replaceKey StringWith 
- 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.
- transparentMirror StringResponse Codes 
- Mirror back-to-source transparent source station response code list
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuth, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuthArgs                  
- AccessKey stringId 
- Mirror back-to-source source Station back-to-source AK
- AccessKey stringSecret 
- 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
- AccessKey stringId 
- Mirror back-to-source source Station back-to-source AK
- AccessKey stringSecret 
- 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
- accessKey StringId 
- Mirror back-to-source source Station back-to-source AK
- accessKey StringSecret 
- 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
- accessKey stringId 
- Mirror back-to-source source Station back-to-source AK
- accessKey stringSecret 
- 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_ strid 
- Mirror back-to-source source Station back-to-source AK
- access_key_ strsecret 
- 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
- accessKey StringId 
- Mirror back-to-source source Station back-to-source AK
- accessKey StringSecret 
- 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.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Redirect Mirror Headers Set> 
- 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 setbelow.
- 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
[]BucketWebsite Routing Rules Routing Rule Redirect Mirror Headers Set 
- 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 setbelow.
- 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<BucketWebsite Routing Rules Routing Rule Redirect Mirror Headers Set> 
- 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 setbelow.
- 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
BucketWebsite Routing Rules Routing Rule Redirect Mirror Headers Set[] 
- 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 setbelow.
- 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[BucketWebsite Routing Rules Routing Rule Redirect Mirror Headers Set] 
- 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 setbelow.
- 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 setbelow.
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSet, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSetArgs                    
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternates, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesArgs                    
- MirrorMulti List<Pulumi.Alternates Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Redirect Mirror Multi Alternates Mirror Multi Alternate> 
- Mirror back-to-source multi-source station configuration list See mirror_multi_alternatebelow.
- MirrorMulti []BucketAlternates Website Routing Rules Routing Rule Redirect Mirror Multi Alternates Mirror Multi Alternate 
- Mirror back-to-source multi-source station configuration list See mirror_multi_alternatebelow.
- mirrorMulti List<BucketAlternates Website Routing Rules Routing Rule Redirect Mirror Multi Alternates Mirror Multi Alternate> 
- Mirror back-to-source multi-source station configuration list See mirror_multi_alternatebelow.
- mirrorMulti BucketAlternates Website Routing Rules Routing Rule Redirect Mirror Multi Alternates Mirror Multi Alternate[] 
- Mirror back-to-source multi-source station configuration list See mirror_multi_alternatebelow.
- mirror_multi_ Sequence[Bucketalternates Website Routing Rules Routing Rule Redirect Mirror Multi Alternates Mirror Multi Alternate] 
- Mirror back-to-source multi-source station configuration list See mirror_multi_alternatebelow.
- mirrorMulti List<Property Map>Alternates 
- Mirror back-to-source multi-source station configuration list See mirror_multi_alternatebelow.
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternate, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternateArgs                          
- MirrorMulti stringAlternate Dst Region 
- Mirroring back-to-source multi-station Region
- MirrorMulti intAlternate Number 
- Image back-to-source multi-source station serial number
- MirrorMulti stringAlternate Url 
- Mirroring back-to-source multi-source site URL
- MirrorMulti stringAlternate Vpc Id 
- Mirroring back-to-source multi-source VpcId
- MirrorMulti stringAlternate Dst Region 
- Mirroring back-to-source multi-station Region
- MirrorMulti intAlternate Number 
- Image back-to-source multi-source station serial number
- MirrorMulti stringAlternate Url 
- Mirroring back-to-source multi-source site URL
- MirrorMulti stringAlternate Vpc Id 
- Mirroring back-to-source multi-source VpcId
- mirrorMulti StringAlternate Dst Region 
- Mirroring back-to-source multi-station Region
- mirrorMulti IntegerAlternate Number 
- Image back-to-source multi-source station serial number
- mirrorMulti StringAlternate Url 
- Mirroring back-to-source multi-source site URL
- mirrorMulti StringAlternate Vpc Id 
- Mirroring back-to-source multi-source VpcId
- mirrorMulti stringAlternate Dst Region 
- Mirroring back-to-source multi-station Region
- mirrorMulti numberAlternate Number 
- Image back-to-source multi-source station serial number
- mirrorMulti stringAlternate Url 
- Mirroring back-to-source multi-source site URL
- mirrorMulti stringAlternate Vpc Id 
- Mirroring back-to-source multi-source VpcId
- mirror_multi_ stralternate_ dst_ region 
- Mirroring back-to-source multi-station Region
- mirror_multi_ intalternate_ number 
- Image back-to-source multi-source station serial number
- mirror_multi_ stralternate_ url 
- Mirroring back-to-source multi-source site URL
- mirror_multi_ stralternate_ vpc_ id 
- Mirroring back-to-source multi-source VpcId
- mirrorMulti StringAlternate Dst Region 
- Mirroring back-to-source multi-station Region
- mirrorMulti NumberAlternate Number 
- Image back-to-source multi-source station serial number
- mirrorMulti StringAlternate Url 
- Mirroring back-to-source multi-source site URL
- mirrorMulti StringAlternate Vpc Id 
- Mirroring back-to-source multi-source VpcId
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeaders, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersArgs                    
- ReturnHeaders List<Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Redirect Mirror Return Headers Return Header> 
- The list of response header rules for mirroring back-to-source return. See return_headerbelow.
- ReturnHeaders []BucketWebsite Routing Rules Routing Rule Redirect Mirror Return Headers Return Header 
- The list of response header rules for mirroring back-to-source return. See return_headerbelow.
- returnHeaders List<BucketWebsite Routing Rules Routing Rule Redirect Mirror Return Headers Return Header> 
- The list of response header rules for mirroring back-to-source return. See return_headerbelow.
- returnHeaders BucketWebsite Routing Rules Routing Rule Redirect Mirror Return Headers Return Header[] 
- The list of response header rules for mirroring back-to-source return. See return_headerbelow.
- return_headers Sequence[BucketWebsite Routing Rules Routing Rule Redirect Mirror Return Headers Return Header] 
- The list of response header rules for mirroring back-to-source return. See return_headerbelow.
- returnHeaders List<Property Map>
- The list of response header rules for mirroring back-to-source return. See return_headerbelow.
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersReturnHeader, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersReturnHeaderArgs                        
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggings, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsArgs                  
- Taggings
List<Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Redirect Mirror Taggings Tagging> 
- Image back-to-source save label rule list See taggingsbelow.
- Taggings
[]BucketWebsite Routing Rules Routing Rule Redirect Mirror Taggings Tagging 
- Image back-to-source save label rule list See taggingsbelow.
- taggings
List<BucketWebsite Routing Rules Routing Rule Redirect Mirror Taggings Tagging> 
- Image back-to-source save label rule list See taggingsbelow.
- taggings
BucketWebsite Routing Rules Routing Rule Redirect Mirror Taggings Tagging[] 
- Image back-to-source save label rule list See taggingsbelow.
- taggings
Sequence[BucketWebsite Routing Rules Routing Rule Redirect Mirror Taggings Tagging] 
- Image back-to-source save label rule list See taggingsbelow.
- taggings List<Property Map>
- Image back-to-source save label rule list See taggingsbelow.
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTagging, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTaggingArgs                    
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 alicloudTerraform Provider.