Skip to content

ImageEventOperationProps

Properties for defining a ImageEventOperation.

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

Initializer

import ros_cdk_threatdetection
ros_cdk_threatdetection.ImageEventOperationProps(
  conditions: typing.Union[IResolvable, typing.Mapping[typing.Any]],
  event_type: typing.Union[str, IResolvable],
  operation_code: typing.Union[str, IResolvable],
  event_key: typing.Union[str, IResolvable] = None,
  event_name: typing.Union[str, IResolvable] = None,
  note: typing.Union[str, IResolvable] = None,
  scenarios: typing.Union[IResolvable, typing.Mapping[typing.Any]] = None,
  source: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
conditions typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] Property conditions: The rule conditions.
event_type typing.Union[str, ros_cdk_core.IResolvable] Property eventType: Image Event Type.
operation_code typing.Union[str, ros_cdk_core.IResolvable] Property operationCode: Event Operation Code.
event_key typing.Union[str, ros_cdk_core.IResolvable] Property eventKey: The keyword of the alert item.
event_name typing.Union[str, ros_cdk_core.IResolvable] Property eventName: The name of the alert item.
note typing.Union[str, ros_cdk_core.IResolvable] Property note: The remarks that you want to add.
scenarios typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] Property scenarios: The application scope of the rule.
source typing.Union[str, ros_cdk_core.IResolvable] Property source: The source of the whitelist.

conditionsRequired

conditions: typing.Union[IResolvable, typing.Mapping[typing.Any]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]

Property conditions: The rule conditions.

Specify a value in the JSON format. You can specify the following keys:

  • condition: the matching condition.
  • type: the matching type.
  • value: the matching value.

event_typeRequired

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

Property eventType: Image Event Type.


operation_codeRequired

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

Property operationCode: Event Operation Code.


event_keyOptional

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

Property eventKey: The keyword of the alert item.


event_nameOptional

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

Property eventName: The name of the alert item.


noteOptional

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

Property note: The remarks that you want to add.


scenariosOptional

scenarios: typing.Union[IResolvable, typing.Mapping[typing.Any]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]

Property scenarios: The application scope of the rule.

The value is in the JSON format. Valid values of keys: type value Example: {"type": "repo", "value": "test-aaa/shenzhen-repo-01"}


sourceOptional

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

Property source: The source of the whitelist.

Valid values:

  • default: image.
  • agentless: agentless detection.