Cria um cenário de negócios para moderação de conteúdo no Aligreen.
Sintaxe
{
"Type": "ALIYUN::Aligreen::BizType",
"Properties": {
"BizTypeName": String,
"CiteTemplate": Boolean,
"BizTypeImport": String,
"Description": String,
"IndustryInfo": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
BizTypeName |
String |
Sim |
Não |
Nome do cenário de negócios. |
O nome pode conter apenas letras, sublinhados (_) e dígitos. |
|
CiteTemplate |
Boolean |
Sim |
Não |
Indica se a configuração será importada de um modelo de setor. |
Valores válidos:
Nota
Especifique IndustryInfo quando CiteTemplate for true. |
|
BizTypeImport |
String |
Não |
Não |
Nome de um cenário de negócios existente para importação. |
Nenhuma. |
|
Description |
String |
Não |
Sim |
Descrição do cenário de negócios. |
Nenhuma. |
|
IndustryInfo |
String |
Não |
Não |
Classificação do setor. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
BizTypeName: nome do cenário de negócios.
Description: descrição do cenário.
CiteTemplate: indica se a configuração foi importada de um modelo de setor.
IndustryInfo: classificação do setor.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
BizTypeName:
Type: String
Description:
en: The name of the business scenario defined by the customer. It can contain no more than 32 characters in English, numbers, and underscores.
Required: true
CiteTemplate:
Type: Boolean
Description:
en: |-
Specifies whether to import the configuration of an industry template. Default value: false. Valid values:
true: imports the configuration of an industry template.
false: does not import the configuration of an industry template. If the value is true, you must specify the industryInfo parameter.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::Aligreen::BizType
Properties:
BizTypeName:
Ref: BizTypeName
CiteTemplate:
Ref: CiteTemplate
Outputs:
BizTypeName:
Description: The name of the business scenario defined by the customer.
Value:
Fn::GetAtt:
- ExtensionResource
- BizTypeName
Description:
Description: The description of the business scenario defined by the customer.
Value:
Fn::GetAtt:
- ExtensionResource
- Description
CiteTemplate:
Description: 'Specifies whether to import the configuration of an industry template. Default value: false.'
Value:
Fn::GetAtt:
- ExtensionResource
- CiteTemplate
IndustryInfo:
Description: The industry classification.
Value:
Fn::GetAtt:
- ExtensionResource
- IndustryInfo
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"BizTypeName": {
"Type": "String",
"Description": {
"en": "The name of the business scenario defined by the customer. It can contain no more than 32 characters in English, numbers, and underscores."
},
"Required": true
},
"CiteTemplate": {
"Type": "Boolean",
"Description": {
"en": "Specifies whether to import the configuration of an industry template. Default value: false. Valid values:\ntrue: imports the configuration of an industry template.\nfalse: does not import the configuration of an industry template. If the value is true, you must specify the industryInfo parameter."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::Aligreen::BizType",
"Properties": {
"BizTypeName": {
"Ref": "BizTypeName"
},
"CiteTemplate": {
"Ref": "CiteTemplate"
}
}
}
},
"Outputs": {
"BizTypeName": {
"Description": "The name of the business scenario defined by the customer.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"BizTypeName"
]
}
},
"Description": {
"Description": "The description of the business scenario defined by the customer.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"CiteTemplate": {
"Description": "Specifies whether to import the configuration of an industry template. Default value: false.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CiteTemplate"
]
}
},
"IndustryInfo": {
"Description": "The industry classification.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"IndustryInfo"
]
}
}
}
}