ALIYUN::PolarDBX::Database is used to create a 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 that the database supports. | Valid values:
|
DBInstanceId | String | Yes | No | The ID of the PolarDB-X instance. | None. |
Mode | String | No | No | The method in which you want to create the database. | 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 are used to access 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 on the database that you want to grant to the account. | Valid values:
|
AccountName | String | Yes | Yes | The username of the account that is used to access the database. | None. |
Return values
Fn::GetAtt
CharacterSetName: the character set that the database supports.
DBInstanceId: the ID of the PolarDB-X instance.
DatabaseName: the name of the database.
DatabaseDescription: the description of the database.
Accounts: the accounts that are used to access the database.