create_user
¶
create_user(
user_name: UserName,
authentication_mode: AuthenticationMode,
access_string: AccessString,
*,
config_overrides: Optional[MemoryDBClientConfig] = None,
tags: Optional[TagList] = None,
) -> CreateUserResponse
Creates a MemoryDB user. For more information, see Authenticating users with Access Contol Lists (ACLs).
Parameters:
-
user_name(UserName) –The name of the user. This value must be unique as it also serves as the user identifier.
-
authentication_mode(AuthenticationMode) –Denotes the user's authentication properties, such as whether it requires a password to authenticate.
-
access_string(AccessString) –Access permissions string used for this user.
-
tags(Optional[TagList], default:None) –A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
Raises:
-
DuplicateUserNameFault–A user with the specified name already exists.
-
InvalidParameterCombinationException–The specified parameter combination is not valid.
-
InvalidParameterValueException–The specified parameter value is not valid.
-
TagQuotaPerResourceExceeded–The request cannot be processed because it would exceed the maximum number of tags allowed per resource.
-
UserAlreadyExistsFault–A user with the specified name already exists.
-
UserQuotaExceededFault–The request cannot be processed because it would exceed the maximum number of users allowed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_memorydb/_services/memory_db.py
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 | |