BucketWebsiteRoutingRulesRoutingRuleRedirect

data class BucketWebsiteRoutingRulesRoutingRuleRedirect(val enableReplacePrefix: Boolean? = null, val hostName: String? = null, val httpRedirectCode: String? = null, val mirrorAllowGetImageInfo: Boolean? = null, val mirrorAllowHeadObject: Boolean? = null, val mirrorAllowVideoSnapshot: Boolean? = null, val mirrorAsyncStatus: Int? = null, val mirrorAuth: BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuth? = null, val mirrorCheckMd5: Boolean? = null, val mirrorDstRegion: String? = null, val mirrorDstSlaveVpcId: String? = null, val mirrorDstVpcId: String? = null, val mirrorFollowRedirect: Boolean? = null, val mirrorHeaders: BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeaders? = null, val mirrorIsExpressTunnel: Boolean? = null, val mirrorMultiAlternates: BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternates? = null, val mirrorPassOriginalSlashes: Boolean? = null, val mirrorPassQueryString: Boolean? = null, val mirrorProxyPass: Boolean? = null, val mirrorReturnHeaders: BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeaders? = null, val mirrorRole: String? = null, val mirrorSaveOssMeta: Boolean? = null, val mirrorSni: Boolean? = null, val mirrorSwitchAllErrors: Boolean? = null, val mirrorTaggings: BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggings? = null, val mirrorTunnelId: String? = null, val mirrorUrl: String? = null, val mirrorUrlProbe: String? = null, val mirrorUrlSlave: String? = null, val mirrorUserLastModified: Boolean? = null, val mirrorUsingRole: Boolean? = null, val passQueryString: Boolean? = null, val protocol: String? = null, val redirectType: String? = null, val replaceKeyPrefixWith: String? = null, val replaceKeyWith: String? = null, val transparentMirrorResponseCodes: String? = null)

Constructors

constructor(enableReplacePrefix: Boolean? = null, hostName: String? = null, httpRedirectCode: String? = null, mirrorAllowGetImageInfo: Boolean? = null, mirrorAllowHeadObject: Boolean? = null, mirrorAllowVideoSnapshot: Boolean? = null, mirrorAsyncStatus: Int? = null, mirrorAuth: BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorAuth? = null, mirrorCheckMd5: Boolean? = null, mirrorDstRegion: String? = null, mirrorDstSlaveVpcId: String? = null, mirrorDstVpcId: String? = null, mirrorFollowRedirect: Boolean? = null, mirrorHeaders: BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorHeaders? = null, mirrorIsExpressTunnel: Boolean? = null, mirrorMultiAlternates: BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorMultiAlternates? = null, mirrorPassOriginalSlashes: Boolean? = null, mirrorPassQueryString: Boolean? = null, mirrorProxyPass: Boolean? = null, mirrorReturnHeaders: BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorReturnHeaders? = null, mirrorRole: String? = null, mirrorSaveOssMeta: Boolean? = null, mirrorSni: Boolean? = null, mirrorSwitchAllErrors: Boolean? = null, mirrorTaggings: BucketWebsiteRoutingRulesRoutingRuleRedirectMirrorTaggings? = null, mirrorTunnelId: String? = null, mirrorUrl: String? = null, mirrorUrlProbe: String? = null, mirrorUrlSlave: String? = null, mirrorUserLastModified: Boolean? = null, mirrorUsingRole: Boolean? = null, passQueryString: Boolean? = null, protocol: String? = null, redirectType: String? = null, replaceKeyPrefixWith: String? = null, replaceKeyWith: String? = null, transparentMirrorResponseCodes: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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.

Link copied to clipboard
val hostName: String? = null

The domain name during the jump. The domain name must comply with the domain name specification.

Link copied to clipboard

The status code returned during the jump. It takes effect only when the RedirectType is set to External or AliCDN.

Link copied to clipboard

Image back-to-source allows getting Image information

Link copied to clipboard

Whether to allow HeadObject in image back-to-source

Link copied to clipboard

Mirror back-to-source allows support for video frame truncation

Link copied to clipboard
val mirrorAsyncStatus: Int? = null

The status code of the mirror back-to-source trigger asynchronous pull mode.

Link copied to clipboard

Image back Source station authentication information See mirror_auth below.

Link copied to clipboard
val mirrorCheckMd5: Boolean? = null

Whether to check the MD5 of the source body. It takes effect only when the RedirectType is set to Mirror.

Link copied to clipboard
val mirrorDstRegion: String? = null

Mirrored back-to-source high-speed Channel vpregion

Link copied to clipboard

Mirroring back-to-source high-speed Channel standby station VpcId

Link copied to clipboard
val mirrorDstVpcId: String? = null

Mirror back-to-source high-speed Channel VpcId

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Whether it is a mirror back-to-source high-speed Channel

Link copied to clipboard

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.

Link copied to clipboard

Transparent transmission/to source Station

Link copied to clipboard

Same as PassQueryString and takes precedence over PassQueryString. It takes effect only when the RedirectType is set to Mirror.

Link copied to clipboard

Whether mirroring back to source does not save data

Link copied to clipboard

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.

Link copied to clipboard
val mirrorRole: String? = null

Roles used when mirroring back-to-source

Link copied to clipboard

Mirror back-to-source back-to-source OSS automatically saves user metadata

Link copied to clipboard
val mirrorSni: Boolean? = null

Transparent transmission of SNI

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard
val mirrorTunnelId: String? = null

Mirror back-to-source leased line back-to-source tunnel ID

Link copied to clipboard
val mirrorUrl: String? = null

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.

Link copied to clipboard
val mirrorUrlProbe: String? = null

Mirror back-to-source Master-backup back-to-source switching decision URL

Link copied to clipboard
val mirrorUrlSlave: String? = null

Mirror back-to-source primary backup back-to-source backup station URL

Link copied to clipboard

Whether the source station LastModifiedTime is used for the image back-to-source save file.

Link copied to clipboard

Whether to use role for mirroring back to source

Link copied to clipboard

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)

Link copied to clipboard
val protocol: String? = null

The protocol at the time of the jump. It takes effect only when the RedirectType is set to External or AliCDN.

Link copied to clipboard
val redirectType: String? = null

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.

Link copied to clipboard

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.

Link copied to clipboard
val replaceKeyWith: String? = null

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.

Link copied to clipboard

Mirror back-to-source transparent source station response code list