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 ros_cdk_waf
ros_cdk_waf.DomainConfig(
scope: Construct,
id: str,
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,
enable_resource_property_constraint: bool = None
)
Name | Type | Description |
---|---|---|
scope |
ros_cdk_core.Construct |
No description. |
id |
str |
No 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. |
enable_resource_property_constraint |
bool |
No description. |
scope
Required
- Type: ros_cdk_core.Construct
id
Required
- Type: str
domain
Required
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property domain: Domain name.
instance_id
Required
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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"].
enable_resource_property_constraint
Optional
- Type: bool
Methods
Name | Description |
---|---|
to_string |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
add_condition |
No description. |
add_count |
No description. |
add_dependency |
No description. |
add_resource_desc |
No description. |
apply_removal_policy |
No description. |
get_att |
No description. |
set_metadata |
No description. |
to_string
def to_string() -> str
Returns a string representation of this construct.
synthesize
def synthesize(
session: ISynthesisSession
) -> None
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: ros_cdk_core.ISynthesisSession
The synthesis session.
add_condition
def add_condition(
condition: RosCondition
) -> None
- Type: ros_cdk_core.RosCondition
add_count
def add_count(
count: typing.Union[typing.Union[int, float], IResolvable]
) -> None
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
add_dependency
def add_dependency(
resource: Resource
) -> None
- Type: ros_cdk_core.Resource
add_resource_desc
def add_resource_desc(
desc: str
) -> None
- Type: str
apply_removal_policy
def apply_removal_policy(
policy: RemovalPolicy
) -> None
- Type: ros_cdk_core.RemovalPolicy
get_att
def get_att(
name: str
) -> IResolvable
- Type: str
set_metadata
def set_metadata(
key: str,
value: typing.Any
) -> None
- Type: str
- Type: typing.Any
Static Functions
Name | Description |
---|---|
is_construct |
Return whether the given object is a Construct. |
is_construct
import ros_cdk_waf
ros_cdk_waf.DomainConfig.is_construct(
x: typing.Any
)
Return whether the given object is a Construct.
- Type: typing.Any
Properties
Name | Type | Description |
---|---|---|
node |
ros_cdk_core.ConstructNode |
The construct tree node associated with this construct. |
ref |
str |
No description. |
stack |
ros_cdk_core.Stack |
The stack in which this resource is defined. |
resource |
ros_cdk_core.RosResource |
No description. |
attr_cname |
ros_cdk_core.IResolvable |
Attribute Cname: CNAME assigned by WAF instance. |
attr_protocol_type |
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
node: ConstructNode
- Type: ros_cdk_core.ConstructNode
The construct tree node associated with this construct.
ref
Required
ref: str
- Type: str
stack
Required
stack: Stack
- Type: ros_cdk_core.Stack
The stack in which this resource is defined.
resource
Optional
resource: RosResource
- Type: ros_cdk_core.RosResource
attr_cname
Required
attr_cname: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute Cname: CNAME assigned by WAF instance.
attr_protocol_type
Required
attr_protocol_type: IResolvable
- Type: 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.