Skip to content

CycleTaskProps

Properties for defining a CycleTask.

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

Initializer

import ros_cdk_threatdetection
ros_cdk_threatdetection.CycleTaskProps(
  enable: typing.Union[typing.Union[int, float], IResolvable],
  first_date_str: typing.Union[typing.Union[int, float], IResolvable],
  interval_period: typing.Union[typing.Union[int, float], IResolvable],
  period_unit: typing.Union[str, IResolvable],
  target_end_time: typing.Union[typing.Union[int, float], IResolvable],
  target_start_time: typing.Union[typing.Union[int, float], IResolvable],
  task_name: typing.Union[str, IResolvable],
  task_type: typing.Union[str, IResolvable],
  param: typing.Union[IResolvable, typing.Mapping[typing.Any]] = None,
  source: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
enable typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property enable: Specifies whether to enable the task.
first_date_str typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property firstDateStr: The first time when the task is performed.
interval_period typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property intervalPeriod: The interval at which the task is run.
period_unit typing.Union[str, ros_cdk_core.IResolvable] Property periodUnit: The unit of the scan interval.
target_end_time typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property targetEndTime: The time when the task ends.
target_start_time typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property targetStartTime: The time when the task is started.
task_name typing.Union[str, ros_cdk_core.IResolvable] Property taskName: The task name.
task_type typing.Union[str, ros_cdk_core.IResolvable] Property taskType: The type of the task.
param typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] Property param: The additional information.
source typing.Union[str, ros_cdk_core.IResolvable] Property source: The additional source for the task.

enableRequired

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

Property enable: Specifies whether to enable the task.

Valid values:

  • 1: yes
  • 0: no.

first_date_strRequired

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

Property firstDateStr: The first time when the task is performed.


interval_periodRequired

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

Property intervalPeriod: The interval at which the task is run.


period_unitRequired

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

Property periodUnit: The unit of the scan interval.

Valid values:

  • day
  • hour.

target_end_timeRequired

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

Property targetEndTime: The time when the task ends.

Unit: hours.


target_start_timeRequired

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

Property targetStartTime: The time when the task is started.

Unit: hours.


task_nameRequired

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

Property taskName: The task name.


task_typeRequired

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

Property taskType: The type of the task.

Valid values:

  • VIRUS_VUL_SCHEDULE_SCAN: virus scan task
  • IMAGE_SCAN: image scan task
  • EMG_VUL_SCHEDULE_SCAN: urgent vulnerability scan task.

paramOptional

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

Property param: The additional information.


sourceOptional

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

Property source: The additional source for the task.