Module Values.CreateUserMessageSource

For Valkey engine version 7.2 onwards and Redis OSS 6.0 to 7.1: Creates a user. For more information, see Using Role Based Access Control (RBAC).

Sourcetype nonrec t = {
  1. userId : UserId.t;
    (*

    The ID of the user. This value is stored as a lowercase string.

    *)
  2. userName : UserName.t;
    (*

    The username of the user.

    *)
  3. engine : EngineType.t;
    (*

    The options are valkey or redis.

    *)
  4. passwords : PasswordListInput.t option;
    (*

    Passwords used for this user. You can create up to two passwords for each user.

    *)
  5. accessString : AccessString.t;
    (*

    Access permissions string used for this user.

    *)
  6. noPasswordRequired : BooleanOptional.t option;
    (*

    Indicates a password is not required for this user.

    *)
  7. tags : TagList.t option;
    (*

    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.

    *)
  8. authenticationMode : AuthenticationMode.t option;
    (*

    Specifies how to authenticate the user.

    *)
}
Sourceval context_ : string
Sourceval make : ?passwords:??? -> ?noPasswordRequired:??? -> ?tags:??? -> ?authenticationMode:??? -> userId:UserId.t -> userName:UserName.t -> engine:EngineType.t -> accessString:AccessString.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of BooleanOptional.t | `List of [> `String of String_.t | `Structure of (string * [> `String of String_.t ]) list ] list | `String of UserId.t | `Structure of (string * [> `Enum of string | `List of [> `String of String_.t ] list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t