ContainerDefenseRuleProps
Properties for defining a ContainerDefenseRule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-threatdetection-containerdefenserule
Initializer
import ros_cdk_threatdetection
ros_cdk_threatdetection.ContainerDefenseRuleProps(
description: typing.Union[str, IResolvable] = None,
rule_action: typing.Union[typing.Union[int, float], IResolvable] = None,
rule_id: typing.Union[typing.Union[int, float], IResolvable] = None,
rule_name: typing.Union[str, IResolvable] = None,
rule_switch: typing.Union[typing.Union[int, float], IResolvable] = None,
rule_type: typing.Union[typing.Union[int, float], IResolvable] = None,
scope: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ScopeProperty]]] = None,
whitelist: typing.Union[IResolvable, WhitelistProperty] = None,
whitelist_hash: typing.Union[str, IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
description | typing.Union[str, ros_cdk_core.IResolvable] | Property description: Rule description. |
rule_action | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property ruleAction: The action that is performed when the rule is hit. |
rule_id | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property ruleId: Rule Id. |
rule_name | typing.Union[str, ros_cdk_core.IResolvable] | Property ruleName: The name of the rule. |
rule_switch | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property ruleSwitch: The switch of the rule. |
rule_type | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property ruleType: The rule type. |
scope | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ScopeProperty]]] | Property scope: Rule scope. |
whitelist | typing.Union[ros_cdk_core.IResolvable, WhitelistProperty] | Property whitelist: The whitelist of rule. |
whitelist_hash | typing.Union[str, ros_cdk_core.IResolvable] | Property whitelistHash: The whitelist Hash. |
descriptionOptional
description: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property description: Rule description.
rule_actionOptional
rule_action: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property ruleAction: The action that is performed when the rule is hit.
Valid values:
- 1: alert
- 2: block.
rule_idOptional
rule_id: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property ruleId: Rule Id.
rule_nameOptional
rule_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property ruleName: The name of the rule.
rule_switchOptional
rule_switch: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property ruleSwitch: The switch of the rule.
Valid values:
- 0: off.
- 1: on.
rule_typeOptional
rule_type: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property ruleType: The rule type.
Value:
- 2: User Rules
scopeOptional
scope: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ScopeProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ScopeProperty]]]
Property scope: Rule scope.
whitelistOptional
whitelist: typing.Union[IResolvable, WhitelistProperty]
- Type: typing.Union[ros_cdk_core.IResolvable, WhitelistProperty]
Property whitelist: The whitelist of rule.
whitelist_hashOptional
whitelist_hash: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property whitelistHash: The whitelist Hash.