Values.UpdateAssetModelRequestSourceUpdates an asset model and all of the assets that were created from the model. Each asset created from the model inherits the updated asset model's property and hierarchy definitions. For more information, see Updating assets and models in the IoT SiteWise User Guide. If you remove a property from an asset model, IoT SiteWise deletes all previous data for that property. You can’t change the type or data type of an existing property. To replace an existing asset model property with a new one with the same name, do the following: Submit an UpdateAssetModel request with the entire existing property removed. Submit a second UpdateAssetModel request that includes the new property. The new asset property will have the same name as the previous one and IoT SiteWise will generate a new unique id.
type nonrec t = {assetModelId : CustomID.t;The ID of the asset model to update. 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.
*)assetModelExternalId : ExternalId.t option;An external ID to assign to the asset model. The asset model must not already have an external ID. 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.
*)assetModelName : Name.t;A unique name for the asset model.
*)assetModelDescription : Description.t option;A description for the asset model.
*)assetModelProperties : AssetModelProperties.t option;The updated property definitions of the asset model. For more information, see Asset properties in the IoT SiteWise User Guide. You can specify up to 200 properties per asset model. For more information, see Quotas in the IoT SiteWise User Guide.
*)assetModelHierarchies : AssetModelHierarchies.t option;The updated hierarchy definitions of the asset model. Each hierarchy specifies an asset model whose assets can be children of any other assets created from this asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide. You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the IoT SiteWise User Guide.
*)assetModelCompositeModels : AssetModelCompositeModels.t option;The composite models that are part of this asset model. It groups properties (such as attributes, measurements, transforms, and metrics) and child composite models that model parts of your industrial equipment. Each composite model has a type that defines the properties that the composite model supports. Use composite models to define alarms on this asset model. When creating custom composite models, you need to use CreateAssetModelCompositeModel. For more information, see Creating custom composite models (Components) in the IoT SiteWise User Guide.
*)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.
*)ifMatch : ETag.t option;The expected current entity tag (ETag) for the asset model’s latest or active version (specified using matchForVersionType). The update request is rejected if the tag does not match the latest or active version's current entity tag. See Optimistic locking for asset model writes in the IoT SiteWise User Guide.
*)ifNoneMatch : SelectAll.t option;Accepts * to reject the update request if an active version (specified using matchForVersionType as ACTIVE) already exists for the asset model.
*)matchForVersionType : AssetModelVersionType.t option;Specifies the asset model version type (LATEST or ACTIVE) used in conjunction with If-Match or If-None-Match headers to determine the target ETag for the update operation.
*)}val make :
?assetModelExternalId:??? ->
?assetModelDescription:??? ->
?assetModelProperties:??? ->
?assetModelHierarchies:??? ->
?assetModelCompositeModels:??? ->
?clientToken:??? ->
?ifMatch:??? ->
?ifNoneMatch:??? ->
?matchForVersionType:??? ->
assetModelId:CustomID.t ->
assetModelName:Name.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string * [> `String of ID.t ]) list ]
list
| `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 ]
list
| `String of CustomID.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 ]
list
| `String of CustomID.t ])
list ]