AccountProps
Properties for defining a Account
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-account
Initializer
import com.aliyun.ros.cdk.redis.AccountProps;
AccountProps.builder()
.accountName(java.lang.String)
.accountName(IResolvable)
.accountPassword(java.lang.String)
.accountPassword(IResolvable)
.instanceId(java.lang.String)
.instanceId(IResolvable)
// .accountDescription(java.lang.String)
// .accountDescription(IResolvable)
// .accountPrivilege(java.lang.String)
// .accountPrivilege(IResolvable)
// .accountType(java.lang.String)
// .accountType(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
accountName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property accountName: The name of the account. |
accountPassword |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property accountPassword: The password of the account. |
instanceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceId: The ID of the instance for which you want to create the account. |
accountDescription |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property accountDescription: The description of the account. |
accountPrivilege |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property accountPrivilege: The permission of the account. |
accountType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property accountType: The type of the 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 account.
The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_). The name can be 1 to 16 characters in length.
accountPassword
Required
public java.lang.Object getAccountPassword();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property accountPassword: The password of the account.
The password can be 8 to 32 characters in length and must contain at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! at signs (@), number signs (#), dollar signs ($), percent signs (%), carets (^), ampersands (&), asterisks (*), parentheses (()), underscores (_), plus signs (+), hyphens (-), and equal signs (=).
instanceId
Required
public java.lang.Object getInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceId: The ID of the instance for which you want to create the account.
accountDescription
Optional
public java.lang.Object getAccountDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property accountDescription: The description of the account.
The description must start with a letter, and cannot start with http:// or https://. The description can contain letters, underscores (_), hyphens (-), and digits. It can be 2 to 256 characters in length.
accountPrivilege
Optional
public java.lang.Object getAccountPrivilege();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property accountPrivilege: The permission of the account.
Valid values: RoleReadOnly RoleReadWrite (default value) RoleRepl Note In addition to reading data from and writing data to the ApsaraDB for Redis instance, an account with the RoleRepl permission can run the SYNC and PSYNC commands. The RoleRepl permission can be granted to an account only in an ApsaraDB for Redis instance of the standard edition in Redis 4.0.
accountType
Optional
public java.lang.Object getAccountType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property accountType: The type of the account.
Set this parameter to Normal.