AccountPrivilegeProps
Properties for defining a AccountPrivilege
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-polardb-accountprivilege
Initializer
import com.aliyun.ros.cdk.polardb.AccountPrivilegeProps;
AccountPrivilegeProps.builder()
.accountName(java.lang.String)
.accountName(IResolvable)
.accountPrivilege(java.lang.String)
.accountPrivilege(IResolvable)
.dbClusterId(java.lang.String)
.dbClusterId(IResolvable)
.dbName(java.lang.String)
.dbName(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
accountName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property accountName: The name of the database account to be granted access permissions. |
accountPrivilege |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property accountPrivilege: The permissions of the database account on the database. |
dbClusterId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbClusterId: The ID of the ApsaraDB for POLARDB cluster to which a database account belongs. |
dbName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbName: The name of the database whose access permissions are to be granted to the database account. |
accountName
Required
public java.lang.Object getAccountName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property accountName: The name of the database account to be granted access permissions.
accountPrivilege
Required
public java.lang.Object getAccountPrivilege();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property accountPrivilege: The permissions of the database account on the database.
Valid values:
- ReadWrite: has read and write permissions on the database.
- ReadOnly: has the read-only permission on the database.
- DMLOnly: runs only data manipulation language (DML) statements.
- DDLOnly: runs only data definition language (DDL) statements. The number of account permissions specified by the AccountPrivilege parameter must be the same as that of database names specified by the DBName parameter. Each account permission must correspond to a database name in sequence. Separate multiple permissions with a comma (,).
dbClusterId
Required
public java.lang.Object getDbClusterId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbClusterId: The ID of the ApsaraDB for POLARDB cluster to which a database account belongs.
dbName
Required
public java.lang.Object getDbName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbName: The name of the database whose access permissions are to be granted to the database account.
You can grant access permissions on one or more databases to the database account. Separate multiple databases with a comma (,).