Skip to content

ContainerDefenseRuleProps

Properties for defining a ContainerDefenseRule.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-threatdetection-containerdefenserule

Initializer

import { ContainerDefenseRuleProps } from '@alicloud/ros-cdk-threatdetection'
const containerDefenseRuleProps: ContainerDefenseRuleProps = { ... }

Properties

Name Type Description
description string | @alicloud/ros-cdk-core.IResolvable Property description: Rule description.
ruleAction number | @alicloud/ros-cdk-core.IResolvable Property ruleAction: The action that is performed when the rule is hit.
ruleId number | @alicloud/ros-cdk-core.IResolvable Property ruleId: Rule Id.
ruleName string | @alicloud/ros-cdk-core.IResolvable Property ruleName: The name of the rule.
ruleSwitch number | @alicloud/ros-cdk-core.IResolvable Property ruleSwitch: The switch of the rule.
ruleType number | @alicloud/ros-cdk-core.IResolvable Property ruleType: The rule type.
scope @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ScopeProperty[] Property scope: Rule scope.
whitelist @alicloud/ros-cdk-core.IResolvable | WhitelistProperty Property whitelist: The whitelist of rule.
whitelistHash string | @alicloud/ros-cdk-core.IResolvable Property whitelistHash: The whitelist Hash.

descriptionOptional

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

Property description: Rule description.


ruleActionOptional

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

Property ruleAction: The action that is performed when the rule is hit.

Valid values: - 1: alert - 2: block.


ruleIdOptional

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

Property ruleId: Rule Id.


ruleNameOptional

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

Property ruleName: The name of the rule.


ruleSwitchOptional

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

Property ruleSwitch: The switch of the rule.

Valid values: * 0: off. * 1: on.


ruleTypeOptional

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

Property ruleType: The rule type.

Value: * 2: User Rules


scopeOptional

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

Property scope: Rule scope.


whitelistOptional

public readonly whitelist: IResolvable | WhitelistProperty;

Property whitelist: The whitelist of rule.


whitelistHashOptional

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

Property whitelistHash: The whitelist Hash.