ALIYUN::ECD::Bundle

更新时间:
复制 MD 格式

Creates 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

Template description.

None.

RootDiskSizeGib

Integer

Yes

No

System disk size.

Unit: GiB.

Must be a size supported by the cloud computer type. Cloud computer types.

Language

String

No

Yes

OS language.

Applies to system images only.

Valid values:

  • zh-CN: Simplified Chinese.

  • zh-HK: Traditional Chinese.

  • en-US: English.

  • ja-JP: Japanese.

RootDiskPerformanceLevel

String

No

No

System disk performance level (PL).

Available for Graphics and High Frequency types.

Valid values:

  • PL0

  • PL1

  • PL2

  • PL3

Compare disk PLs in ESSDs.

DesktopType

String

Yes

No

Cloud computer type.

Call DescribeBundles and check the DesktopType parameter for supported types.

Note

GPU-accelerated types require GPU-accelerated images.

BundleName

String

No

Yes

Template name.

None.

ImageId

String

Yes

Yes

Image ID.

None.

UserDiskPerformanceLevel

String

No

No

Data disk PL.

Available for Graphics and High Frequency types.

Valid values:

  • PL0

  • PL1

  • PL2

  • PL3

Compare disk PLs in ESSDs.

UserDiskSizeGib

List

Yes

No

Data disk size.

Supports one data disk only. Unit: GiB.

Must be a size supported by the cloud computer type. Cloud computer types.

Note

The template data disk size must exceed the image data disk size.

Return values

Fn::GetAtt

BundleId: cloud computer template ID.

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