Module Values.AssetModelPropertyDefinitionSource

Contains an asset model property definition. This property definition is applied to all assets created from the asset model.

Sourcetype nonrec t = {
  1. id : ID.t option;
    (*

    The ID to assign to the asset model property, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. However, if you prefer to supply your own ID instead, you can specify it here in UUID format. If you specify your own ID, it must be globally unique.

    *)
  2. externalId : ExternalId.t option;
    (*

    An external ID to assign to the property definition. The external ID must be unique among property definitions within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.

    *)
  3. name : Name.t;
    (*

    The name of the property definition.

    *)
  4. dataType : PropertyDataType.t;
    (*

    The data type of the property definition. If you specify STRUCT, you must also specify dataTypeSpec to identify the type of the structure for this property.

    *)
  5. dataTypeSpec : Name.t option;
    (*

    The data type of the structure for this property. This parameter is required on properties that have the STRUCT data type. The options for this parameter depend on the type of the composite model in which you define this property. Use AWS/ALARM_STATE for alarm state in alarm composite models.

    *)
  6. unit : PropertyUnit.t option;
    (*

    The unit of the property definition, such as Newtons or RPM.

    *)
  7. type_ : PropertyType.t;
    (*

    The property definition type (see PropertyType). You can only specify one type in a property definition.

    *)
}
Sourceval context_ : string
Sourceval make : ?id:??? -> ?externalId:??? -> ?dataTypeSpec:??? -> ?unit:??? -> name:Name.t -> dataType:PropertyDataType.t -> type_:PropertyType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of ID.t | `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of VariableName.t | `Structure of (string * [> `List of [> `Structure of (string * [> `String of ID.t ]) list ] list | `String of Macro.t ]) list ]) list ] list | `String of DefaultValue.t | `Structure of (string * [> `Enum of string | `Structure of (string * [> `Enum of string | `String of Interval.t ]) list ]) list ]) 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