Module Values.DisconnectUserRequestSource

Disconnects all connections using a specified user ID from a room. This replicates the DisconnectUser WebSocket operation in the Amazon IVS Chat Messaging API.

Sourcetype nonrec t = {
  1. roomIdentifier : RoomIdentifier.t;
    (*

    Identifier of the room from which the user's clients should be disconnected. Currently this must be an ARN.

    *)
  2. userId : UserID.t;
    (*

    ID of the user (connection) to disconnect from the room.

    *)
  3. reason : Reason.t option;
    (*

    Reason for disconnecting the user.

    *)
}
Sourceval context_ : string
Sourceval make : ?reason:??? -> roomIdentifier:RoomIdentifier.t -> userId:UserID.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of RoomIdentifier.t ]) 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