{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-describe-pipeline-response-schema.json",
  "title": "DescribePipelineResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-pipelines-api-openapi.yml#/components/schemas/DescribePipelineResponse",
  "type": "object",
  "properties": {
    "pipelineName": {
      "type": "string",
      "description": "A unique name of the pipeline within the workspace."
    },
    "workspaceName": {
      "type": "string",
      "description": "The name of the workspace."
    },
    "description": {
      "type": "string",
      "description": "The description of the pipeline."
    },
    "pipelineArn": {
      "type": "string",
      "description": "The ARN of the pipeline."
    },
    "version": {
      "type": "string",
      "description": "The version of the pipeline."
    },
    "environmentVariables": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The environment variables shared across all compute nodes in the pipeline."
    },
    "computations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ComputeNode"
      },
      "description": "The list of compute nodes that form the pipeline DAG."
    },
    "status": {
      "$ref": "#/$defs/ResourceStatus"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The time the pipeline was created, in Unix epoch time."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The time the pipeline was last updated, in Unix epoch time."
    }
  },
  "required": [
    "pipelineName",
    "workspaceName",
    "pipelineArn",
    "version",
    "computations",
    "status",
    "createdAt",
    "updatedAt"
  ],
  "$defs": {
    "ComputeNode": {
      "type": "object",
      "properties": {
        "computeNodeName": {
          "type": "string",
          "description": "The unique name for this compute node within the pipeline."
        },
        "taskName": {
          "type": "string",
          "description": "The name of the task to execute for this compute node."
        },
        "environmentVariables": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Environment variables specific to this compute node. These override pipeline-level environment variables with the same key."
        },
        "dependsOn": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of compute node names that must complete successfully before this node can start."
        }
      },
      "required": [
        "computeNodeName",
        "taskName"
      ]
    },
    "ResourceError": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "VALIDATION_ERROR",
            "INTERNAL_FAILURE"
          ],
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        }
      }
    },
    "ResourceStatus": {
      "type": "object",
      "properties": {
        "error": {
          "$ref": "#/$defs/ResourceError"
        },
        "state": {
          "type": "string",
          "enum": [
            "CREATING",
            "ACTIVE",
            "UPDATING",
            "DELETING",
            "FAILED"
          ],
          "description": "The current status of the resource."
        }
      }
    }
  }
}