DATASOURCE::PAI::WorkspaceResourceDlc类型用于获取PAI工作空间内已关联的单个DlC资源详情。
语法
{
"Type": "DATASOURCE::PAI::WorkspaceResourceDlc",
"Properties": {
"GroupName": String,
"WorkspaceId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
GroupName | String | 是 | 是 | 资源分组名。 | 无 |
WorkspaceId | String | 是 | 是 | PAI工作空间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::WorkspaceResourceDlc
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::WorkspaceResourceDlc",
"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"
]
}
}
}
}