Skip to content

PolicyProps

Properties for defining a Policy.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ddos-policy

Initializer

import { PolicyProps } from '@alicloud/ros-cdk-ddos'
const policyProps: PolicyProps = { ... }

Properties

Name Type Description
policyName string | @alicloud/ros-cdk-core.IResolvable Property policyName: The name of the policy.
type string | @alicloud/ros-cdk-core.IResolvable Property type: The type of the policy.
actionType string | @alicloud/ros-cdk-core.IResolvable Property actionType: Operation type ActionType = 10 Modify policy name ActionType = 11 Modify whitelist and whitelist timeout ActionType = 12 modify add white high anti-back source network segment switch ActionType = 13 Modify the switch to discard ICMP ActionType = 20 Add black and white list ActionType = 21 Delete whitelist and whitelist ActionType = 22 Clear White List ActionType = 23 Clear the blacklist ActionType = 30 Modify Smart Switch ActionType = 31 Modify regional ban ActionType = 32 Modify Source Speed Limit Black ActionType = 34 Modifying Reflective Port Filtering ActionType = 40,41,42 Create, delete, and modify Port rules ActionType = 50,51,52 Create, delete, and modify fingerprint rules ActionType = 60 switch L4 protection ActionType = 61,62,63 Create, delete, and modify L4 rules.
blackIpList @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property blackIpList: Blacklist list.
content @alicloud/ros-cdk-core.IResolvable | ContentProperty Property content: Configuration Content.
whiteIpList @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property whiteIpList: Whitelist IP list.

policyNameRequired

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

Property policyName: The name of the policy.


typeRequired

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

Property type: The type of the policy.

Values: - default: Indicates the default protection strategy. - l3: Indicates the IP protection strategy. - l4: Indicates the port protection strategy.


actionTypeOptional

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

Property actionType: Operation type ActionType = 10 Modify policy name ActionType = 11 Modify whitelist and whitelist timeout ActionType = 12 modify add white high anti-back source network segment switch ActionType = 13 Modify the switch to discard ICMP ActionType = 20 Add black and white list ActionType = 21 Delete whitelist and whitelist ActionType = 22 Clear White List ActionType = 23 Clear the blacklist ActionType = 30 Modify Smart Switch ActionType = 31 Modify regional ban ActionType = 32 Modify Source Speed Limit Black ActionType = 34 Modifying Reflective Port Filtering ActionType = 40,41,42 Create, delete, and modify Port rules ActionType = 50,51,52 Create, delete, and modify fingerprint rules ActionType = 60 switch L4 protection ActionType = 61,62,63 Create, delete, and modify L4 rules.


blackIpListOptional

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

Property blackIpList: Blacklist list.


contentOptional

public readonly content: IResolvable | ContentProperty;

Property content: Configuration Content.


whiteIpListOptional

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

Property whiteIpList: Whitelist IP list.