Skip to content

WafRuleProps

Properties for defining a WafRule.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-wafrule

Initializer

import { WafRuleProps } from '@alicloud/ros-cdk-esa'
const wafRuleProps: WafRuleProps = { ... }

Properties

Name Type Description
phase string | @alicloud/ros-cdk-core.IResolvable Property phase: The version of the website.
siteId number | @alicloud/ros-cdk-core.IResolvable Property siteId: The website ID, which can be obtained by calling the ListSites operation.
config @alicloud/ros-cdk-core.IResolvable | ConfigProperty Property config: The configuration of the rule.
rulesetId number | @alicloud/ros-cdk-core.IResolvable Property rulesetId: The ID of the WAF ruleset, which can be obtained by calling the ListWafRulesets operation.
shared @alicloud/ros-cdk-core.IResolvable | SharedProperty Property shared: The configurations shared by multiple rules.
siteVersion number | @alicloud/ros-cdk-core.IResolvable Property siteVersion: The website ID, which can be obtained by calling the ListSites operation.

phaseRequired

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

Property phase: The version of the website.


siteIdRequired

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

Property siteId: The website ID, which can be obtained by calling the ListSites operation.


configOptional

public readonly config: IResolvable | ConfigProperty;

Property config: The configuration of the rule.


rulesetIdOptional

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

Property rulesetId: The ID of the WAF ruleset, which can be obtained by calling the ListWafRulesets operation.


sharedOptional

public readonly shared: IResolvable | SharedProperty;

Property shared: The configurations shared by multiple rules.


siteVersionOptional

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

Property siteVersion: The website ID, which can be obtained by calling the ListSites operation.