RewriteUrlRuleProps
Properties for defining a RewriteUrlRule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-rewriteurlrule
Initializer
import ros_cdk_esa
ros_cdk_esa.RewriteUrlRuleProps(
site_id: typing.Union[typing.Union[int, float], IResolvable],
query_string: typing.Union[str, IResolvable] = None,
rewrite_query_string_type: typing.Union[str, IResolvable] = None,
rewrite_uri_type: typing.Union[str, IResolvable] = None,
rule: typing.Union[str, IResolvable] = None,
rule_enable: typing.Union[str, IResolvable] = None,
rule_name: typing.Union[str, IResolvable] = None,
site_version: typing.Union[typing.Union[int, float], IResolvable] = None,
uri: typing.Union[str, IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
site_id | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property siteId: The website ID, which can be obtained by calling the ListSites operation. |
query_string | typing.Union[str, ros_cdk_core.IResolvable] | Property queryString: The desired query string to which you want to rewrite the query string in the original request. |
rewrite_query_string_type | typing.Union[str, ros_cdk_core.IResolvable] | Property rewriteQueryStringType: Query string rewrite type. |
rewrite_uri_type | typing.Union[str, ros_cdk_core.IResolvable] | Property rewriteUriType: URI rewrite type. |
rule | typing.Union[str, ros_cdk_core.IResolvable] | Property rule: Rule content, using conditional expressions to match user requests. |
rule_enable | typing.Union[str, ros_cdk_core.IResolvable] | Property ruleEnable: Rule switch. |
rule_name | typing.Union[str, ros_cdk_core.IResolvable] | Property ruleName: Rule name. |
site_version | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property siteVersion: Version number of the site configuration. |
uri | typing.Union[str, ros_cdk_core.IResolvable] | Property uri: The desired URI to which you want to rewrite the path in the original request. |
site_idRequired
site_id: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property siteId: The website ID, which can be obtained by calling the ListSites operation.
query_stringOptional
query_string: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property queryString: The desired query string to which you want to rewrite the query string in the original request.
rewrite_query_string_typeOptional
rewrite_query_string_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property rewriteQueryStringType: Query string rewrite type.
Value range:
static: Static mode.dynamic: Dynamic mode.
rewrite_uri_typeOptional
rewrite_uri_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property rewriteUriType: URI rewrite type.
Value range:
static: Static mode.dynamic: Dynamic mode.
ruleOptional
rule: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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").
rule_enableOptional
rule_enable: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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.
rule_nameOptional
rule_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property ruleName: Rule name.
When adding global configuration, this parameter does not need to be set.
site_versionOptional
site_version: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], 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
uri: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property uri: The desired URI to which you want to rewrite the path in the original request.