AccountProps
Properties for defining a Account
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-rds-account
Initializer
import { AccountProps } from '@alicloud/ros-cdk-rds'
const accountProps: AccountProps = { ... }
Properties
Name | Type | Description |
---|---|---|
accountName |
string | @alicloud/ros-cdk-core.IResolvable |
Property accountName: Account name, which must be unique and meet the following requirements: Start with a letter; |
accountPassword |
string | @alicloud/ros-cdk-core.IResolvable |
Property accountPassword: The account password for the database instance. |
dbInstanceId |
string | @alicloud/ros-cdk-core.IResolvable |
Property dbInstanceId: RDS instance ID. |
accountDescription |
string | @alicloud/ros-cdk-core.IResolvable |
Property accountDescription: Account remarks. |
accountType |
string | @alicloud/ros-cdk-core.IResolvable |
Property accountType: Privilege type of account. |
accountName
Required
public readonly accountName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property accountName: Account name, which must be unique and meet the following requirements: Start with a letter;
Consist of lower-case letters, digits, and underscores (_); Length: MySQL 8.0 and 5.7: 2-32 characters. MySQL 5.6ćMariaDB and PostgreSQL Local version: 2-16 characters. SQL Server: 2-64 characters. PostgreSQL Cloud version: 2-63 characters.
accountPassword
Required
public readonly accountPassword: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property accountPassword: The account password for the database instance.
It may consist of letters, digits, or underlines, with a length of 8 to 32 characters.
dbInstanceId
Required
public readonly dbInstanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property dbInstanceId: RDS instance ID.
accountDescription
Optional
public readonly accountDescription: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property accountDescription: Account remarks.
It cannot begin with http:\/\/ or https:\/\/. It must start with a Chinese character or English letter. It can include Chinese and English characters\/letters, underscores (_), hyphens (-), and digits. The length may be 2-256 characters.
accountType
Optional
public readonly accountType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property accountType: Privilege type of account.
Normal: Common privilege. Super: High privilege. And the default value is Normal. Sysadmin: Super privileges (SA) (only supported by SQL Server) This parameter is valid for MySQL 5.5\/5.6 only. MySQL 5.7, SQL Server 2012\/2016, PostgreSQL, and PPAS each can have only one initial account. Other accounts are created by the initial account that has logged on to the database.