Skip to content

WafSwitchProps

Properties for defining a WafSwitch.

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

Initializer

import ros_cdk_waf
ros_cdk_waf.WafSwitchProps(
  domain: typing.Union[str, IResolvable],
  instance_id: typing.Union[str, IResolvable],
  service_on: typing.Union[typing.Union[int, float], IResolvable],
  region: 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.
service_on typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property serviceOn: Web attack protection switch, the value of: 0: closed.
region typing.Union[str, ros_cdk_core.IResolvable] Property region: Examples of areas where the WAF.

domainRequired

domain: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property domain: Domain name.


instance_idRequired

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.


service_onRequired

service_on: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property serviceOn: Web attack protection switch, the value of: 0: closed.

1: indicate on.


regionOptional

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