Skip to content

ImageLibProps

Properties for defining a ImageLib.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-aligreen-imagelib

Initializer

import ros_cdk_aligreen
ros_cdk_aligreen.ImageLibProps(
  category: typing.Union[str, IResolvable],
  image_lib_name: typing.Union[str, IResolvable],
  scene: typing.Union[str, IResolvable],
  biz_types: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
  enable: typing.Union[bool, IResolvable] = None
)

Properties

Name Type Description
category typing.Union[str, ros_cdk_core.IResolvable] Property category: The category of the image library.
image_lib_name typing.Union[str, ros_cdk_core.IResolvable] Property imageLibName: The name of the image library defined by the customer.
scene typing.Union[str, ros_cdk_core.IResolvable] Property scene: The moderation scenario to which the custom image library applies.
biz_types typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property bizTypes: List of business scenarios.
enable typing.Union[bool, ros_cdk_core.IResolvable] Property enable: Specifies whether to enable the image library.

categoryRequired

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

Property category: The category of the image library.

Valid values: BLACK: a blacklist, WHITE: a whitelist, REVIEW: a review list.


image_lib_nameRequired

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

Property imageLibName: The name of the image library defined by the customer.

It can contain no more than 20 characters in Chinese, English, and underscore (_).


sceneRequired

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

Property scene: The moderation scenario to which the custom image library applies.

Valid values: PORN: pornography detection, AD: ad detection, ILLEGAL: terrorist content detection.


biz_typesOptional

biz_types: 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 bizTypes: List of business scenarios.

For example: ["bizTypeA", "bizTypeB", "bizTypeC"].


enableOptional

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

Property enable: Specifies whether to enable the image library.

Valid values: true: Enable the image library. This is the default value. false: Disable the image library.