DATASOURCE::ECS::HpcCluster类型用于查询单个HPC集群。
语法
{
"Type": "DATASOURCE::ECS::HpcCluster",
"Properties": {
"HpcClusterId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
HpcClusterId | String | 是 | 是 | HPC 集群 ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
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"
]
}
}
}
}
文档内容是否对您有帮助?