Skip to content

AccountPrivilegeProps

Properties for defining a AccountPrivilege.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-polardb-accountprivilege

Initializer

import ros_cdk_polardb
ros_cdk_polardb.AccountPrivilegeProps(
  account_name: typing.Union[str, IResolvable],
  account_privilege: typing.Union[str, IResolvable],
  db_cluster_id: typing.Union[str, IResolvable],
  db_name: typing.Union[str, IResolvable]
)

Properties

Name Type Description
account_name typing.Union[str, ros_cdk_core.IResolvable] Property accountName: The name of the database account to be granted access permissions.
account_privilege typing.Union[str, ros_cdk_core.IResolvable] Property accountPrivilege: The permissions of the database account on the database.
db_cluster_id typing.Union[str, ros_cdk_core.IResolvable] Property dbClusterId: The ID of the ApsaraDB for POLARDB cluster to which a database account belongs.
db_name typing.Union[str, ros_cdk_core.IResolvable] Property dbName: The name of the database whose access permissions are to be granted to the database account.

account_nameRequired

account_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property accountName: The name of the database account to be granted access permissions.


account_privilegeRequired

account_privilege: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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 (,).

db_cluster_idRequired

db_cluster_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property dbClusterId: The ID of the ApsaraDB for POLARDB cluster to which a database account belongs.


db_nameRequired

db_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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 (,).