{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-put-asset-model-interface-relationship-response-schema.json",
  "title": "PutAssetModelInterfaceRelationshipResponse",
  "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/PutAssetModelInterfaceRelationshipResponse",
  "type": "object",
  "properties": {
    "assetModelId": {
      "type": "string",
      "description": "The ID of the asset model."
    },
    "interfaceAssetModelId": {
      "type": "string",
      "description": "The ID of the interface asset model."
    },
    "assetModelArn": {
      "type": "string",
      "description": "The ARN of the asset model, which has the following format. arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId}"
    },
    "assetModelStatus": {
      "$ref": "#/$defs/AssetModelStatus"
    }
  },
  "required": [
    "assetModelId",
    "interfaceAssetModelId",
    "assetModelArn",
    "assetModelStatus"
  ],
  "$defs": {
    "AssetModelStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "CREATING",
            "ACTIVE",
            "UPDATING",
            "PROPAGATING",
            "DELETING",
            "FAILED"
          ],
          "description": "The current state of the asset model."
        },
        "error": {
          "$ref": "#/$defs/ErrorDetails"
        }
      },
      "required": [
        "state"
      ]
    },
    "DetailedError": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "INCOMPATIBLE_COMPUTE_LOCATION",
            "INCOMPATIBLE_FORWARDING_CONFIGURATION"
          ],
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        }
      },
      "required": [
        "code",
        "message"
      ]
    },
    "ErrorDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "VALIDATION_ERROR",
            "INTERNAL_FAILURE"
          ],
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DetailedError"
          },
          "description": "A list of detailed errors."
        }
      },
      "required": [
        "code",
        "message"
      ]
    }
  }
}