alicloud_aligreen_keyword_lib
更新时间:
Provides a Aligreen Keyword Lib resource.
Keyword library for text detection.
For information about Aligreen Keyword Lib and how to use it, see What is Keyword Lib.
-> NOTE: Available since v1.228.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform"
}
provider "alicloud" {
region = "cn-hangzhou"
}
resource "random_integer" "default" {
min = 10000
max = 99999
}
resource "alicloud_aligreen_biz_type" "defaultMn8sVK" {
biz_type_name = "${var.name}${random_integer.default.result}"
cite_template = true
industry_info = "社交-注册信息-昵称"
}
resource "alicloud_aligreen_keyword_lib" "default" {
category = "BLACK"
resource_type = "TEXT"
lib_type = "textKeyword"
keyword_lib_name = var.name
match_mode = "fuzzy"
language = "cn"
biz_types = ["example_007"]
lang = "cn"
enable = true
}
Argument Reference
The following arguments are supported:
biz_types
- (Optional, ForceNew) The business scenario. Example:["bizTypeA","bizTypeB"]category
- (Optional, ForceNew) The category of the text library. Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review listenable
- (Optional, ForceNew) Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.keyword_lib_name
- (Required) The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).lang
- (Optional) Language.language
- (Optional, ForceNew) Language used by the text Librarylib_type
- (Optional, ForceNew) 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. textKeyword: a text library against which terms extracted from images are matched. voiceText: a text library against which terms converted from audio are matched.match_mode
- (Optional, ForceNew) The matching method. Valid values:fuzzy: fuzzy match precise: exact matchresource_type
- (Required, ForceNew) The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Keyword Lib.delete
- (Defaults to 5 mins) Used when delete the Keyword Lib.update
- (Defaults to 5 mins) Used when update the Keyword Lib.
Import
Aligreen Keyword Lib can be imported using the id, e.g.
$ terraform import alicloud_aligreen_keyword_lib.example <id>
文档内容是否对您有帮助?