Creates a PolarDB-X database.
Syntax
{
"Type": "ALIYUN::PolarDBX::Database",
"Properties": {
"CharacterSetName": String,
"DBInstanceId": String,
"Mode": String,
"DatabaseName": String,
"DatabaseDescription": String,
"Accounts": List
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
CharacterSetName |
String |
Yes |
No |
The character set of the database. |
Valid values:
|
|
DBInstanceId |
String |
Yes |
No |
The ID of the PolarDB-X instance. |
None. |
|
Mode |
String |
No |
No |
The database creation mode. |
Valid values:
|
|
DatabaseName |
String |
Yes |
No |
The name of the database. |
None. |
|
DatabaseDescription |
String |
No |
Yes |
The description of the database. |
None. |
|
Accounts |
List |
Yes |
Yes |
The accounts that have access to the database. |
For more information, see Accounts properties. |
Accounts syntax
"Accounts": [
{
"AccountPrivilege": String,
"AccountName": String
}
]
Accounts properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
AccountPrivilege |
String |
Yes |
Yes |
The permissions to grant to the account on the database. |
Valid values:
|
|
AccountName |
String |
Yes |
Yes |
The username of the account. |
None. |
Return values
Fn::GetAtt
-
CharacterSetName: the character set of the database.
-
DBInstanceId: the ID of the PolarDB-X instance.
-
DatabaseName: the name of the database.
-
DatabaseDescription: the description of the database.
-
Accounts: the accounts that have access to the database.