DATASOURCE::ECS::HpcCluster

DATASOURCE::ECS::HpcCluster类型用于查询单个HPC集群。

语法

{
  "Type": "DATASOURCE::ECS::HpcCluster",
  "Properties": {
    "HpcClusterId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

HpcClusterId

String

HPC 集群 ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • Description:HPC 集群的描述。

  • HpcClusterId:HPC 集群 ID。

  • HpcClusterName:HPC 集群的名称。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  HpcClusterId:
    Type: String
    Description:
      en: The ID of cluster.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::ECS::HpcCluster
    Properties:
      HpcClusterId:
        Ref: HpcClusterId
Outputs:
  Description:
    Description: The description of the HPC cluster.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  HpcClusterId:
    Description: The ID of cluster.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - HpcClusterId
  HpcClusterName:
    Description: The name of the HPC cluster.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - HpcClusterName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "HpcClusterId": {
      "Type": "String",
      "Description": {
        "en": "The ID of cluster."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::ECS::HpcCluster",
      "Properties": {
        "HpcClusterId": {
          "Ref": "HpcClusterId"
        }
      }
    }
  },
  "Outputs": {
    "Description": {
      "Description": "The description of the HPC cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "HpcClusterId": {
      "Description": "The ID of cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "HpcClusterId"
        ]
      }
    },
    "HpcClusterName": {
      "Description": "The name of the HPC cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "HpcClusterName"
        ]
      }
    }
  }
}