DomainConfig
This class encapsulates and extends the ROS resource type ALIYUN::WAF::DomainConfig
ALIYUN::CDN::DomainConfig is used to add domain name settings.
Initializers
import com.aliyun.ros.cdk.waf.DomainConfig;
DomainConfig.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.domain(java.lang.String)
.domain(IResolvable)
.instanceId(java.lang.String)
.instanceId(IResolvable)
.isAccessProduct(java.lang.Number)
.isAccessProduct(IResolvable)
.protocols(java.lang.String)
.protocols(IResolvable)
// .httpPort(java.lang.String)
// .httpPort(IResolvable)
// .httpsPort(java.lang.String)
// .httpsPort(IResolvable)
// .httpsRedirect(java.lang.Number)
// .httpsRedirect(IResolvable)
// .httpToUserIp(java.lang.Number)
// .httpToUserIp(IResolvable)
// .loadBalancing(java.lang.Number)
// .loadBalancing(IResolvable)
// .region(java.lang.String)
// .region(IResolvable)
// .rsType(java.lang.Number)
// .rsType(IResolvable)
// .sourceIps(java.lang.String)
// .sourceIps(IResolvable)
.build();
Name | Type | Description |
---|---|---|
scope |
com.aliyun.ros.cdk.core.Construct |
No description. |
id |
java.lang.String |
No description. |
enableResourcePropertyConstraint |
java.lang.Boolean |
No description. |
domain |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property domain: Domain name. |
instanceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceId: WAF instance ID. |
isAccessProduct |
java.lang.Number OR com.aliyun.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 |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property protocols: The domain supports access protocols, values: http: expressed support for the HTTP protocol. |
httpPort |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property httpPort: HTTP protocol configuration port. |
httpsPort |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property httpsPort: HTTPS protocol configuration port. |
httpsRedirect |
java.lang.Number OR com.aliyun.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 |
java.lang.Number OR com.aliyun.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 |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property loadBalancing: Back to the source load balancing policy values: 0: IP Hash way. |
region |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property region: Examples of areas where the WAF. |
rsType |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property rsType: Back to the source address type the domain name values: 0: back to the source to IP. |
sourceIps |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property sourceIps: Source station IP, supports a plurality of specified IP. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
domain
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property domain: Domain name.
instanceId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceId: WAF instance ID.
Description Interface You can view your current WAF instance ID by calling DescribePayInfo.
isAccessProduct
Required
- Type: java.lang.Number OR com.aliyun.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
- Type: java.lang.String OR com.aliyun.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.
httpPort
Optional
- Type: java.lang.String OR com.aliyun.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.
httpsPort
Optional
- Type: java.lang.String OR com.aliyun.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.
httpsRedirect
Optional
- Type: java.lang.Number OR com.aliyun.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.
httpToUserIp
Optional
- Type: java.lang.Number OR com.aliyun.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
Optional
- Type: java.lang.Number OR com.aliyun.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
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property region: Examples of areas where the WAF.
Value: cn: China mainland (default) cn-hongkong: China HongKong and other overseas
rsType
Optional
- Type: java.lang.Number OR com.aliyun.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.
sourceIps
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sourceIps: Source station IP, supports a plurality of specified IP.
Example values: [ "1.1.1.1"].
Methods
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition |
No description. |
addCount |
No description. |
addDependency |
No description. |
addResourceDesc |
No description. |
applyRemovalPolicy |
No description. |
getAtt |
No description. |
setMetadata |
No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.waf.DomainConfig;
DomainConfig.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
Name | Type | Description |
---|---|---|
node |
com.aliyun.ros.cdk.core.ConstructNode |
The construct tree node associated with this construct. |
ref |
java.lang.String |
No description. |
stack |
com.aliyun.ros.cdk.core.Stack |
The stack in which this resource is defined. |
resource |
com.aliyun.ros.cdk.core.RosResource |
No description. |
attrCname |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Cname: CNAME assigned by WAF instance. |
attrProtocolType |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ProtocolType: agreement type:0: indicates that the HTTP protocol is supported.1: indicates that the HTTPS protocol is supported.2: indicates that both HTTP and HTTPS protocols are supported. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrCname
Required
public IResolvable getAttrCname();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Cname: CNAME assigned by WAF instance.
attrProtocolType
Required
public IResolvable getAttrProtocolType();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ProtocolType: agreement type:0: indicates that the HTTP protocol is supported.1: indicates that the HTTPS protocol is supported.2: indicates that both HTTP and HTTPS protocols are supported.