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
}
_, 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
- Error
Document Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Error Document - The container that holds the error page configuration information. See
error_document
below. - Index
Document Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Index Document - Static Website Default Home Page Configuration See
index_document
below. - Routing
Rules 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_rules
below.
- Bucket string
- The name of the bucket
- Error
Document BucketWebsite Error Document Args - The container that holds the error page configuration information. See
error_document
below. - Index
Document BucketWebsite Index Document Args - Static Website Default Home Page Configuration See
index_document
below. - Routing
Rules BucketWebsite Routing Rules Args - The container that holds the jump rule or the mirroring back-to-origin rule. See
routing_rules
below.
- bucket String
- The name of the bucket
- error
Document BucketWebsite Error Document - The container that holds the error page configuration information. See
error_document
below. - index
Document BucketWebsite Index Document - Static Website Default Home Page Configuration See
index_document
below. - routing
Rules BucketWebsite Routing Rules - The container that holds the jump rule or the mirroring back-to-origin rule. See
routing_rules
below.
- bucket string
- The name of the bucket
- error
Document BucketWebsite Error Document - The container that holds the error page configuration information. See
error_document
below. - index
Document BucketWebsite Index Document - Static Website Default Home Page Configuration See
index_document
below. - routing
Rules BucketWebsite Routing Rules - The container that holds the jump rule or the mirroring back-to-origin rule. See
routing_rules
below.
- bucket str
- The name of the bucket
- error_
document BucketWebsite Error Document Args - The container that holds the error page configuration information. See
error_document
below. - index_
document BucketWebsite Index Document Args - Static Website Default Home Page Configuration See
index_document
below. - routing_
rules BucketWebsite Routing Rules Args - The container that holds the jump rule or the mirroring back-to-origin rule. See
routing_rules
below.
- bucket String
- The name of the bucket
- error
Document Property Map - The container that holds the error page configuration information. See
error_document
below. - index
Document Property Map - Static Website Default Home Page Configuration See
index_document
below. - routing
Rules Property Map - The container that holds the jump rule or the mirroring back-to-origin rule. See
routing_rules
below.
Outputs
All input properties are implicitly available as output properties. Additionally, the BucketWebsite resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing BucketWebsite Resource
Get an existing BucketWebsite resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BucketWebsiteState, opts?: CustomResourceOptions): BucketWebsite
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
error_document: Optional[BucketWebsiteErrorDocumentArgs] = None,
index_document: Optional[BucketWebsiteIndexDocumentArgs] = None,
routing_rules: Optional[BucketWebsiteRoutingRulesArgs] = None) -> BucketWebsite
func GetBucketWebsite(ctx *Context, name string, id IDInput, state *BucketWebsiteState, opts ...ResourceOption) (*BucketWebsite, error)
public static BucketWebsite Get(string name, Input<string> id, BucketWebsiteState? state, CustomResourceOptions? opts = null)
public static BucketWebsite get(String name, Output<String> id, BucketWebsiteState state, CustomResourceOptions options)
resources: _: type: alicloud:oss:BucketWebsite get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bucket string
- The name of the bucket
- Error
Document Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Error Document - The container that holds the error page configuration information. See
error_document
below. - Index
Document Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Index Document - Static Website Default Home Page Configuration See
index_document
below. - Routing
Rules 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_rules
below.
- Bucket string
- The name of the bucket
- Error
Document BucketWebsite Error Document Args - The container that holds the error page configuration information. See
error_document
below. - Index
Document BucketWebsite Index Document Args - Static Website Default Home Page Configuration See
index_document
below. - Routing
Rules BucketWebsite Routing Rules Args - The container that holds the jump rule or the mirroring back-to-origin rule. See
routing_rules
below.
- bucket String
- The name of the bucket
- error
Document BucketWebsite Error Document - The container that holds the error page configuration information. See
error_document
below. - index
Document BucketWebsite Index Document - Static Website Default Home Page Configuration See
index_document
below. - routing
Rules BucketWebsite Routing Rules - The container that holds the jump rule or the mirroring back-to-origin rule. See
routing_rules
below.
- bucket string
- The name of the bucket
- error
Document BucketWebsite Error Document - The container that holds the error page configuration information. See
error_document
below. - index
Document BucketWebsite Index Document - Static Website Default Home Page Configuration See
index_document
below. - routing
Rules BucketWebsite Routing Rules - The container that holds the jump rule or the mirroring back-to-origin rule. See
routing_rules
below.
- bucket str
- The name of the bucket
- error_
document BucketWebsite Error Document Args - The container that holds the error page configuration information. See
error_document
below. - index_
document BucketWebsite Index Document Args - Static Website Default Home Page Configuration See
index_document
below. - routing_
rules BucketWebsite Routing Rules Args - The container that holds the jump rule or the mirroring back-to-origin rule. See
routing_rules
below.
- bucket String
- The name of the bucket
- error
Document Property Map - The container that holds the error page configuration information. See
error_document
below. - index
Document Property Map - Static Website Default Home Page Configuration See
index_document
below. - routing
Rules Property Map - The container that holds the jump rule or the mirroring back-to-origin rule. See
routing_rules
below.
Supporting Types
BucketWebsiteErrorDocument, BucketWebsiteErrorDocumentArgs
- Http
Status 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.
- Http
Status 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.
- http
Status 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.
- http
Status 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.
- http
Status 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.
- Support
Sub 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.
- Support
Sub 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.
- support
Sub 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.
- support
Sub 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.
- support
Sub 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
- Routing
Rules 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_rule
below.
- Routing
Rules []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_rule
below.
- routing
Rules 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_rule
below.
- routing
Rules 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_rule
below.
- 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_rule
below.
- routing
Rules List<Property Map> - Specify a jump rule or a mirroring back-to-origin rule, with a maximum of 20 routing rules. See
routing_rule
below.
BucketWebsiteRoutingRulesRoutingRule, BucketWebsiteRoutingRulesRoutingRuleArgs
- Condition
Pulumi.
Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Condition - Save the criteria that the rule needs to match. See
condition
below. - Lua
Config Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Lua Config - The Lua script configuration to be executed. See
lua_config
below. - Redirect
Pulumi.
Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Redirect - Specifies the action to perform after this rule is matched. See
redirect
below. - Rule
Number int - The sequence number of the matching and executing jump rules. OSS matches rules according to this sequence number. If the match is successful, the rule is executed and subsequent rules are not executed.
- Condition
Bucket
Website Routing Rules Routing Rule Condition - Save the criteria that the rule needs to match. See
condition
below. - Lua
Config BucketWebsite Routing Rules Routing Rule Lua Config - The Lua script configuration to be executed. See
lua_config
below. - Redirect
Bucket
Website Routing Rules Routing Rule Redirect - Specifies the action to perform after this rule is matched. See
redirect
below. - Rule
Number int - The sequence number of the matching and executing jump rules. OSS matches rules according to this sequence number. If the match is successful, the rule is executed and subsequent rules are not executed.
- condition
Bucket
Website Routing Rules Routing Rule Condition - Save the criteria that the rule needs to match. See
condition
below. - lua
Config BucketWebsite Routing Rules Routing Rule Lua Config - The Lua script configuration to be executed. See
lua_config
below. - redirect
Bucket
Website Routing Rules Routing Rule Redirect - Specifies the action to perform after this rule is matched. See
redirect
below. - rule
Number 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
Bucket
Website Routing Rules Routing Rule Condition - Save the criteria that the rule needs to match. See
condition
below. - lua
Config BucketWebsite Routing Rules Routing Rule Lua Config - The Lua script configuration to be executed. See
lua_config
below. - redirect
Bucket
Website Routing Rules Routing Rule Redirect - Specifies the action to perform after this rule is matched. See
redirect
below. - rule
Number 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
Bucket
Website Routing Rules Routing Rule Condition - Save the criteria that the rule needs to match. See
condition
below. - lua_
config BucketWebsite Routing Rules Routing Rule Lua Config - The Lua script configuration to be executed. See
lua_config
below. - redirect
Bucket
Website Routing Rules Routing Rule Redirect - Specifies the action to perform after this rule is matched. See
redirect
below. - rule_
number int - The sequence number of the matching and executing jump rules. OSS matches rules according to this sequence number. If the match is successful, the rule is executed and subsequent rules are not executed.
- condition Property Map
- Save the criteria that the rule needs to match. See
condition
below. - lua
Config Property Map - The Lua script configuration to be executed. See
lua_config
below. - redirect Property Map
- Specifies the action to perform after this rule is matched. See
redirect
below. - rule
Number 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
- Http
Error 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.
- Include
Headers 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_headers
below. - Key
Prefix stringEquals - Only objects that match this prefix can match this rule.
- Key
Suffix stringEquals - Only objects that match this suffix can match this rule.
- Http
Error 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.
- Include
Headers []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_headers
below. - Key
Prefix stringEquals - Only objects that match this prefix can match this rule.
- Key
Suffix stringEquals - Only objects that match this suffix can match this rule.
- http
Error 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.
- include
Headers 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_headers
below. - key
Prefix StringEquals - Only objects that match this prefix can match this rule.
- key
Suffix StringEquals - Only objects that match this suffix can match this rule.
- http
Error 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.
- include
Headers 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_headers
below. - key
Prefix stringEquals - Only objects that match this prefix can match this rule.
- key
Suffix 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_headers
below. - 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.
- http
Error 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.
- include
Headers List<Property Map> - This rule can only be matched if the request contains the specified Header and the value is the specified value. You can specify up to 10 containers. See
include_headers
below. - key
Prefix StringEquals - Only objects that match this prefix can match this rule.
- key
Suffix StringEquals - Only objects that match this suffix can match this rule.
BucketWebsiteRoutingRulesRoutingRuleConditionIncludeHeader, BucketWebsiteRoutingRulesRoutingRuleConditionIncludeHeaderArgs
- Ends
With 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
- Starts
With 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 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
- Starts
With 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 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
- starts
With 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 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
- starts
With 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.
- ends
With 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
- starts
With 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
- 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 string - The domain name during the jump. The domain name must comply with the domain name specification.
- Http
Redirect stringCode - 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 Pulumi.Ali Cloud. Oss. Inputs. Bucket Website Routing Rules Routing Rule Redirect Mirror Auth - Image back Source station authentication information See
mirror_auth
below. - 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 stringRegion - Mirrored back-to-source high-speed Channel vpregion
- Mirror
Dst stringSlave Vpc Id - Mirroring back-to-source high-speed Channel standby station VpcId
- Mirror
Dst stringVpc 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 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_headers
below. - Mirror
Is boolExpress Tunnel - Whether it is a mirror back-to-source high-speed Channel
- Mirror
Multi 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_alternates
below. - 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 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_headers
below. - Mirror
Role string - 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 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_taggings
below. - Mirror
Tunnel stringId - Mirror back-to-source leased line back-to-source tunnel ID
- Mirror
Url 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.
- Mirror
Url stringProbe - Mirror back-to-source Master-backup back-to-source switching decision URL
- Mirror
Url stringSlave - 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 string
- The protocol at the time of the jump. It takes effect only when the RedirectType is set to External or AliCDN.
- Redirect
Type 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.
- Replace
Key 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.
- Replace
Key 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.
- Transparent
Mirror 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 string - The domain name during the jump. The domain name must comply with the domain name specification.
- Http
Redirect stringCode - 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_auth
below. - 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 stringRegion - Mirrored back-to-source high-speed Channel vpregion
- Mirror
Dst stringSlave Vpc Id - Mirroring back-to-source high-speed Channel standby station VpcId
- Mirror
Dst stringVpc 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_headers
below. - 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_alternates
below. - 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_headers
below. - Mirror
Role string - 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_taggings
below. - Mirror
Tunnel stringId - Mirror back-to-source leased line back-to-source tunnel ID
- Mirror
Url 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.
- Mirror
Url stringProbe - Mirror back-to-source Master-backup back-to-source switching decision URL
- Mirror
Url stringSlave - 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 string
- The protocol at the time of the jump. It takes effect only when the RedirectType is set to External or AliCDN.
- Redirect
Type 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.
- Replace
Key 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.
- Replace
Key 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.
- Transparent
Mirror stringResponse Codes - Mirror back-to-source transparent source station response code list
- enable
Replace 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.
- host
Name String - The domain name during the jump. The domain name must comply with the domain name specification.
- http
Redirect StringCode - The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
- mirror
Allow BooleanGet Image Info - Image back-to-source allows getting Image information
- mirror
Allow BooleanHead Object - Whether to allow HeadObject in image back-to-source
- mirror
Allow BooleanVideo Snapshot - Mirror back-to-source allows support for video frame truncation
- mirror
Async IntegerStatus - 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_auth
below. - mirror
Check BooleanMd5 - Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
- mirror
Dst StringRegion - Mirrored back-to-source high-speed Channel vpregion
- mirror
Dst StringSlave Vpc Id - Mirroring back-to-source high-speed Channel standby station VpcId
- mirror
Dst StringVpc Id - Mirror back-to-source high-speed Channel VpcId
- mirror
Follow 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.
- 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_headers
below. - mirror
Is BooleanExpress 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_alternates
below. - mirror
Pass BooleanOriginal Slashes - Transparent transmission/to source Station
- mirror
Pass BooleanQuery String - Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
- mirror
Proxy BooleanPass - 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_headers
below. - mirror
Role String - Roles used when mirroring back-to-source
- mirror
Save BooleanOss Meta - Mirror back-to-source back-to-source OSS automatically saves user metadata
- mirror
Sni Boolean - Transparent transmission of SNI
- mirror
Switch 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.
- 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_taggings
below. - mirror
Tunnel StringId - Mirror back-to-source leased line back-to-source tunnel ID
- mirror
Url 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.
- mirror
Url StringProbe - Mirror back-to-source Master-backup back-to-source switching decision URL
- mirror
Url StringSlave - Mirror back-to-source primary backup back-to-source backup station URL
- mirror
User BooleanLast Modified - Whether the source station LastModifiedTime is used for the image back-to-source save file.
- mirror
Using BooleanRole - Whether to use role for mirroring back to source
- pass
Query 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.
- redirect
Type 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.
- replace
Key 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.
- replace
Key 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.
- transparent
Mirror StringResponse Codes - Mirror back-to-source transparent source station response code list
- enable
Replace 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.
- host
Name string - The domain name during the jump. The domain name must comply with the domain name specification.
- http
Redirect stringCode - The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
- mirror
Allow booleanGet Image Info - Image back-to-source allows getting Image information
- mirror
Allow booleanHead Object - Whether to allow HeadObject in image back-to-source
- mirror
Allow booleanVideo Snapshot - Mirror back-to-source allows support for video frame truncation
- mirror
Async numberStatus - 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_auth
below. - mirror
Check booleanMd5 - Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
- mirror
Dst stringRegion - Mirrored back-to-source high-speed Channel vpregion
- mirror
Dst stringSlave Vpc Id - Mirroring back-to-source high-speed Channel standby station VpcId
- mirror
Dst stringVpc Id - Mirror back-to-source high-speed Channel VpcId
- mirror
Follow 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.
- 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_headers
below. - mirror
Is booleanExpress 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_alternates
below. - mirror
Pass booleanOriginal Slashes - Transparent transmission/to source Station
- mirror
Pass booleanQuery String - Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
- mirror
Proxy booleanPass - 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_headers
below. - mirror
Role string - Roles used when mirroring back-to-source
- mirror
Save booleanOss Meta - Mirror back-to-source back-to-source OSS automatically saves user metadata
- mirror
Sni boolean - Transparent transmission of SNI
- mirror
Switch 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.
- 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_taggings
below. - mirror
Tunnel stringId - Mirror back-to-source leased line back-to-source tunnel ID
- mirror
Url 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.
- mirror
Url stringProbe - Mirror back-to-source Master-backup back-to-source switching decision URL
- mirror
Url stringSlave - Mirror back-to-source primary backup back-to-source backup station URL
- mirror
User booleanLast Modified - Whether the source station LastModifiedTime is used for the image back-to-source save file.
- mirror
Using booleanRole - Whether to use role for mirroring back to source
- pass
Query 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.
- redirect
Type 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.
- replace
Key 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.
- replace
Key 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.
- transparent
Mirror 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_auth
below. - 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_headers
below. - 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_alternates
below. - 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_headers
below. - 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_taggings
below. - 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
- enable
Replace 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.
- host
Name String - The domain name during the jump. The domain name must comply with the domain name specification.
- http
Redirect StringCode - The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.
- mirror
Allow BooleanGet Image Info - Image back-to-source allows getting Image information
- mirror
Allow BooleanHead Object - Whether to allow HeadObject in image back-to-source
- mirror
Allow BooleanVideo Snapshot - Mirror back-to-source allows support for video frame truncation
- mirror
Async NumberStatus - The status code of the mirror back-to-source trigger asynchronous pull mode.
- mirror
Auth Property Map - Image back Source station authentication information See
mirror_auth
below. - mirror
Check BooleanMd5 - Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.
- mirror
Dst StringRegion - Mirrored back-to-source high-speed Channel vpregion
- mirror
Dst StringSlave Vpc Id - Mirroring back-to-source high-speed Channel standby station VpcId
- mirror
Dst StringVpc Id - Mirror back-to-source high-speed Channel VpcId
- mirror
Follow 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.
- mirror
Headers Property Map - Specifies the Header carried when the image returns to the source. It takes effect only when the RedirectType is set to Mirror. See
mirror_headers
below. - mirror
Is BooleanExpress Tunnel - Whether it is a mirror back-to-source high-speed Channel
- mirror
Multi 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_alternates
below. - mirror
Pass BooleanOriginal Slashes - Transparent transmission/to source Station
- mirror
Pass BooleanQuery String - Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.
- mirror
Proxy BooleanPass - Whether mirroring back to source does not save data
- mirror
Return 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_headers
below. - mirror
Role String - Roles used when mirroring back-to-source
- mirror
Save BooleanOss Meta - Mirror back-to-source back-to-source OSS automatically saves user metadata
- mirror
Sni Boolean - Transparent transmission of SNI
- mirror
Switch 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.
- mirror
Taggings Property Map - Save the label according to the parameters when saving the file from the mirror back to the source. NOTE:: If you want to clean one configuration, you must set the configuration to empty value, removing from code cannot make effect. See
mirror_taggings
below. - mirror
Tunnel StringId - Mirror back-to-source leased line back-to-source tunnel ID
- mirror
Url 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.
- mirror
Url StringProbe - Mirror back-to-source Master-backup back-to-source switching decision URL
- mirror
Url StringSlave - Mirror back-to-source primary backup back-to-source backup station URL
- mirror
User BooleanLast Modified - Whether the source station LastModifiedTime is used for the image back-to-source save file.
- mirror
Using BooleanRole - Whether to use role for mirroring back to source
- pass
Query 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.
- redirect
Type 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.
- replace
Key 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.
- replace
Key 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.
- transparent
Mirror StringResponse Codes - Mirror back-to-source transparent source station response code list
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuth, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuthArgs
- Access
Key stringId - Mirror back-to-source source Station back-to-source AK
- Access
Key stringSecret - Mirroring back to the source station back to the source SK will be automatically desensitized when obtaining the configuration.
- Auth
Type string - Authentication type of mirror return Source
- Region string
- Signature Region
- Access
Key stringId - Mirror back-to-source source Station back-to-source AK
- Access
Key stringSecret - Mirroring back to the source station back to the source SK will be automatically desensitized when obtaining the configuration.
- Auth
Type string - Authentication type of mirror return Source
- Region string
- Signature Region
- access
Key StringId - Mirror back-to-source source Station back-to-source AK
- access
Key StringSecret - Mirroring back to the source station back to the source SK will be automatically desensitized when obtaining the configuration.
- auth
Type String - Authentication type of mirror return Source
- region String
- Signature Region
- access
Key stringId - Mirror back-to-source source Station back-to-source AK
- access
Key stringSecret - Mirroring back to the source station back to the source SK will be automatically desensitized when obtaining the configuration.
- auth
Type 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
- access
Key StringId - Mirror back-to-source source Station back-to-source AK
- access
Key StringSecret - Mirroring back to the source station back to the source SK will be automatically desensitized when obtaining the configuration.
- auth
Type String - Authentication type of mirror return Source
- region String
- Signature Region
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeaders, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersArgs
- 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 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
set
below.
- Pass
All bool - Indicates whether other headers except the following headers are transmitted to the source site. It takes effect only when the RedirectType is set to Mirror. content-length, authorization2, authorization, range, date, and other headers Headers whose names start with oss-/x-oss-/x-drs-
- Passes []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
[]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
set
below.
- pass
All 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<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
set
below.
- pass
All 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
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
set
below.
- pass_
all bool - Indicates whether other headers except the following headers are transmitted to the source site. It takes effect only when the RedirectType is set to Mirror. content-length, authorization2, authorization, range, date, and other headers Headers whose names start with oss-/x-oss-/x-drs-
- passes Sequence[str]
- Pass through the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
- removes Sequence[str]
- Do not pass the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
- sets
Sequence[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
set
below.
- pass
All Boolean - Indicates whether other headers except the following headers are transmitted to the source site. It takes effect only when the RedirectType is set to Mirror. content-length, authorization2, authorization, range, date, and other headers Headers whose names start with oss-/x-oss-/x-drs-
- passes List<String>
- Pass through the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
- removes List<String>
- Do not pass the specified Header to the source site. It takes effect only when the RedirectType is set to Mirror. Each Header is up to 1024 bytes in length and has A character set of 0 to 9, a to Z, A to z, and dashes (-).
- sets List<Property Map>
- Set a Header to send to the source site. Regardless of whether the request contains the specified Header, these headers will be set when returning to the source site. It takes effect only when the RedirectType is set to Mirror. See
set
below.
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSet, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeadersSetArgs
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternates, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesArgs
- Mirror
Multi 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_alternate
below.
- Mirror
Multi []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_alternate
below.
- mirror
Multi 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_alternate
below.
- mirror
Multi 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_alternate
below.
- 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_alternate
below.
- mirror
Multi List<Property Map>Alternates - Mirror back-to-source multi-source station configuration list See
mirror_multi_alternate
below.
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternate, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternatesMirrorMultiAlternateArgs
- Mirror
Multi stringAlternate Dst Region - Mirroring back-to-source multi-station Region
- Mirror
Multi intAlternate Number - Image back-to-source multi-source station serial number
- Mirror
Multi stringAlternate Url - Mirroring back-to-source multi-source site URL
- Mirror
Multi stringAlternate Vpc Id - Mirroring back-to-source multi-source VpcId
- Mirror
Multi stringAlternate Dst Region - Mirroring back-to-source multi-station Region
- Mirror
Multi intAlternate Number - Image back-to-source multi-source station serial number
- Mirror
Multi stringAlternate Url - Mirroring back-to-source multi-source site URL
- Mirror
Multi stringAlternate Vpc Id - Mirroring back-to-source multi-source VpcId
- mirror
Multi StringAlternate Dst Region - Mirroring back-to-source multi-station Region
- mirror
Multi IntegerAlternate Number - Image back-to-source multi-source station serial number
- mirror
Multi StringAlternate Url - Mirroring back-to-source multi-source site URL
- mirror
Multi StringAlternate Vpc Id - Mirroring back-to-source multi-source VpcId
- mirror
Multi stringAlternate Dst Region - Mirroring back-to-source multi-station Region
- mirror
Multi numberAlternate Number - Image back-to-source multi-source station serial number
- mirror
Multi stringAlternate Url - Mirroring back-to-source multi-source site URL
- mirror
Multi 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
- mirror
Multi StringAlternate Dst Region - Mirroring back-to-source multi-station Region
- mirror
Multi NumberAlternate Number - Image back-to-source multi-source station serial number
- mirror
Multi StringAlternate Url - Mirroring back-to-source multi-source site URL
- mirror
Multi StringAlternate Vpc Id - Mirroring back-to-source multi-source VpcId
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeaders, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeadersArgs
- Return
Headers 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_header
below.
- Return
Headers []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_header
below.
- return
Headers 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_header
below.
- return
Headers 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_header
below.
- 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_header
below.
- return
Headers List<Property Map> - The list of response header rules for mirroring back-to-source return. See
return_header
below.
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
taggings
below.
- Taggings
[]Bucket
Website Routing Rules Routing Rule Redirect Mirror Taggings Tagging - Image back-to-source save label rule list See
taggings
below.
- taggings
List<Bucket
Website Routing Rules Routing Rule Redirect Mirror Taggings Tagging> - Image back-to-source save label rule list See
taggings
below.
- taggings
Bucket
Website Routing Rules Routing Rule Redirect Mirror Taggings Tagging[] - Image back-to-source save label rule list See
taggings
below.
- taggings
Sequence[Bucket
Website Routing Rules Routing Rule Redirect Mirror Taggings Tagging] - Image back-to-source save label rule list See
taggings
below.
- taggings List<Property Map>
- Image back-to-source save label rule list See
taggings
below.
BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTagging, BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggingsTaggingArgs
Import
OSS Bucket Website can be imported using the id, e.g.
$ pulumi import alicloud:oss/bucketWebsite:BucketWebsite example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.