DATASOURCE::PAI::WorkspaceResourceMaxComputes

DATASOURCE::PAI::WorkspaceResourceMaxComputes类型用于获取工作空间内已关联的云原生大数据计算服务 MaxCompute资源列表。

语法

{
  "Type": "DATASOURCE::PAI::WorkspaceResourceMaxComputes",
  "Properties": {
    "WorkspaceId": String,
    "GroupName": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

WorkspaceId

String

工作空间 ID。

GroupName

String

资源分组名。

RefreshOptions

String

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

有效值:

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

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

返回值

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"
        ]
      }
    }
  }
}