ALIYUN::ADBLake::ResourceGroupAccountBinding is used to associate a resource group with a database account.
Syntax
{
"Type": "ALIYUN::ADBLake::ResourceGroupAccountBinding",
"Properties": {
"AccountName": String,
"DBClusterId": String,
"GroupName": String
}
}Properties
Property | Type | Required | Editable | Description | Constraint |
AccountName | String | Yes | Yes | The database account with which you want to associate the resource group. The account can be a standard account or privileged account. | None. |
DBClusterId | String | Yes | No | The ID of the cluster. | None. |
GroupName | String | Yes | No | The name of the resource group. | None. |
Return values
Fn::GetAtt
GroupName: the name of the resource group.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
GroupName:
Type: String
Description:
en: The name of the resource group.
Required: true
AllowedPattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,254}$
MinLength: 1
MaxLength: 255
DBClusterId:
Type: String
Description:
en: The ID of the database cluster.
Required: true
AccountName:
Type: String
Description:
en: The name of the account.
Required: true
AllowedPattern: ^[a-z][a-z0-9_]{0,14}[a-z0-9]$
MinLength: 2
MaxLength: 16
Resources:
ResourceGroupAccountBinding:
Type: ALIYUN::ADBLake::ResourceGroupAccountBinding
Properties:
GroupName:
Ref: GroupName
DBClusterId:
Ref: DBClusterId
AccountName:
Ref: AccountName
Outputs:
GroupName:
Description: The name of the resource group.
Value:
Fn::GetAtt:
- ResourceGroupAccountBinding
- GroupName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"GroupName": {
"Type": "String",
"Description": {
"en": "The name of the resource group."
},
"Required": true,
"AllowedPattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,254}$",
"MinLength": 1,
"MaxLength": 255
},
"DBClusterId": {
"Type": "String",
"Description": {
"en": "The ID of the database cluster."
},
"Required": true
},
"AccountName": {
"Type": "String",
"Description": {
"en": "The name of the account."
},
"Required": true,
"AllowedPattern": "^[a-z][a-z0-9_]{0,14}[a-z0-9]$",
"MinLength": 2,
"MaxLength": 16
}
},
"Resources": {
"ResourceGroupAccountBinding": {
"Type": "ALIYUN::ADBLake::ResourceGroupAccountBinding",
"Properties": {
"GroupName": {
"Ref": "GroupName"
},
"DBClusterId": {
"Ref": "DBClusterId"
},
"AccountName": {
"Ref": "AccountName"
}
}
}
},
"Outputs": {
"GroupName": {
"Description": "The name of the resource group.",
"Value": {
"Fn::GetAtt": [
"ResourceGroupAccountBinding",
"GroupName"
]
}
}
}
}