RewriteUrlRuleProps
Properties for defining a RewriteUrlRule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-rewriteurlrule
Initializer
import { RewriteUrlRuleProps } from '@alicloud/ros-cdk-esa'
const rewriteUrlRuleProps: RewriteUrlRuleProps = { ... }
Properties
| Name | Type | Description |
|---|---|---|
siteId | number | @alicloud/ros-cdk-core.IResolvable | Property siteId: The website ID, which can be obtained by calling the ListSites operation. |
queryString | string | @alicloud/ros-cdk-core.IResolvable | Property queryString: The desired query string to which you want to rewrite the query string in the original request. |
rewriteQueryStringType | string | @alicloud/ros-cdk-core.IResolvable | Property rewriteQueryStringType: Query string rewrite type. |
rewriteUriType | string | @alicloud/ros-cdk-core.IResolvable | Property rewriteUriType: URI rewrite type. |
rule | string | @alicloud/ros-cdk-core.IResolvable | Property rule: Rule content, using conditional expressions to match user requests. |
ruleEnable | string | @alicloud/ros-cdk-core.IResolvable | Property ruleEnable: Rule switch. |
ruleName | string | @alicloud/ros-cdk-core.IResolvable | Property ruleName: Rule name. |
siteVersion | number | @alicloud/ros-cdk-core.IResolvable | Property siteVersion: Version number of the site configuration. |
uri | string | @alicloud/ros-cdk-core.IResolvable | Property uri: The desired URI to which you want to rewrite the path in the original request. |
siteIdRequired
public readonly siteId: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property siteId: The website ID, which can be obtained by calling the ListSites operation.
queryStringOptional
public readonly queryString: string | IResolvable;
- Type: string | @alicloud/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 readonly rewriteQueryStringType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property rewriteQueryStringType: Query string rewrite type.
Value range: - static: Static mode. - dynamic: Dynamic mode.
rewriteUriTypeOptional
public readonly rewriteUriType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property rewriteUriType: URI rewrite type.
Value range: - static: Static mode. - dynamic: Dynamic mode.
ruleOptional
public readonly rule: string | IResolvable;
- Type: string | @alicloud/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 readonly ruleEnable: string | IResolvable;
- Type: string | @alicloud/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 readonly ruleName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property ruleName: Rule name.
When adding global configuration, this parameter does not need to be set.
siteVersionOptional
public readonly siteVersion: number | IResolvable;
- Type: number | @alicloud/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 readonly uri: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property uri: The desired URI to which you want to rewrite the path in the original request.