Module Values_1.CreateThingRequestSource

The input for the CreateThing operation.

Sourcetype nonrec t = {
  1. thingName : Values_0.ThingName.t;
    (*

    The name of the thing to create. You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

    *)
  2. thingTypeName : Values_0.ThingTypeName.t option;
    (*

    The name of the thing type associated with the new thing.

    *)
  3. attributePayload : Values_0.AttributePayload.t option;
    (*

    The attribute payload, which consists of up to three name/value pairs in a JSON document. For example: {\"attributes\":{\"string1\":\"string2\"}}

    *)
  4. billingGroupName : Values_0.BillingGroupName.t option;
    (*

    The name of the billing group the thing will be added to.

    *)
}
Sourceval context_ : string
Sourceval make : ?thingTypeName:??? -> ?attributePayload:??? -> ?billingGroupName:??? -> thingName:Values_0.ThingName.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of Values_0.ThingName.t | `Structure of (string * [> `Boolean of bool | `Map of ([> `String of string ] * [> `String of string ]) 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