O recurso ALIYUN::DataWorks::ResourceGroupRelation associa um grupo de recursos a um workspace.
Sintaxe
{
"Type": "ALIYUN::DataWorks::ResourceGroupRelation",
"Properties": {
"ProjectId": Integer,
"ResourceGroupId": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
ProjectId |
Integer |
Sim |
Não |
ID do workspace ao qual associar o grupo de recursos. |
Nenhuma. |
|
ResourceGroupId |
String |
Sim |
Não |
ID do grupo de recursos. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
Nenhum.
Exemplos
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"
}
}
}
}
}