Module Values_0.ThingPrincipalObjectSource

An object that represents the principal and the type of relation it has with the thing.

Sourcetype nonrec t = {
  1. principal : Principal.t option;
    (*

    The principal of the thing principal object.

    *)
  2. thingPrincipalType : ThingPrincipalType.t option;
    (*

    The type of the relation you want to specify when you attach a principal to a thing. The value defaults to NON_EXCLUSIVE_THING. EXCLUSIVE_THING - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal. NON_EXCLUSIVE_THING - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.

    *)
}
Sourceval make : ?principal:??? -> ?thingPrincipalType:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of Principal.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