AccountPrivilegeProps
Properties for defining a AccountPrivilege
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-polardb-accountprivilege
Initializer
import { AccountPrivilegeProps } from '@alicloud/ros-cdk-polardb'
const accountPrivilegeProps: AccountPrivilegeProps = { ... }
Properties
Name | Type | Description |
---|---|---|
accountName |
string | @alicloud/ros-cdk-core.IResolvable |
Property accountName: The name of the database account to be granted access permissions. |
accountPrivilege |
string | @alicloud/ros-cdk-core.IResolvable |
Property accountPrivilege: The permissions of the database account on the database. |
dbClusterId |
string | @alicloud/ros-cdk-core.IResolvable |
Property dbClusterId: The ID of the ApsaraDB for POLARDB cluster to which a database account belongs. |
dbName |
string | @alicloud/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 readonly accountName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property accountName: The name of the database account to be granted access permissions.
accountPrivilege
Required
public readonly accountPrivilege: string | IResolvable;
- Type: string | @alicloud/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 readonly dbClusterId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property dbClusterId: The ID of the ApsaraDB for POLARDB cluster to which a database account belongs.
dbName
Required
public readonly dbName: string | IResolvable;
- Type: string | @alicloud/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 (,).