CreateAssetModelRequest

Amazon Web ServicesAsset ManagementIndustrial IoTIoTTime Series Data

Properties

Name Type Description
assetModelName string A unique name for the asset model.
assetModelType string The type of asset model. ASSET_MODEL – (default) An asset model that you can use to create assets. Can't be included as a component in another asset model. COMPONENT_MODEL – A reusable component that
assetModelId string The ID to assign to the asset model, 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, yo
assetModelExternalId string An external ID to assign to the asset model. 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.
assetModelDescription string A description for the asset model.
assetModelProperties array The 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
assetModelHierarchies array The 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 hi
assetModelCompositeModels array 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
clientToken string 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.
tags object A list of key-value pairs that contain metadata for the asset model. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.
View JSON Schema on GitHub

JSON Schema

amazon-iot-sitewise-create-asset-model-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-create-asset-model-request-schema.json",
  "title": "CreateAssetModelRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-asset-models-api-openapi.yml#/components/schemas/CreateAssetModelRequest",
  "type": "object",
  "properties": {
    "assetModelName": {
      "type": "string",
      "description": "A unique name for the asset model."
    },
    "assetModelType": {
      "type": "string",
      "enum": [
        "ASSET_MODEL",
        "COMPONENT_MODEL",
        "INTERFACE"
      ],
      "description": "The type of asset model. ASSET_MODEL – (default) An asset model that you can use to create assets. Can't be included as a component in another asset model. COMPONENT_MODEL – A reusable component that you can include in the composite models of other asset models. You can't create assets directly from this type of asset model."
    },
    "assetModelId": {
      "type": "string",
      "description": "The ID to assign to the asset model, 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."
    },
    "assetModelExternalId": {
      "type": "string",
      "description": "An external ID to assign to the asset model. 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."
    },
    "assetModelDescription": {
      "type": "string",
      "description": "A description for the asset model."
    },
    "assetModelProperties": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AssetModelPropertyDefinition"
      },
      "description": "The 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": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AssetModelHierarchyDefinition"
      },
      "description": "The 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": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AssetModelCompositeModelDefinition"
      },
      "description": "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": {
      "type": "string",
      "description": "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."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A list of key-value pairs that contain metadata for the asset model. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide."
    }
  },
  "required": [
    "assetModelName"
  ],
  "$defs": {
    "AssetModelCompositeModelDefinition": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID to assign to the composite model, 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."
        },
        "externalId": {
          "type": "string",
          "description": "An external ID to assign to the composite model. The external ID must be unique among composite models within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide."
        },
        "name": {
          "type": "string",
          "description": "The name of the composite model."
        },
        "description": {
          "type": "string",
          "description": "The description of the composite model."
        },
        "type": {
          "type": "string",
          "description": "The type of the composite model. For alarm composite models, this type is AWS/ALARM."
        },
        "properties": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AssetModelPropertyDefinition"
          },
          "description": "The asset property definitions for this composite model."
        }
      },
      "required": [
        "name",
        "type"
      ]
    },
    "AssetModelHierarchyDefinition": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID to assign to the asset model hierarchy, 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."
        },
        "externalId": {
          "type": "string",
          "description": "An external ID to assign to the asset model hierarchy. The external ID must be unique among asset model hierarchies within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide."
        },
        "name": {
          "type": "string",
          "description": "The name of the asset model hierarchy definition (as specified in the CreateAssetModel or UpdateAssetModel API operation)."
        },
        "childAssetModelId": {
          "type": "string",
          "description": "The ID of an asset model for this hierarchy. 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."
        }
      },
      "required": [
        "name",
        "childAssetModelId"
      ]
    },
    "AssetModelPropertyDefinition": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "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."
        },
        "externalId": {
          "type": "string",
          "description": "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."
        },
        "name": {
          "type": "string",
          "description": "The name of the property definition."
        },
        "dataType": {
          "type": "string",
          "enum": [
            "STRING",
            "INTEGER",
            "DOUBLE",
            "BOOLEAN",
            "STRUCT",
            "VIDEO",
            "ANNOTATION",
            "JSON"
          ],
          "description": "The data type of the property definition. The VIDEO, ANNOTATION, and JSON data types aren't supported for asset model properties. These types are used only by time series that store data for datasets in a workspace. If you specify STRUCT, you must also specify dataTypeSpec to identify the type of the structure for this property."
        },
        "dataTypeSpec": {
          "type": "string",
          "description": "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."
        },
        "unit": {
          "type": "string",
          "description": "The unit of the property definition, such as Newtons or RPM."
        },
        "type": {
          "$ref": "#/$defs/PropertyType"
        }
      },
      "required": [
        "name",
        "dataType",
        "type"
      ]
    },
    "AssetModelPropertyPathSegment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the path segment."
        },
        "name": {
          "type": "string",
          "description": "The name of the path segment."
        }
      }
    },
    "Attribute": {
      "type": "object",
      "properties": {
        "defaultValue": {
          "type": "string",
          "description": "The default value of the asset model property attribute. All assets that you create from the asset model contain this attribute value. You can update an attribute's value after you create an asset. For more information, see Updating attribute values in the IoT SiteWise User Guide."
        }
      }
    },
    "ExpressionVariable": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The friendly name of the variable to be used in the expression."
        },
        "value": {
          "$ref": "#/$defs/VariableValue"
        }
      },
      "required": [
        "name",
        "value"
      ]
    },
    "ForwardingConfig": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "DISABLED",
            "ENABLED"
          ],
          "description": "The forwarding state for the given property."
        }
      },
      "required": [
        "state"
      ]
    },
    "Measurement": {
      "type": "object",
      "properties": {
        "processingConfig": {
          "$ref": "#/$defs/MeasurementProcessingConfig"
        }
      }
    },
    "MeasurementProcessingConfig": {
      "type": "object",
      "properties": {
        "forwardingConfig": {
          "$ref": "#/$defs/ForwardingConfig"
        }
      },
      "required": [
        "forwardingConfig"
      ]
    },
    "Metric": {
      "type": "object",
      "properties": {
        "expression": {
          "type": "string",
          "description": "The mathematical expression that defines the metric aggregation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression. For more information, see Quotas in the IoT SiteWise User Guide."
        },
        "variables": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExpressionVariable"
          },
          "description": "The list of variables used in the expression."
        },
        "window": {
          "$ref": "#/$defs/MetricWindow"
        },
        "processingConfig": {
          "$ref": "#/$defs/MetricProcessingConfig"
        }
      },
      "required": [
        "window"
      ]
    },
    "MetricProcessingConfig": {
      "type": "object",
      "properties": {
        "computeLocation": {
          "type": "string",
          "enum": [
            "EDGE",
            "CLOUD"
          ],
          "description": "The compute location for the given metric property."
        }
      },
      "required": [
        "computeLocation"
      ]
    },
    "MetricWindow": {
      "type": "object",
      "properties": {
        "tumbling": {
          "$ref": "#/$defs/TumblingWindow"
        }
      }
    },
    "PropertyType": {
      "type": "object",
      "properties": {
        "attribute": {
          "$ref": "#/$defs/Attribute"
        },
        "measurement": {
          "$ref": "#/$defs/Measurement"
        },
        "transform": {
          "$ref": "#/$defs/Transform"
        },
        "metric": {
          "$ref": "#/$defs/Metric"
        }
      }
    },
    "Transform": {
      "type": "object",
      "properties": {
        "expression": {
          "type": "string",
          "description": "The mathematical expression that defines the transformation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression. For more information, see Quotas in the IoT SiteWise User Guide."
        },
        "variables": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExpressionVariable"
          },
          "description": "The list of variables used in the expression."
        },
        "processingConfig": {
          "$ref": "#/$defs/TransformProcessingConfig"
        }
      },
      "required": [
        "expression",
        "variables"
      ]
    },
    "TransformProcessingConfig": {
      "type": "object",
      "properties": {
        "computeLocation": {
          "type": "string",
          "enum": [
            "EDGE",
            "CLOUD"
          ],
          "description": "The compute location for the given transform property."
        },
        "forwardingConfig": {
          "$ref": "#/$defs/ForwardingConfig"
        }
      },
      "required": [
        "computeLocation"
      ]
    },
    "TumblingWindow": {
      "type": "object",
      "properties": {
        "interval": {
          "type": "string",
          "description": "The time interval for the tumbling window. The interval time must be between 1 minute and 1 week. IoT SiteWise computes the 1w interval the end of Sunday at midnight each week (UTC), the 1d interval at the end of each day at midnight (UTC), the 1h interval at the end of each hour, and so on. When IoT SiteWise aggregates data points for metric computations, the start of each interval is exclusive and the end of each interval is inclusive. IoT SiteWise places the computed data point at the end of the interval."
        },
        "offset": {
          "type": "string",
          "description": "The offset for the tumbling window. The offset parameter accepts the following: The offset time. For example, if you specify 18h for offset and 1d for interval, IoT SiteWise aggregates data in one of the following ways: If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric. If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day. The ISO 8601 format. For example, if you specify PT18H for offset and 1d for interval, IoT SiteWise aggregates data in one of the fo"
        }
      },
      "required": [
        "interval"
      ]
    },
    "VariableValue": {
      "type": "object",
      "properties": {
        "propertyId": {
          "type": "string",
          "description": "The ID of the property to use as the variable. You can use the property name if it's from the same asset model. If the property has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide."
        },
        "hierarchyId": {
          "type": "string",
          "description": "The ID of the hierarchy to query for the property ID. You can use the hierarchy's name instead of the hierarchy's ID. If the hierarchy has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide. You use a hierarchy ID instead of a model ID because you can have several hierarchies using the same model and therefore the same propertyId. For example, you might have separately grouped assets that come from the same asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide."
        },
        "propertyPath": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AssetModelPropertyPathSegment"
          },
          "description": "The path of the property."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-iot-sitewise-create-asset-model-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.