O recurso ALIYUN::ADBLake::ResourceGroupAccountBinding associa um grupo de recursos a uma conta de banco de dados.
Sintaxe
{
"Type": "ALIYUN::ADBLake::ResourceGroupAccountBinding",
"Properties": {
"AccountName": String,
"DBClusterId": String,
"GroupName": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
AccountName |
String |
Sim |
Sim |
Conta de banco de dados para vincular ao grupo de recursos. Aceita contas padrão e privilegiadas. |
Nenhuma. |
|
DBClusterId |
String |
Sim |
Não |
ID do cluster. |
Nenhuma. |
|
GroupName |
String |
Sim |
Não |
Nome do grupo de recursos. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
GroupName: nome do grupo de recursos.
Exemplos
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"
]
}
}
}
}