DATASOURCE::PAI::WorkspaceResourceMaxComputes类型用于获取工作空间内已关联的云原生大数据计算服务 MaxCompute资源列表。
语法
{
"Type": "DATASOURCE::PAI::WorkspaceResourceMaxComputes",
"Properties": {
"WorkspaceId": String,
"GroupName": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
WorkspaceId | String | 是 | 是 | 工作空间 ID。 | 无 |
GroupName | String | 否 | 是 | 资源分组名。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
GroupNames:资源分组名列表。
WorkspaceResourceMaxComputes:资源列表。
属性名称 | 类型 | 描述 | 约束 |
GroupNames | List | 资源分组名列表。 | 无 |
WorkspaceResourceDlcs | List | 资源列表。 | 无 |
IsDefault | String | 是否为默认资源。 | 无 |
GroupName | String | 资源分组名。 | 无 |
CreateTime | String | 资源的创建 UTC 时间,时间格式为 ISO8601。 | 无 |
Resources | String | 资源列表。 | 无 |
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
GroupName:
Type: String
Description:
en: Resource group name. If you want to obtain a resource group name, see [ListResources].
Required: false
WorkspaceId:
Type: String
Description:
en: The ID of the workspace to which the workspace belongs.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::PAI::WorkspaceResourceMaxComputes
Properties:
GroupName:
Ref: GroupName
WorkspaceId:
Ref: WorkspaceId
Outputs:
GroupNames:
Description: The list of group names.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GroupNames
WorkspaceResourceDlcs:
Description: The list of workspace resource dlcs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- WorkspaceResourceDlcs
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"GroupName": {
"Type": "String",
"Description": {
"en": "Resource group name. If you want to obtain a resource group name, see [ListResources]."
},
"Required": false
},
"WorkspaceId": {
"Type": "String",
"Description": {
"en": "The ID of the workspace to which the workspace belongs."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::PAI::WorkspaceResourceMaxComputes",
"Properties": {
"GroupName": {
"Ref": "GroupName"
},
"WorkspaceId": {
"Ref": "WorkspaceId"
}
}
}
},
"Outputs": {
"GroupNames": {
"Description": "The list of group names.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GroupNames"
]
}
},
"WorkspaceResourceDlcs": {
"Description": "The list of workspace resource dlcs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"WorkspaceResourceDlcs"
]
}
}
}
}