ALIYUN::ICE::Category は、メディアアセットカテゴリを作成するために使用されます。
構文
{
"Type": "ALIYUN::ICE::Category",
"Properties": {
"CateName": String,
"ParentId": Integer,
"Type": String
}
}プロパティ
プロパティ | 型 | 必須 | 編集可能 | 説明 | 制約 |
CateName | String | はい | はい | カテゴリの名前。 |
|
ParentId | Integer | いいえ | いいえ | 親カテゴリの ID。 | なし。 |
Type | String | いいえ | いいえ | カテゴリのタイプ。 | 有効な値:
|
戻り値
Fn::GetAtt
ParentId: 親カテゴリの ID。
Level: カテゴリのレベル。
CateId: 作成されたカテゴリの ID。
例
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: 親カテゴリの ID。
Value:
Fn::GetAtt:
- Category
- ParentId
Level:
Description: カテゴリのレベル。プライマリ分類レベルは 0、セカンダリ分類レベルは 1、ターシャリ分類レベルは 2 です。
Value:
Fn::GetAtt:
- Category
- Level
CateId:
Description: カテゴリの ID。
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": "親カテゴリの ID。",
"Value": {
"Fn::GetAtt": [
"Category",
"ParentId"
]
}
},
"Level": {
"Description": "カテゴリのレベル。プライマリ分類レベルは 0、セカンダリ分類レベルは 1、ターシャリ分類レベルは 2 です。",
"Value": {
"Fn::GetAtt": [
"Category",
"Level"
]
}
},
"CateId": {
"Description": "カテゴリの ID。",
"Value": {
"Fn::GetAtt": [
"Category",
"CateId"
]
}
}
}
}