ALIYUN::RDS::AccountPrivilege is used to grant database access permissions to accounts.
Statement
{
"Type": "ALIYUN::RDS::AccountPrivilege",
"Properties": {
"AccountPrivilege": String,
"DBInstanceId": String,
"DBName": String,
"AccountName": String
}
}
Properties
Parameter | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
AccountPrivilege | String | No | Yes | The permissions of the database account. | Valid values:
|
DBInstanceId | String | No | No | The ID of the RDS instance. | None |
DBName | String | No | No | The name of the database. | None |
AccountName | String | No | No | The name of the account. | Valid values: 1025 to 10000. You cannot use the following commonly used port numbers: 2222, 4500, 4510, 4560, 7505, 9000, 9001, and 9002. |
Response parameters
Fn::GetAtt
None
Sample request
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "DBInstanceId": { "Type": "String", "AssociationProperty": "ALIYUN::RDS::Instance::InstanceId" } }, "Resources": { "AccountPrivilege": { "Type": "ALIYUN::RDS::AccountPrivilege", "Properties": { "AccountPrivilege": "ReadOnly", "DBInstanceId": { "Ref": "DBInstanceId" }, "DBName": "dev", "AccountName": "DBUser" } } }, "Outputs": {} }