Cria uma biblioteca de texto personalizada para moderação de conteúdo.
Sintaxe
{
"Type": "ALIYUN::Aligreen::KeywordLib",
"Properties": {
"KeywordLibName": String,
"ResourceType": String,
"BizTypes": List,
"Category": String,
"Enable": Boolean,
"Language": String,
"LibType": String,
"MatchMode": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
KeywordLibName |
String |
Sim |
Sim |
Nome da biblioteca de texto. |
Nenhuma. |
|
ResourceType |
String |
Sim |
Não |
Cenário de moderação da biblioteca de texto. |
Valores válidos:
|
|
BizTypes |
List |
Não |
Sim |
Cenários de negócios. |
Para mais informações, consulte CreateBizType. |
|
Category |
String |
Não |
Não |
Categoria da biblioteca de texto. |
Valores válidos:
|
|
Enable |
Boolean |
Não |
Sim |
Indica se a biblioteca de texto está ativada. |
Valores válidos:
|
|
Language |
String |
Não |
Não |
Idioma da biblioteca de texto. |
Valores válidos:
|
|
LibType |
String |
Não |
Não |
Categoria da biblioteca de texto por cenário de moderação. |
Valores válidos:
|
|
MatchMode |
String |
Não |
Não |
Modo de correspondência. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
MatchMode: modo de correspondência.
Category: categoria da biblioteca de texto.
Language: idioma da biblioteca de texto.
BizTypes: cenários de negócios.
Enable: indica se a biblioteca de texto está ativada.
ResourceType: cenário de moderação da biblioteca de texto.
LibType: categoria da biblioteca de texto por cenário de moderação.
KeywordLibId: ID da biblioteca de texto.
KeywordLibName: nome da biblioteca de texto.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ResourceType:
Type: String
Description:
en: 'The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam.IMAGE: ad violation detection.VOICE: audio anti-spam.'
AllowedValues:
- TEXT
- IMAGE
- VOICE
Required: true
KeywordLibName:
Type: String
Description:
en: The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_).
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::Aligreen::KeywordLib
Properties:
ResourceType:
Ref: ResourceType
KeywordLibName:
Ref: KeywordLibName
Outputs:
MatchMode:
Description: The matching method.
Value:
Fn::GetAtt:
- ExtensionResource
- MatchMode
Category:
Description: The category of the text library.
Value:
Fn::GetAtt:
- ExtensionResource
- Category
Language:
Description: Language used by the text Library.
Value:
Fn::GetAtt:
- ExtensionResource
- Language
BizTypes:
Description: The business scenario.
Value:
Fn::GetAtt:
- ExtensionResource
- BizTypes
Enable:
Description: Specifies whether to enable text library.
Value:
Fn::GetAtt:
- ExtensionResource
- Enable
ResourceType:
Description: The moderation scenario to which the text library applies.
Value:
Fn::GetAtt:
- ExtensionResource
- ResourceType
LibType:
Description: The category of the text library in each moderation scenario.
Value:
Fn::GetAtt:
- ExtensionResource
- LibType
KeywordLibId:
Description: The ID of the primary key of the keyword library.
Value:
Fn::GetAtt:
- ExtensionResource
- KeywordLibId
KeywordLibName:
Description: The name of the keyword library defined by the customer.
Value:
Fn::GetAtt:
- ExtensionResource
- KeywordLibName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ResourceType": {
"Type": "String",
"Description": {
"en": "The moderation scenario to which the text library applies. Valid values:TEXT: text anti-spam.IMAGE: ad violation detection.VOICE: audio anti-spam."
},
"AllowedValues": [
"TEXT",
"IMAGE",
"VOICE"
],
"Required": true
},
"KeywordLibName": {
"Type": "String",
"Description": {
"en": "The name of the keyword library defined by the customer. It can contain no more than 20 characters in Chinese, English, and underscore (_)."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::Aligreen::KeywordLib",
"Properties": {
"ResourceType": {
"Ref": "ResourceType"
},
"KeywordLibName": {
"Ref": "KeywordLibName"
}
}
}
},
"Outputs": {
"MatchMode": {
"Description": "The matching method.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"MatchMode"
]
}
},
"Category": {
"Description": "The category of the text library.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Category"
]
}
},
"Language": {
"Description": "Language used by the text Library.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Language"
]
}
},
"BizTypes": {
"Description": "The business scenario.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"BizTypes"
]
}
},
"Enable": {
"Description": "Specifies whether to enable text library.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Enable"
]
}
},
"ResourceType": {
"Description": "The moderation scenario to which the text library applies.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceType"
]
}
},
"LibType": {
"Description": "The category of the text library in each moderation scenario.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"LibType"
]
}
},
"KeywordLibId": {
"Description": "The ID of the primary key of the keyword library.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"KeywordLibId"
]
}
},
"KeywordLibName": {
"Description": "The name of the keyword library defined by the customer.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"KeywordLibName"
]
}
}
}
}