Skip to content

AccountProps

Properties for defining a Account.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-account

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkredis"
&alicloudroscdkredis.AccountProps {
    AccountName: interface{},
    AccountPassword: interface{},
    InstanceId: interface{},
    AccountDescription: interface{},
    AccountPrivilege: interface{},
    AccountType: interface{},
}

Properties

Name Type Description
AccountName interface{} Property accountName: The name of the account.
AccountPassword interface{} Property accountPassword: The password of the account.
InstanceId interface{} Property instanceId: The ID of the instance for which you want to create the account.
AccountDescription interface{} Property accountDescription: The description of the account.
AccountPrivilege interface{} Property accountPrivilege: The permission of the account.
AccountType interface{} Property accountType: The type of the account.

AccountNameRequired

AccountName interface{}
  • Type: interface{}

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.


AccountPasswordRequired

AccountPassword interface{}
  • Type: interface{}

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 (=).


InstanceIdRequired

InstanceId interface{}
  • Type: interface{}

Property instanceId: The ID of the instance for which you want to create the account.


AccountDescriptionOptional

AccountDescription interface{}
  • Type: interface{}

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.


AccountPrivilegeOptional

AccountPrivilege interface{}
  • Type: interface{}

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.


AccountTypeOptional

AccountType interface{}
  • Type: interface{}

Property accountType: The type of the account.

Set this parameter to Normal.