DATASOURCE::PAI::WorkspaceResourceMaxCompute类型用于获取工作空间内已关联的单个云原生大数据计算服务 MaxCompute资源详情。
语法
{
  "Type": "DATASOURCE::PAI::WorkspaceResourceMaxCompute",
  "Properties": {
    "GroupName": String,
    "WorkspaceId": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| GroupName | String | 是 | 是 | 资源分组名。 | 无 | 
| WorkspaceId | String | 是 | 是 | 工作空间 ID。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回值
Fn::GetAtt
- IsDefault:是否为默认资源。 
- GroupName:资源分组名。 
- CreateTime:资源的创建 UTC 时间,时间格式为ISO8601。 
- Resources:资源列表。 
示例
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: true
  WorkspaceId:
    Type: String
    Description:
      en: The ID of the workspace to which the workspace belongs.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::PAI::WorkspaceResourceMaxCompute
    Properties:
      GroupName:
        Ref: GroupName
      WorkspaceId:
        Ref: WorkspaceId
Outputs:
  IsDefault:
    Description: Indicates whether it is the default resource. Currently, this parameter only supports the input of true and does not support false.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - IsDefault
  GroupName:
    Description: Resource group name. If you want to obtain a resource group name, see [ListResources].
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - GroupName
  CreateTime:
    Description: The creation time of the resource.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  Resources:
    Description: Resource List.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Resources
{
  "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": true
    },
    "WorkspaceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the workspace to which the workspace belongs."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::PAI::WorkspaceResourceMaxCompute",
      "Properties": {
        "GroupName": {
          "Ref": "GroupName"
        },
        "WorkspaceId": {
          "Ref": "WorkspaceId"
        }
      }
    }
  },
  "Outputs": {
    "IsDefault": {
      "Description": "Indicates whether it is the default resource. Currently, this parameter only supports the input of true and does not support false.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "IsDefault"
        ]
      }
    },
    "GroupName": {
      "Description": "Resource group name. If you want to obtain a resource group name, see [ListResources].",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "GroupName"
        ]
      }
    },
    "CreateTime": {
      "Description": "The creation time of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "Resources": {
      "Description": "Resource List.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Resources"
        ]
      }
    }
  }
}
                        该文章对您有帮助吗?