Skip to content

DomainConfigProps

Properties for defining a DomainConfig.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-waf-domainconfig

Initializer

import { DomainConfigProps } from '@alicloud/ros-cdk-waf'
const domainConfigProps: DomainConfigProps = { ... }

Properties

Name Type Description
domain string | @alicloud/ros-cdk-core.IResolvable Property domain: Domain name.
instanceId string | @alicloud/ros-cdk-core.IResolvable Property instanceId: WAF instance ID.
isAccessProduct number | @alicloud/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 string | @alicloud/ros-cdk-core.IResolvable Property protocols: The domain supports access protocols, values: http: expressed support for the HTTP protocol.
httpPort string | @alicloud/ros-cdk-core.IResolvable Property httpPort: HTTP protocol configuration port.
httpsPort string | @alicloud/ros-cdk-core.IResolvable Property httpsPort: HTTPS protocol configuration port.
httpsRedirect number | @alicloud/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.
httpToUserIp number | @alicloud/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.
loadBalancing number | @alicloud/ros-cdk-core.IResolvable Property loadBalancing: Back to the source load balancing policy values: 0: IP Hash way.
region string | @alicloud/ros-cdk-core.IResolvable Property region: Examples of areas where the WAF.
rsType number | @alicloud/ros-cdk-core.IResolvable Property rsType: Back to the source address type the domain name values: 0: back to the source to IP.
sourceIps string | @alicloud/ros-cdk-core.IResolvable Property sourceIps: Source station IP, supports a plurality of specified IP.

domainRequired

public readonly domain: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property domain: Domain name.


instanceIdRequired

public readonly instanceId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property instanceId: WAF instance ID.

Description Interface You can view your current WAF instance ID by calling DescribePayInfo.


isAccessProductRequired

public readonly isAccessProduct: number | IResolvable;
  • Type: number | @alicloud/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.


protocolsRequired

public readonly protocols: string | IResolvable;
  • Type: string | @alicloud/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.


httpPortOptional

public readonly httpPort: string | IResolvable;
  • Type: string | @alicloud/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.


httpsPortOptional

public readonly httpsPort: string | IResolvable;
  • Type: string | @alicloud/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.


httpsRedirectOptional

public readonly httpsRedirect: number | IResolvable;
  • Type: number | @alicloud/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.


httpToUserIpOptional

public readonly httpToUserIp: number | IResolvable;
  • Type: number | @alicloud/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.


loadBalancingOptional

public readonly loadBalancing: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property loadBalancing: Back to the source load balancing policy values: 0: IP Hash way.

1: represents a polling mode.


regionOptional

public readonly region: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property region: Examples of areas where the WAF.

Value: cn: China mainland (default) cn-hongkong: China HongKong and other overseas


rsTypeOptional

public readonly rsType: number | IResolvable;
  • Type: number | @alicloud/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.


sourceIpsOptional

public readonly sourceIps: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property sourceIps: Source station IP, supports a plurality of specified IP.

Example values: [ "1.1.1.1"].