ALIYUN::DataWorks::ResourceGroupRelation is used to associate a resource group with a workspace.
Syntax
{
"Type": "ALIYUN::DataWorks::ResourceGroupRelation",
"Properties": {
"ProjectId": Integer,
"ResourceGroupId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
ProjectId | Integer | Yes | No | The ID of the workspace with which you want to associate the resource group. | None. |
ResourceGroupId | String | Yes | No | The ID of the resource group. | None. |
Return values
Fn::GetAtt
None.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ResourceGroupId:
AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
Type: String
Description:
en: Unique ID of resource group
Required: true
ProjectId:
Type: Number
Description:
en: Workspace ID to bind
Required: true
Resources:
ResourceGroupRelation:
Type: ALIYUN::DataWorks::ResourceGroupRelation
Properties:
ResourceGroupId:
Ref: ResourceGroupId
ProjectId:
Ref: ProjectId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ResourceGroupId": {
"AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
"Type": "String",
"Description": {
"en": "Unique ID of resource group"
},
"Required": true
},
"ProjectId": {
"Type": "Number",
"Description": {
"en": "Workspace ID to bind"
},
"Required": true
}
},
"Resources": {
"ResourceGroupRelation": {
"Type": "ALIYUN::DataWorks::ResourceGroupRelation",
"Properties": {
"ResourceGroupId": {
"Ref": "ResourceGroupId"
},
"ProjectId": {
"Ref": "ProjectId"
}
}
}
}
}