ContainerDefenseRuleProps
Properties for defining a ContainerDefenseRule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-threatdetection-containerdefenserule
Initializer
import com.aliyun.ros.cdk.threatdetection.ContainerDefenseRuleProps;
ContainerDefenseRuleProps.builder()
// .description(java.lang.String)
// .description(IResolvable)
// .ruleAction(java.lang.Number)
// .ruleAction(IResolvable)
// .ruleId(java.lang.Number)
// .ruleId(IResolvable)
// .ruleName(java.lang.String)
// .ruleName(IResolvable)
// .ruleSwitch(java.lang.Number)
// .ruleSwitch(IResolvable)
// .ruleType(java.lang.Number)
// .ruleType(IResolvable)
// .scope(IResolvable)
// .scope(java.util.List<IResolvable)
// .scope(ScopeProperty>)
// .whitelist(IResolvable)
// .whitelist(WhitelistProperty)
// .whitelistHash(java.lang.String)
// .whitelistHash(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
description | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property description: Rule description. |
ruleAction | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property ruleAction: The action that is performed when the rule is hit. |
ruleId | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property ruleId: Rule Id. |
ruleName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ruleName: The name of the rule. |
ruleSwitch | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property ruleSwitch: The switch of the rule. |
ruleType | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property ruleType: The rule type. |
scope | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property scope: Rule scope. |
whitelist | com.aliyun.ros.cdk.core.IResolvable OR WhitelistProperty | Property whitelist: The whitelist of rule. |
whitelistHash | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property whitelistHash: The whitelist Hash. |
descriptionOptional
public java.lang.Object getDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: Rule description.
ruleActionOptional
public java.lang.Object getRuleAction();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property ruleAction: The action that is performed when the rule is hit.
Valid values:
- 1: alert
- 2: block.
ruleIdOptional
public java.lang.Object getRuleId();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property ruleId: Rule Id.
ruleNameOptional
public java.lang.Object getRuleName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ruleName: The name of the rule.
ruleSwitchOptional
public java.lang.Object getRuleSwitch();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property ruleSwitch: The switch of the rule.
Valid values:
- 0: off.
- 1: on.
ruleTypeOptional
public java.lang.Object getRuleType();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property ruleType: The rule type.
Value:
- 2: User Rules
scopeOptional
public java.lang.Object getScope();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
ScopeProperty>
Property scope: Rule scope.
whitelistOptional
public java.lang.Object getWhitelist();
- Type: com.aliyun.ros.cdk.core.IResolvable OR WhitelistProperty
Property whitelist: The whitelist of rule.
whitelistHashOptional
public java.lang.Object getWhitelistHash();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property whitelistHash: The whitelist Hash.