ALIYUN::ACS::VirtualCapacityReservation

ALIYUN::ACS::VirtualCapacityReservation类型用于创建容量预留任务。

语法

{
  "Type": "ALIYUN::ACS::VirtualCapacityReservation",
  "Properties": {
    "PodPostpaidSpec": Map
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

PodPostpaidSpec

Map

后付费Pod规格详情。

更多详情,请参考PodPostpaidSpec属性

PodPostpaidSpec语法

"PodPostpaidSpec": {
  "GpuQuantityConfigs": Map,
  "CpuCore": Integer,
  "MemGib": Integer,
  "Replicas": Integer
}

PodPostpaidSpec属性

属性名称

类型

必须

允许更新

描述

约束

CpuCore

Integer

CPU内核数。

GpuQuantityConfigs

Map

GPU规格模块。

更多信息,请参考GpuQuantityConfigs属性

MemGib

Integer

GPU的内存大小。

Replicas

Integer

副本的数量。

GpuQuantityConfigs语法

"GpuQuantityConfigs": {
  "GpuModel": String,
  "ComputeQos": String,
  "Arch": String,
  "GpuQuantity": Integer
}

GpuQuantityConfigs属性

属性名称

类型

必须

允许更新

描述

约束

Arch

String

GPU的架构。

ComputeQos

String

GPU计算的QoS。

取值:

  • default

  • best-effort

GpuModel

String

GPU型号类型。

GpuQuantity

Integer

GPU的数量。

返回值

Fn::GetAtt

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  PodPostpaidSpec:
    AssociationPropertyMetadata:
      Parameters:
        GpuQuantityConfigs:
          AssociationPropertyMetadata:
            Parameters:
              GpuModel:
                Type: String
                Description:
                  en: The GPU model type.
                Required: false
              ComputeQos:
                Type: String
                Description:
                  en: The QoS of the GPU compute.
                AllowedValues:
                  - default
                  - best-effort
                Required: false
              Arch:
                Type: String
                Description:
                  en: The architecture of the GPU.
                Required: false
              GpuQuantity:
                Type: Number
                Description:
                  en: The number of GPUs.
                Required: false
                MinValue: 1
          Type: Json
          Description:
            en: The GPU spec module.
          Required: false
        CpuCore:
          Type: Number
          Description:
            en: The number of CPU cores.
          Required: false
          MinValue: 1
        MemGib:
          Type: Number
          Description:
            en: The memory size of the GPU.
          Required: false
          MinValue: 1
        Replicas:
          Type: Number
          Description:
            en: The number of the replicas.
          Required: false
          MinValue: 1
    Type: Json
    Description:
      en: Postpaid pod spec for inquiry.
    Required: false
Resources:
  VirtualCapacityReservation:
    Type: ALIYUN::ACS::VirtualCapacityReservation
    Properties:
      PodPostpaidSpec:
        Ref: PodPostpaidSpec
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "PodPostpaidSpec": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "GpuQuantityConfigs": {
            "AssociationPropertyMetadata": {
              "Parameters": {
                "GpuModel": {
                  "Type": "String",
                  "Description": {
                    "en": "The GPU model type."
                  },
                  "Required": false
                },
                "ComputeQos": {
                  "Type": "String",
                  "Description": {
                    "en": "The QoS of the GPU compute."
                  },
                  "AllowedValues": [
                    "default",
                    "best-effort"
                  ],
                  "Required": false
                },
                "Arch": {
                  "Type": "String",
                  "Description": {
                    "en": "The architecture of the GPU."
                  },
                  "Required": false
                },
                "GpuQuantity": {
                  "Type": "Number",
                  "Description": {
                    "en": "The number of GPUs."
                  },
                  "Required": false,
                  "MinValue": 1
                }
              }
            },
            "Type": "Json",
            "Description": {
              "en": "The GPU spec module."
            },
            "Required": false
          },
          "CpuCore": {
            "Type": "Number",
            "Description": {
              "en": "The number of CPU cores."
            },
            "Required": false,
            "MinValue": 1
          },
          "MemGib": {
            "Type": "Number",
            "Description": {
              "en": "The memory size of the GPU."
            },
            "Required": false,
            "MinValue": 1
          },
          "Replicas": {
            "Type": "Number",
            "Description": {
              "en": "The number of the replicas."
            },
            "Required": false,
            "MinValue": 1
          }
        }
      },
      "Type": "Json",
      "Description": {
        "en": "Postpaid pod spec for inquiry."
      },
      "Required": false
    }
  },
  "Resources": {
    "VirtualCapacityReservation": {
      "Type": "ALIYUN::ACS::VirtualCapacityReservation",
      "Properties": {
        "PodPostpaidSpec": {
          "Ref": "PodPostpaidSpec"
        }
      }
    }
  }
}