すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::ICE::Category

最終更新日:Mar 17, 2025

ALIYUN::ICE::Category は、メディアアセットカテゴリを作成するために使用されます。

構文

{
  "Type": "ALIYUN::ICE::Category",
  "Properties": {
    "CateName": String,
    "ParentId": Integer,
    "Type": String
  }
}

プロパティ

プロパティ

必須

編集可能

説明

制約

CateName

String

はい

はい

カテゴリの名前。

  • 名前は最大 64 バイトです。

  • UTF-8 でエンコードする必要があります。

ParentId

Integer

いいえ

いいえ

親カテゴリの ID。

なし。

Type

String

いいえ

いいえ

カテゴリのタイプ。

有効な値:

  • default (デフォルト): オーディオ、ビデオ、画像

  • material: ショートビデオの素材

戻り値

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"
        ]
      }
    }
  }
}