全部产品
Search
文档中心

资源编排:ALIYUN::ECS::HpcCluster

更新时间:Apr 17, 2023

ALIYUN::ECS::HpcCluster类型用于创建一个HPC集群。

语法

{
  "Type": "ALIYUN::ECS::HpcCluster",
  "Properties": {
    "Name": String,
    "Description": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

Name

String

HPC集群名称。

  • 长度为2~128个英文或中文字符。

  • 必须以大小字母或中文开头,不能以http://https://开头。

  • 可以包含数字、下划线(_)或者连字符(-)。

Description

String

HPC集群描述。

长度为2~256个英文或中文字符,不能以http://https://开头。

返回值

Fn::GetAtt

  • HpcClusterId:集群ID。

  • Name:集群名称。

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  HpcCluster:
    Type: 'ALIYUN::ECS::HpcCluster'
    Properties:
      Name:
        Ref: Name
      Description:
        Ref: Description
Parameters:
  Name:
    Type: String
    Description: >-
      The name of the HPC cluster. The name must be 2 to 128 characters in
      length. It must

      start with a letter but cannot start with http:// or https://. It can
      contain letters,

      digits, colons (:), underscores (_), and hyphens (-).
  Description:
    Type: String
    Description: >-
      The description of the HPC cluster. The description must be 2 to 256
      characters in

      length. It cannot start with http:// or https://. Default value: empty
      string.
Outputs:
  HpcClusterId:
    Description: The ID of the HPC cluster.
    Value:
      'Fn::GetAtt':
        - HpcCluster
        - HpcClusterId
  Name:
    Description: The name of the HPC cluster.
    Value:
      'Fn::GetAtt':
        - HpcCluster
        - Name

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "HpcCluster": {
      "Type": "ALIYUN::ECS::HpcCluster",
      "Properties": {
        "Name": {
          "Ref": "Name"
        },
        "Description": {
          "Ref": "Description"
        }
      }
    }
  },
  "Parameters": {
    "Name": {
      "Type": "String",
      "Description": "The name of the HPC cluster. The name must be 2 to 128 characters in length. It must\nstart with a letter but cannot start with http:// or https://. It can contain letters,\ndigits, colons (:), underscores (_), and hyphens (-)."
    },
    "Description": {
      "Type": "String",
      "Description": "The description of the HPC cluster. The description must be 2 to 256 characters in\nlength. It cannot start with http:// or https://. Default value: empty string."
    }
  },
  "Outputs": {
    "HpcClusterId": {
      "Description": "The ID of the HPC cluster.",
      "Value": {
        "Fn::GetAtt": [
          "HpcCluster",
          "HpcClusterId"
        ]
      }
    },
    "Name": {
      "Description": "The name of the HPC cluster.",
      "Value": {
        "Fn::GetAtt": [
          "HpcCluster",
          "Name"
        ]
      }
    }
  }
}