Skip to content

ClientFileProtectProps

Properties for defining a ClientFileProtect.

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

Initializer

import ros_cdk_threatdetection
ros_cdk_threatdetection.ClientFileProtectProps(
  file_ops: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]],
  file_paths: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]],
  proc_paths: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]],
  rule_action: typing.Union[str, IResolvable],
  rule_name: typing.Union[str, IResolvable],
  alert_level: typing.Union[typing.Union[int, float], IResolvable] = None,
  platform: typing.Union[str, IResolvable] = None,
  status: typing.Union[typing.Union[int, float], IResolvable] = None,
  switch_id: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
file_ops typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property fileOps: The operations that you want to perform on the files.
file_paths typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property filePaths: The paths to the monitored files.
proc_paths typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property procPaths: The paths to the monitored processes.
rule_action typing.Union[str, ros_cdk_core.IResolvable] Property ruleAction: The handling method of the rule.
rule_name typing.Union[str, ros_cdk_core.IResolvable] Property ruleName: The name of the rule.
alert_level typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property alertLevel: The severity of alerts.
platform typing.Union[str, ros_cdk_core.IResolvable] Property platform: The type of the operating system.
status typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property status: Rule status.
switch_id typing.Union[str, ros_cdk_core.IResolvable] Property switchId: The switch ID of the rule.

file_opsRequired

file_ops: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

Property fileOps: The operations that you want to perform on the files.


file_pathsRequired

file_paths: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

Property filePaths: The paths to the monitored files.

Wildcard characters are supported.


proc_pathsRequired

proc_paths: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

Property procPaths: The paths to the monitored processes.


rule_actionRequired

rule_action: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property ruleAction: The handling method of the rule.

Valid values:

  • pass: allow
  • alert.

rule_nameRequired

rule_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property ruleName: The name of the rule.


alert_levelOptional

alert_level: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property alertLevel: The severity of alerts.

Valid values:

  • 0: does not generate alerts
  • 1: sends notifications
  • 2: suspicious
  • 3: high-risk.

platformOptional

platform: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property platform: The type of the operating system.

Valid values:

  • windows: Windows
  • linux: Linux.

statusOptional

status: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property status: Rule status.

1: Enabled 0: Not enabled


switch_idOptional

switch_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property switchId: The switch ID of the rule.