RewriteUrlRuleProps
Properties for defining a RewriteUrlRule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-rewriteurlrule
Initializer
import com.aliyun.ros.cdk.esa.RewriteUrlRuleProps;
RewriteUrlRuleProps.builder()
.siteId(java.lang.Number)
.siteId(IResolvable)
// .queryString(java.lang.String)
// .queryString(IResolvable)
// .rewriteQueryStringType(java.lang.String)
// .rewriteQueryStringType(IResolvable)
// .rewriteUriType(java.lang.String)
// .rewriteUriType(IResolvable)
// .rule(java.lang.String)
// .rule(IResolvable)
// .ruleEnable(java.lang.String)
// .ruleEnable(IResolvable)
// .ruleName(java.lang.String)
// .ruleName(IResolvable)
// .siteVersion(java.lang.Number)
// .siteVersion(IResolvable)
// .uri(java.lang.String)
// .uri(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
siteId | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property siteId: The website ID, which can be obtained by calling the ListSites operation. |
queryString | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property queryString: The desired query string to which you want to rewrite the query string in the original request. |
rewriteQueryStringType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property rewriteQueryStringType: Query string rewrite type. |
rewriteUriType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property rewriteUriType: URI rewrite type. |
rule | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property rule: Rule content, using conditional expressions to match user requests. |
ruleEnable | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ruleEnable: Rule switch. |
ruleName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ruleName: Rule name. |
siteVersion | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property siteVersion: Version number of the site configuration. |
uri | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property uri: The desired URI to which you want to rewrite the path in the original request. |
siteIdRequired
public java.lang.Object getSiteId();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property siteId: The website ID, which can be obtained by calling the ListSites operation.
queryStringOptional
public java.lang.Object getQueryString();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property queryString: The desired query string to which you want to rewrite the query string in the original request.
rewriteQueryStringTypeOptional
public java.lang.Object getRewriteQueryStringType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property rewriteQueryStringType: Query string rewrite type.
Value range:
static: Static mode.dynamic: Dynamic mode.
rewriteUriTypeOptional
public java.lang.Object getRewriteUriType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property rewriteUriType: URI rewrite type.
Value range:
static: Static mode.dynamic: Dynamic mode.
ruleOptional
public java.lang.Object getRule();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property rule: Rule content, using conditional expressions to match user requests.
When adding global configuration, this parameter does not need to be set. There are two usage scenarios: Match all incoming requests: value set to true Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com").
ruleEnableOptional
public java.lang.Object getRuleEnable();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ruleEnable: Rule switch.
When adding global configuration, this parameter does not need to be set. Value range: on: open. off: close.
ruleNameOptional
public java.lang.Object getRuleName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ruleName: Rule name.
When adding global configuration, this parameter does not need to be set.
siteVersionOptional
public java.lang.Object getSiteVersion();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property siteVersion: Version number of the site configuration.
For a site with configuration version management enabled, you can use this parameter to specify the site version in which the configuration takes effect. The default version is 0.
uriOptional
public java.lang.Object getUri();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property uri: The desired URI to which you want to rewrite the path in the original request.