Module Values.CreateAssetRequestSource

Creates an asset from an existing asset model. For more information, see Creating assets in the IoT SiteWise User Guide.

Sourcetype nonrec t = {
  1. assetName : Name.t;
    (*

    A friendly name for the asset.

    *)
  2. assetModelId : CustomID.t;
    (*

    The ID of the asset model from which to create the asset. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.

    *)
  3. assetId : ID.t option;
    (*

    The ID to assign to the asset, 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.

    *)
  4. assetExternalId : ExternalId.t option;
    (*

    An external ID to assign to the asset. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.

    *)
  5. clientToken : ClientToken.t option;
    (*

    A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

    *)
  6. tags : TagMap.t option;
    (*

    A list of key-value pairs that contain metadata for the asset. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.

    *)
  7. assetDescription : Description.t option;
    (*

    A description for the asset.

    *)
}
Sourceval context_ : string
Sourceval make : ?assetId:??? -> ?assetExternalId:??? -> ?clientToken:??? -> ?tags:??? -> ?assetDescription:??? -> assetName:Name.t -> assetModelId:CustomID.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) list | `String of Name.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