{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-create-computation-model-response-schema.json",
  "title": "CreateComputationModelResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-computation-models-api-openapi.yml#/components/schemas/CreateComputationModelResponse",
  "type": "object",
  "properties": {
    "computationModelId": {
      "type": "string",
      "description": "The ID of the computation model."
    },
    "computationModelArn": {
      "type": "string",
      "description": "The ARN of the computation model, which has the following format. arn:${Partition}:iotsitewise:${Region}:${Account}:computation-model/${ComputationModelId}"
    },
    "computationModelStatus": {
      "$ref": "#/$defs/ComputationModelStatus"
    }
  },
  "required": [
    "computationModelId",
    "computationModelArn",
    "computationModelStatus"
  ],
  "$defs": {
    "ComputationModelStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "CREATING",
            "ACTIVE",
            "UPDATING",
            "DELETING",
            "FAILED"
          ],
          "description": "The current state of the computation 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"
      ]
    }
  }
}