All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::ECD::Bundle

Last Updated:Mar 19, 2025

ALIYUN::ECD::Bundle is used to create a custom cloud computer template.

Syntax

{
  "Type": "ALIYUN::ECD::Bundle",
  "Properties": {
    "Description": String,
    "RootDiskSizeGib": Integer,
    "Language": String,
    "RootDiskPerformanceLevel": String,
    "DesktopType": String,
    "BundleName": String,
    "ImageId": String,
    "UserDiskPerformanceLevel": String,
    "UserDiskSizeGib": List
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

Description

String

No

Yes

The description of the cloud computer template.

None.

RootDiskSizeGib

Integer

Yes

No

The size of the system disk.

Unit: GiB.

The value of this property must be consistent with the system disk size supported by the cloud computer type. For more information, see Cloud computer types.

Language

String

No

Yes

The language of the operating system.

This property supports only system images.

Valid values:

  • zh-CN: Simplified Chinese.

  • zh-HK: Traditional Chinese.

  • en-US: English.

  • ja-JP: Japanese.

RootDiskPerformanceLevel

String

No

No

The performance level (PL) of the system disk.

You can specify this property when the cloud computer type is Graphics or High Frequency.

Valid values:

  • PL0

  • PL1

  • PL2

  • PL3

For more information about the differences between disks of different PLs, see ESSDs.

DesktopType

String

Yes

No

The cloud computer type.

You can call the DescribeBundles operation to query cloud computer templates and check the value of the DesktopType parameter to obtain the supported cloud computer type.

Note

You can select GPU-accelerated cloud computer types only when you use GPU-accelerated images.

BundleName

String

No

Yes

The name of the cloud computer template.

None.

ImageId

String

Yes

Yes

The ID of the image.

None.

UserDiskPerformanceLevel

String

No

No

The PL of the data disk.

You can specify this property when the cloud computer type is Graphics or High Frequency.

Valid values:

  • PL0

  • PL1

  • PL2

  • PL3

For more information about the differences between disks of different PLs, see ESSDs.

UserDiskSizeGib

List

Yes

No

The size of the data disk.

You can configure only one data disk. Unit: GiB.

The value of this property must be consistent with the data disk size supported by the cloud computer type. For more information, see Cloud computer types.

Note

The data disk size specified in the template must be greater than the data disk size contained in the image.

Return values

Fn::GetAtt

BundleId: the ID of the cloud computer template.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RootDiskSizeGib:
    Type: Number
    Description: The root disk size gib.
    Default: 40
  DesktopType:
    Type: String
    Description: |-
      Desktop specifications.You can call Describundles to query the desktop bundle and get the currently supported desktop specification from the returned desktopType.
      Explain that ordinary mirrors cannot choose the GPU specifications, and the GPU type mirror can only choose the GPU specification.
    Default: eds.enterprise_office.8c8g
  ImageId:
    Type: String
    Description: The ID of the image.
    Default: desktopimage-windows-server-2019-64-ch-asp
  UserDiskSizeGib:
    Type: Json
    Description: |-
      The size of the data disk. Currently, only one data disk can be set. Unit: GiB.
      - The size of the data disk that supports the setting corresponds to the specification.
      - The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
    MaxLength: 1
    Default:
      - 40
Resources:
  Bundle:
    Type: ALIYUN::ECD::Bundle
    Properties:
      RootDiskSizeGib:
        Ref: RootDiskSizeGib
      DesktopType:
        Ref: DesktopType
      ImageId:
        Ref: ImageId
      UserDiskSizeGib:
        Ref: UserDiskSizeGib
Outputs:
  BundleId:
    Description: Desktop bundle ID.
    Value:
      Fn::GetAtt:
        - Bundle
        - BundleId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RootDiskSizeGib": {
      "Type": "Number",
      "Description": "The root disk size gib.",
      "Default": 40
    },
    "DesktopType": {
      "Type": "String",
      "Description": "Desktop specifications.You can call Describundles to query the desktop bundle and get the currently supported desktop specification from the returned desktopType.\nExplain that ordinary mirrors cannot choose the GPU specifications, and the GPU type mirror can only choose the GPU specification.",
      "Default": "eds.enterprise_office.8c8g"
    },
    "ImageId": {
      "Type": "String",
      "Description": "The ID of the image.",
      "Default": "desktopimage-windows-server-2019-64-ch-asp"
    },
    "UserDiskSizeGib": {
      "Type": "Json",
      "Description": "The size of the data disk. Currently, only one data disk can be set. Unit: GiB.\n- The size of the data disk that supports the setting corresponds to the specification.\n- The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.",
      "MaxLength": 1,
      "Default": [40]
    }
  },
  "Resources": {
    "Bundle": {
      "Type": "ALIYUN::ECD::Bundle",
      "Properties": {
        "RootDiskSizeGib": {
          "Ref": "RootDiskSizeGib"
        },
        "DesktopType": {
          "Ref": "DesktopType"
        },
        "ImageId": {
          "Ref": "ImageId"
        },
        "UserDiskSizeGib": {
          "Ref": "UserDiskSizeGib"
        }
      }
    }
  },
  "Outputs": {
    "BundleId": {
      "Description": "Desktop bundle ID.",
      "Value": {
        "Fn::GetAtt": [
          "Bundle",
          "BundleId"
        ]
      }
    }
  }
}