ALIYUN::POLARDB::Account is used to create a database account for a specified PolarDB cluster.
Syntax
{
"Type": "ALIYUN::POLARDB::Account",
"Properties": {
"DBClusterId": String,
"AccountDescription": String,
"AccountName": String,
"AccountPrivilege": String,
"DBName": String,
"AccountType": String,
"AccountPassword": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
DBClusterId | String | Yes | No | The ID of the cluster. | None |
AccountDescription | String | No | Yes | The description of the database account. | The description must be 2 to 256 characters in length. It cannot start with |
AccountName | String | Yes | No | The name of the database account. | The name can be up to 16 characters in length and can contain lowercase letters, digits, and underscores (_). It must start with a lowercase letter. |
AccountPrivilege | String | No | No | The permissions of the database account. | Default value: ReadWrite. Valid values:
Note This parameter takes effect only when the AccountType parameter is set to Normal. |
DBName | String | No | No | The name of the database on which you want to grant permissions. | Separate multiple database names with commas (,). Note This parameter takes effect only when the AccountType parameter is set to Normal. |
AccountType | String | No | No | The type of the database account. | Default value: Super. Valid values:
|
AccountPassword | String | Yes | Yes | The password of the database account. | The password must be 8 to 32 characters in length and can contain letters, digits, and special characters. Special characters include
|
Response parameters
Fn::GetAtt
None
Examples