Skip to content

DomainConfigProps

Properties for defining a DomainConfig.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkwaf"
&alicloudroscdkwaf.DomainConfigProps {
    Domain: interface{},
    InstanceId: interface{},
    IsAccessProduct: interface{},
    Protocols: interface{},
    HttpPort: interface{},
    HttpsPort: interface{},
    HttpsRedirect: interface{},
    HttpToUserIp: interface{},
    LoadBalancing: interface{},
    Region: interface{},
    RsType: interface{},
    SourceIps: interface{},
}

Properties

Name Type Description
Domain interface{} Property domain: Domain name.
InstanceId interface{} Property instanceId: WAF instance ID.
IsAccessProduct interface{} Property isAccessProduct: The domain before WAF is configured with seven agents (eg, high defense, CDN, etc.), the value of: 0: none. 1: expressed.
Protocols interface{} Property protocols: The domain supports access protocols, values: http: expressed support for the HTTP protocol.
HttpPort interface{} Property httpPort: HTTP protocol configuration port.
HttpsPort interface{} Property httpsPort: HTTPS protocol configuration port.
HttpsRedirect interface{} 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 interface{} 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 interface{} Property loadBalancing: Back to the source load balancing policy values: 0: IP Hash way.
Region interface{} Property region: Examples of areas where the WAF.
RsType interface{} Property rsType: Back to the source address type the domain name values: 0: back to the source to IP.
SourceIps interface{} Property sourceIps: Source station IP, supports a plurality of specified IP.

DomainRequired

Domain interface{}
  • Type: interface{}

Property domain: Domain name.


InstanceIdRequired

InstanceId interface{}
  • Type: interface{}

Property instanceId: WAF instance ID.

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


IsAccessProductRequired

IsAccessProduct interface{}
  • Type: interface{}

Property isAccessProduct: The domain before WAF is configured with seven agents (eg, high defense, CDN, etc.), the value of: 0: none. 1: expressed.


ProtocolsRequired

Protocols interface{}
  • Type: interface{}

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

HttpPort interface{}
  • Type: interface{}

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

HttpsPort interface{}
  • Type: interface{}

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

HttpsRedirect interface{}
  • Type: interface{}

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

HttpToUserIp interface{}
  • Type: interface{}

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

LoadBalancing interface{}
  • Type: interface{}

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

1: represents a polling mode.


RegionOptional

Region interface{}
  • Type: interface{}

Property region: Examples of areas where the WAF.

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


RsTypeOptional

RsType interface{}
  • Type: interface{}

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

SourceIps interface{}
  • Type: interface{}

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

Example values: [ "1.1.1.1"].