{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-describe-asset-model-interface-relationship-response-schema.json",
  "title": "DescribeAssetModelInterfaceRelationshipResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-asset-model-interface-relationship-api-openapi.yml#/components/schemas/DescribeAssetModelInterfaceRelationshipResponse",
  "type": "object",
  "properties": {
    "assetModelId": {
      "type": "string",
      "description": "The ID of the asset model."
    },
    "interfaceAssetModelId": {
      "type": "string",
      "description": "The ID of the interface asset model."
    },
    "propertyMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PropertyMapping"
      },
      "description": "A list of property mappings between the interface asset model and the asset model where the interface is applied."
    },
    "hierarchyMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/HierarchyMapping"
      },
      "description": "A list of hierarchy mappings between the interface asset model and the asset model where the interface is applied."
    }
  },
  "required": [
    "assetModelId",
    "interfaceAssetModelId",
    "propertyMappings",
    "hierarchyMappings"
  ],
  "$defs": {
    "HierarchyMapping": {
      "type": "object",
      "properties": {
        "assetModelHierarchyId": {
          "type": "string",
          "description": "The ID of the hierarchy in the asset model where the interface is applied."
        },
        "interfaceAssetModelHierarchyId": {
          "type": "string",
          "description": "The ID of the hierarchy in the interface asset model."
        }
      },
      "required": [
        "assetModelHierarchyId",
        "interfaceAssetModelHierarchyId"
      ]
    },
    "PropertyMapping": {
      "type": "object",
      "properties": {
        "assetModelPropertyId": {
          "type": "string",
          "description": "The ID of the property in the asset model where the interface is applied."
        },
        "interfaceAssetModelPropertyId": {
          "type": "string",
          "description": "The ID of the property in the interface asset model."
        }
      },
      "required": [
        "assetModelPropertyId",
        "interfaceAssetModelPropertyId"
      ]
    }
  }
}