DomainConfigProps
Properties for defining a DomainConfig
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-waf-domainconfig
Initializer
import ros_cdk_waf
ros_cdk_waf.DomainConfigProps(
domain: typing.Union[str, IResolvable],
instance_id: typing.Union[str, IResolvable],
is_access_product: typing.Union[typing.Union[int, float], IResolvable],
protocols: typing.Union[str, IResolvable],
http_port: typing.Union[str, IResolvable] = None,
https_port: typing.Union[str, IResolvable] = None,
https_redirect: typing.Union[typing.Union[int, float], IResolvable] = None,
http_to_user_ip: typing.Union[typing.Union[int, float], IResolvable] = None,
load_balancing: typing.Union[typing.Union[int, float], IResolvable] = None,
region: typing.Union[str, IResolvable] = None,
rs_type: typing.Union[typing.Union[int, float], IResolvable] = None,
source_ips: typing.Union[str, IResolvable] = None
)
Properties
Name | Type | Description |
---|---|---|
domain |
typing.Union[str, ros_cdk_core.IResolvable] |
Property domain: Domain name. |
instance_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property instanceId: WAF instance ID. |
is_access_product |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property isAccessProduct: The domain before WAF is configured with seven agents (eg, high defense, CDN, etc.), the value of: 0: none. 1: expressed. |
protocols |
typing.Union[str, ros_cdk_core.IResolvable] |
Property protocols: The domain supports access protocols, values: http: expressed support for the HTTP protocol. |
http_port |
typing.Union[str, ros_cdk_core.IResolvable] |
Property httpPort: HTTP protocol configuration port. |
https_port |
typing.Union[str, ros_cdk_core.IResolvable] |
Property httpsPort: HTTPS protocol configuration port. |
https_redirect |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property httpsRedirect: HTTPS is turned forcefully jump the argument: 0: off (default) 1: Turn Description required to complete the request parameters using only HTTPS access protocol. |
http_to_user_ip |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property httpToUserIp: Whether to open HTTPS access request is forwarded back to the source station via the HTTP protocol, the value of: 0: off (default) 1: Turn Note If your site does not support HTTPS back to the source, open source HTTP return (default back to the source port is port 80) function key, can be realized by WAF HTTPS access. |
load_balancing |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property loadBalancing: Back to the source load balancing policy values: 0: IP Hash way. |
region |
typing.Union[str, ros_cdk_core.IResolvable] |
Property region: Examples of areas where the WAF. |
rs_type |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property rsType: Back to the source address type the domain name values: 0: back to the source to IP. |
source_ips |
typing.Union[str, ros_cdk_core.IResolvable] |
Property sourceIps: Source station IP, supports a plurality of specified IP. |
domain
Required
domain: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property domain: Domain name.
instance_id
Required
instance_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property instanceId: WAF instance ID.
Description Interface You can view your current WAF instance ID by calling DescribePayInfo.
is_access_product
Required
is_access_product: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property isAccessProduct: The domain before WAF is configured with seven agents (eg, high defense, CDN, etc.), the value of: 0: none. 1: expressed.
protocols
Required
protocols: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property protocols: The domain supports access protocols, values: http: expressed support for the HTTP protocol.
https: support for HTTPS protocol. http, https: supports HTTP, HTTPS protocol.
http_port
Optional
http_port: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property httpPort: HTTP protocol configuration port.
When specifying a plurality of HTTP port "," separated. Example values: [80]. Configure the HTTP protocol, this parameter is required. The default value is 80. HttpPort HttpsPort with at least two parameters need to fill a request.
https_port
Optional
https_port: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property httpsPort: HTTPS protocol configuration port.
When specifying a plurality HTTPS port, using the "," separated. Example values: [443]. Configure the protocol is HTTPS, this parameter is required. The default value is 443. HttpPort HttpsPort with at least two parameters need to fill a request.
https_redirect
Optional
https_redirect: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property httpsRedirect: HTTPS is turned forcefully jump the argument: 0: off (default) 1: Turn Description required to complete the request parameters using only HTTPS access protocol.
After opening force will show a jump HTTP request is HTTPS, a default jump to 443.
http_to_user_ip
Optional
http_to_user_ip: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property httpToUserIp: Whether to open HTTPS access request is forwarded back to the source station via the HTTP protocol, the value of: 0: off (default) 1: Turn Note If your site does not support HTTPS back to the source, open source HTTP return (default back to the source port is port 80) function key, can be realized by WAF HTTPS access.
load_balancing
Optional
load_balancing: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property loadBalancing: Back to the source load balancing policy values: 0: IP Hash way.
1: represents a polling mode.
region
Optional
region: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property region: Examples of areas where the WAF.
Value: cn: China mainland (default) cn-hongkong: China HongKong and other overseas
rs_type
Optional
rs_type: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property rsType: Back to the source address type the domain name values: 0: back to the source to IP.
1: Indicates the domain name back to the source.
source_ips
Optional
source_ips: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property sourceIps: Source station IP, supports a plurality of specified IP.
Example values: [ "1.1.1.1"].