Skip to content

WafSwitchProps

Properties for defining a WafSwitch.

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

Initializer

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

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.
serviceOn number | @alicloud/ros-cdk-core.IResolvable Property serviceOn: Web attack protection switch, the value of: 0: closed.
region string | @alicloud/ros-cdk-core.IResolvable Property region: Examples of areas where the WAF.

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.


serviceOnRequired

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

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

1: indicate on.


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