O recurso ALIYUN::ICE::Category cria uma categoria de ativos de mídia.
Sintaxe
{
"Type": "ALIYUN::ICE::Category",
"Properties": {
"CateName": String,
"ParentId": Integer,
"Type": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
CateName |
String |
Sim |
Sim |
Nome da categoria. |
|
|
ParentId |
Integer |
Não |
Não |
ID da categoria pai. |
Nenhuma. |
|
Type |
String |
Não |
Não |
Tipo da categoria. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
ParentId: ID da categoria pai.
Level: nível da categoria.
CateId: ID da categoria criada.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
CateName:
Type: String
Description:
en: |-
The category name.
The value can be up to 64 bytes in length.
The value must be encoded in UTF-8.
Required: true
Default: test_category
Resources:
Category:
Type: ALIYUN::ICE::Category
Properties:
CateName:
Ref: CateName
Outputs:
ParentId:
Description: The ID of the parent category.
Value:
Fn::GetAtt:
- Category
- ParentId
Level:
Description: The level of the category. The primary classification level is 0, the secondary classification level is 1, and the tertiary classification level is 2.
Value:
Fn::GetAtt:
- Category
- Level
CateId:
Description: The ID of the category.
Value:
Fn::GetAtt:
- Category
- CateId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"CateName": {
"Type": "String",
"Description": {
"en": "The category name.\nThe value can be up to 64 bytes in length.\nThe value must be encoded in UTF-8."
},
"Required": true,
"Default": "test_category"
}
},
"Resources": {
"Category": {
"Type": "ALIYUN::ICE::Category",
"Properties": {
"CateName": {
"Ref": "CateName"
}
}
}
},
"Outputs": {
"ParentId": {
"Description": "The ID of the parent category.",
"Value": {
"Fn::GetAtt": [
"Category",
"ParentId"
]
}
},
"Level": {
"Description": "The level of the category. The primary classification level is 0, the secondary classification level is 1, and the tertiary classification level is 2.",
"Value": {
"Fn::GetAtt": [
"Category",
"Level"
]
}
},
"CateId": {
"Description": "The ID of the category.",
"Value": {
"Fn::GetAtt": [
"Category",
"CateId"
]
}
}
}
}