DATASOURCE::PAI::WorkspaceResourceMaxCompute

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

语法

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

属性

属性名称

类型

必须

允许更新

描述

约束

GroupName

String

资源分组名。

WorkspaceId

String

工作空间 ID。

RefreshOptions

String

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

有效值:

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

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

返回值

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