1. Packages
  2. Alicloud Provider
  3. API Docs
  4. aligreen
  5. KeywordLib
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.aligreen.KeywordLib

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform";
    const _default = new random.index.Integer("default", {
        min: 10000,
        max: 99999,
    });
    const defaultMn8sVK = new alicloud.aligreen.BizType("defaultMn8sVK", {
        bizTypeName: `${name}${_default.result}`,
        citeTemplate: true,
        industryInfo: "社交-注册信息-昵称",
    });
    const defaultKeywordLib = new alicloud.aligreen.KeywordLib("default", {
        category: "BLACK",
        resourceType: "TEXT",
        libType: "textKeyword",
        keywordLibName: name,
        matchMode: "fuzzy",
        language: "cn",
        bizTypes: ["example_007"],
        lang: "cn",
        enable: true,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform"
    default = random.index.Integer("default",
        min=10000,
        max=99999)
    default_mn8s_vk = alicloud.aligreen.BizType("defaultMn8sVK",
        biz_type_name=f"{name}{default['result']}",
        cite_template=True,
        industry_info="社交-注册信息-昵称")
    default_keyword_lib = alicloud.aligreen.KeywordLib("default",
        category="BLACK",
        resource_type="TEXT",
        lib_type="textKeyword",
        keyword_lib_name=name,
        match_mode="fuzzy",
        language="cn",
        biz_types=["example_007"],
        lang="cn",
        enable=True)
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/aligreen"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
    			Min: 10000,
    			Max: 99999,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = aligreen.NewBizType(ctx, "defaultMn8sVK", &aligreen.BizTypeArgs{
    			BizTypeName:  pulumi.Sprintf("%v%v", name, _default.Result),
    			CiteTemplate: pulumi.Bool(true),
    			IndustryInfo: pulumi.String("社交-注册信息-昵称"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = aligreen.NewKeywordLib(ctx, "default", &aligreen.KeywordLibArgs{
    			Category:       pulumi.String("BLACK"),
    			ResourceType:   pulumi.String("TEXT"),
    			LibType:        pulumi.String("textKeyword"),
    			KeywordLibName: pulumi.String(name),
    			MatchMode:      pulumi.String("fuzzy"),
    			Language:       pulumi.String("cn"),
    			BizTypes: pulumi.StringArray{
    				pulumi.String("example_007"),
    			},
    			Lang:   pulumi.String("cn"),
    			Enable: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform";
        var @default = new Random.Index.Integer("default", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var defaultMn8sVK = new AliCloud.Aligreen.BizType("defaultMn8sVK", new()
        {
            BizTypeName = $"{name}{@default.Result}",
            CiteTemplate = true,
            IndustryInfo = "社交-注册信息-昵称",
        });
    
        var defaultKeywordLib = new AliCloud.Aligreen.KeywordLib("default", new()
        {
            Category = "BLACK",
            ResourceType = "TEXT",
            LibType = "textKeyword",
            KeywordLibName = name,
            MatchMode = "fuzzy",
            Language = "cn",
            BizTypes = new[]
            {
                "example_007",
            },
            Lang = "cn",
            Enable = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.integer;
    import com.pulumi.random.IntegerArgs;
    import com.pulumi.alicloud.aligreen.BizType;
    import com.pulumi.alicloud.aligreen.BizTypeArgs;
    import com.pulumi.alicloud.aligreen.KeywordLib;
    import com.pulumi.alicloud.aligreen.KeywordLibArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform");
            var default_ = new Integer("default", IntegerArgs.builder()
                .min(10000)
                .max(99999)
                .build());
    
            var defaultMn8sVK = new BizType("defaultMn8sVK", BizTypeArgs.builder()
                .bizTypeName(String.format("%s%s", name,default_.result()))
                .citeTemplate(true)
                .industryInfo("社交-注册信息-昵称")
                .build());
    
            var defaultKeywordLib = new KeywordLib("defaultKeywordLib", KeywordLibArgs.builder()
                .category("BLACK")
                .resourceType("TEXT")
                .libType("textKeyword")
                .keywordLibName(name)
                .matchMode("fuzzy")
                .language("cn")
                .bizTypes("example_007")
                .lang("cn")
                .enable(true)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform
    resources:
      default:
        type: random:integer
        properties:
          min: 10000
          max: 99999
      defaultMn8sVK:
        type: alicloud:aligreen:BizType
        properties:
          bizTypeName: ${name}${default.result}
          citeTemplate: true
          industryInfo: 社交-注册信息-昵称
      defaultKeywordLib:
        type: alicloud:aligreen:KeywordLib
        name: default
        properties:
          category: BLACK
          resourceType: TEXT
          libType: textKeyword
          keywordLibName: ${name}
          matchMode: fuzzy
          language: cn
          bizTypes:
            - example_007
          lang: cn
          enable: true
    

    Create KeywordLib Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new KeywordLib(name: string, args: KeywordLibArgs, opts?: CustomResourceOptions);
    @overload
    def KeywordLib(resource_name: str,
                   args: KeywordLibArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def KeywordLib(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   keyword_lib_name: Optional[str] = None,
                   resource_type: Optional[str] = None,
                   biz_types: Optional[Sequence[str]] = None,
                   category: Optional[str] = None,
                   enable: Optional[bool] = None,
                   lang: Optional[str] = None,
                   language: Optional[str] = None,
                   lib_type: Optional[str] = None,
                   match_mode: Optional[str] = None)
    func NewKeywordLib(ctx *Context, name string, args KeywordLibArgs, opts ...ResourceOption) (*KeywordLib, error)
    public KeywordLib(string name, KeywordLibArgs args, CustomResourceOptions? opts = null)
    public KeywordLib(String name, KeywordLibArgs args)
    public KeywordLib(String name, KeywordLibArgs args, CustomResourceOptions options)
    
    type: alicloud:aligreen:KeywordLib
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args KeywordLibArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args KeywordLibArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args KeywordLibArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args KeywordLibArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args KeywordLibArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var keywordLibResource = new AliCloud.Aligreen.KeywordLib("keywordLibResource", new()
    {
        KeywordLibName = "string",
        ResourceType = "string",
        BizTypes = new[]
        {
            "string",
        },
        Category = "string",
        Enable = false,
        Lang = "string",
        Language = "string",
        LibType = "string",
        MatchMode = "string",
    });
    
    example, err := aligreen.NewKeywordLib(ctx, "keywordLibResource", &aligreen.KeywordLibArgs{
    	KeywordLibName: pulumi.String("string"),
    	ResourceType:   pulumi.String("string"),
    	BizTypes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Category:  pulumi.String("string"),
    	Enable:    pulumi.Bool(false),
    	Lang:      pulumi.String("string"),
    	Language:  pulumi.String("string"),
    	LibType:   pulumi.String("string"),
    	MatchMode: pulumi.String("string"),
    })
    
    var keywordLibResource = new KeywordLib("keywordLibResource", KeywordLibArgs.builder()
        .keywordLibName("string")
        .resourceType("string")
        .bizTypes("string")
        .category("string")
        .enable(false)
        .lang("string")
        .language("string")
        .libType("string")
        .matchMode("string")
        .build());
    
    keyword_lib_resource = alicloud.aligreen.KeywordLib("keywordLibResource",
        keyword_lib_name="string",
        resource_type="string",
        biz_types=["string"],
        category="string",
        enable=False,
        lang="string",
        language="string",
        lib_type="string",
        match_mode="string")
    
    const keywordLibResource = new alicloud.aligreen.KeywordLib("keywordLibResource", {
        keywordLibName: "string",
        resourceType: "string",
        bizTypes: ["string"],
        category: "string",
        enable: false,
        lang: "string",
        language: "string",
        libType: "string",
        matchMode: "string",
    });
    
    type: alicloud:aligreen:KeywordLib
    properties:
        bizTypes:
            - string
        category: string
        enable: false
        keywordLibName: string
        lang: string
        language: string
        libType: string
        matchMode: string
        resourceType: string
    

    KeywordLib Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The KeywordLib resource accepts the following input properties:

    KeywordLibName string
    The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).
    ResourceType string
    The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam
    BizTypes List<string>
    The business scenario. Example:["bizTypeA","bizTypeB"]
    Category string
    The category of the text library. Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list
    Enable bool
    Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
    Lang string
    Language.
    Language string
    Language used by the text Library
    LibType string
    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.
    MatchMode string
    The matching method. Valid values:fuzzy: fuzzy match precise: exact match
    KeywordLibName string
    The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).
    ResourceType string
    The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam
    BizTypes []string
    The business scenario. Example:["bizTypeA","bizTypeB"]
    Category string
    The category of the text library. Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list
    Enable bool
    Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
    Lang string
    Language.
    Language string
    Language used by the text Library
    LibType string
    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.
    MatchMode string
    The matching method. Valid values:fuzzy: fuzzy match precise: exact match
    keywordLibName String
    The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).
    resourceType String
    The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam
    bizTypes List<String>
    The business scenario. Example:["bizTypeA","bizTypeB"]
    category String
    The category of the text library. Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list
    enable Boolean
    Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
    lang String
    Language.
    language String
    Language used by the text Library
    libType String
    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.
    matchMode String
    The matching method. Valid values:fuzzy: fuzzy match precise: exact match
    keywordLibName string
    The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).
    resourceType string
    The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam
    bizTypes string[]
    The business scenario. Example:["bizTypeA","bizTypeB"]
    category string
    The category of the text library. Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list
    enable boolean
    Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
    lang string
    Language.
    language string
    Language used by the text Library
    libType string
    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.
    matchMode string
    The matching method. Valid values:fuzzy: fuzzy match precise: exact match
    keyword_lib_name str
    The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).
    resource_type str
    The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam
    biz_types Sequence[str]
    The business scenario. Example:["bizTypeA","bizTypeB"]
    category str
    The category of the text library. Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list
    enable bool
    Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
    lang str
    Language.
    language str
    Language used by the text Library
    lib_type str
    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 str
    The matching method. Valid values:fuzzy: fuzzy match precise: exact match
    keywordLibName String
    The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).
    resourceType String
    The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam
    bizTypes List<String>
    The business scenario. Example:["bizTypeA","bizTypeB"]
    category String
    The category of the text library. Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list
    enable Boolean
    Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
    lang String
    Language.
    language String
    Language used by the text Library
    libType String
    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.
    matchMode String
    The matching method. Valid values:fuzzy: fuzzy match precise: exact match

    Outputs

    All input properties are implicitly available as output properties. Additionally, the KeywordLib resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing KeywordLib Resource

    Get an existing KeywordLib resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: KeywordLibState, opts?: CustomResourceOptions): KeywordLib
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            biz_types: Optional[Sequence[str]] = None,
            category: Optional[str] = None,
            enable: Optional[bool] = None,
            keyword_lib_name: Optional[str] = None,
            lang: Optional[str] = None,
            language: Optional[str] = None,
            lib_type: Optional[str] = None,
            match_mode: Optional[str] = None,
            resource_type: Optional[str] = None) -> KeywordLib
    func GetKeywordLib(ctx *Context, name string, id IDInput, state *KeywordLibState, opts ...ResourceOption) (*KeywordLib, error)
    public static KeywordLib Get(string name, Input<string> id, KeywordLibState? state, CustomResourceOptions? opts = null)
    public static KeywordLib get(String name, Output<String> id, KeywordLibState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BizTypes List<string>
    The business scenario. Example:["bizTypeA","bizTypeB"]
    Category string
    The category of the text library. Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list
    Enable bool
    Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
    KeywordLibName string
    The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).
    Lang string
    Language.
    Language string
    Language used by the text Library
    LibType string
    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.
    MatchMode string
    The matching method. Valid values:fuzzy: fuzzy match precise: exact match
    ResourceType string
    The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam
    BizTypes []string
    The business scenario. Example:["bizTypeA","bizTypeB"]
    Category string
    The category of the text library. Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list
    Enable bool
    Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
    KeywordLibName string
    The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).
    Lang string
    Language.
    Language string
    Language used by the text Library
    LibType string
    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.
    MatchMode string
    The matching method. Valid values:fuzzy: fuzzy match precise: exact match
    ResourceType string
    The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam
    bizTypes List<String>
    The business scenario. Example:["bizTypeA","bizTypeB"]
    category String
    The category of the text library. Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list
    enable Boolean
    Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
    keywordLibName String
    The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).
    lang String
    Language.
    language String
    Language used by the text Library
    libType String
    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.
    matchMode String
    The matching method. Valid values:fuzzy: fuzzy match precise: exact match
    resourceType String
    The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam
    bizTypes string[]
    The business scenario. Example:["bizTypeA","bizTypeB"]
    category string
    The category of the text library. Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list
    enable boolean
    Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
    keywordLibName string
    The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).
    lang string
    Language.
    language string
    Language used by the text Library
    libType string
    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.
    matchMode string
    The matching method. Valid values:fuzzy: fuzzy match precise: exact match
    resourceType string
    The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam
    biz_types Sequence[str]
    The business scenario. Example:["bizTypeA","bizTypeB"]
    category str
    The category of the text library. Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list
    enable bool
    Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
    keyword_lib_name str
    The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).
    lang str
    Language.
    language str
    Language used by the text Library
    lib_type str
    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 str
    The matching method. Valid values:fuzzy: fuzzy match precise: exact match
    resource_type str
    The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam
    bizTypes List<String>
    The business scenario. Example:["bizTypeA","bizTypeB"]
    category String
    The category of the text library. Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list
    enable Boolean
    Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
    keywordLibName String
    The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).
    lang String
    Language.
    language String
    Language used by the text Library
    libType String
    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.
    matchMode String
    The matching method. Valid values:fuzzy: fuzzy match precise: exact match
    resourceType String
    The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam

    Import

    Aligreen Keyword Lib can be imported using the id, e.g.

    $ pulumi import alicloud:aligreen/keywordLib:KeywordLib example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi