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.