Skip to content

KeywordLibProps

Properties for defining a KeywordLib.

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

Initializer

import ros_cdk_aligreen
ros_cdk_aligreen.KeywordLibProps(
  keyword_lib_name: typing.Union[str, IResolvable],
  resource_type: typing.Union[str, IResolvable],
  biz_types: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
  category: typing.Union[str, IResolvable] = None,
  enable: typing.Union[bool, IResolvable] = None,
  language: typing.Union[str, IResolvable] = None,
  lib_type: typing.Union[str, IResolvable] = None,
  match_mode: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
keyword_lib_name typing.Union[str, ros_cdk_core.IResolvable] Property keywordLibName: The name of the keyword library defined by the customer.
resource_type typing.Union[str, ros_cdk_core.IResolvable] Property resourceType: The moderation scenario to which the text library applies.
biz_types typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property bizTypes: The business scenario.
category typing.Union[str, ros_cdk_core.IResolvable] Property category: The category of the text library.
enable typing.Union[bool, ros_cdk_core.IResolvable] Property enable: Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
language typing.Union[str, ros_cdk_core.IResolvable] Property language: Language used by the text Library.
lib_type typing.Union[str, ros_cdk_core.IResolvable] Property libType: The category of the text library in each moderation scenario.
match_mode typing.Union[str, ros_cdk_core.IResolvable] Property matchMode: The matching method.

keyword_lib_nameRequired

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

Property keywordLibName: The name of the keyword library defined by the customer.

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


resource_typeRequired

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

Property resourceType: The moderation scenario to which the text library applies.

Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam.


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: The business scenario.

Example:["bizTypeA","bizTypeB"].


categoryOptional

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

Property category: The category of the text library.

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


enableOptional

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

Property enable: Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.


languageOptional

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

Property language: Language used by the text Library.

Example: zh:Chinese、en:English


lib_typeOptional

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

Property libType: The category of the text library in each moderation scenario.

Valid values: textKeyword: a text library against which terms in text are matched. similarText: a text library against which text patterns are matched. voiceText: a text library against which terms converted from audio are matched.


match_modeOptional

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

Property matchMode: The matching method.

Valid values:fuzzy: fuzzy match precise: exact match.