AccountProps
Properties for defining a Account.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-account
Initializer
import ros_cdk_redis
ros_cdk_redis.AccountProps(
account_name: typing.Union[str, IResolvable],
account_password: typing.Union[str, IResolvable],
instance_id: typing.Union[str, IResolvable],
account_description: typing.Union[str, IResolvable] = None,
account_privilege: typing.Union[str, IResolvable] = None,
account_type: typing.Union[str, IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
account_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property accountName: The name of the account. |
account_password |
typing.Union[str, ros_cdk_core.IResolvable] |
Property accountPassword: The password of the account. |
instance_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property instanceId: The ID of the instance for which you want to create the account. |
account_description |
typing.Union[str, ros_cdk_core.IResolvable] |
Property accountDescription: The description of the account. |
account_privilege |
typing.Union[str, ros_cdk_core.IResolvable] |
Property accountPrivilege: The permission of the account. |
account_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property accountType: The type of the account. |
account_nameRequired
account_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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.
account_passwordRequired
account_password: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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 (=).
instance_idRequired
instance_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property instanceId: The ID of the instance for which you want to create the account.
account_descriptionOptional
account_description: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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.
account_privilegeOptional
account_privilege: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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.
account_typeOptional
account_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property accountType: The type of the account.
Set this parameter to Normal.