{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-describe-pipeline-execution-response-schema.json",
  "title": "DescribePipelineExecutionResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-executions-api-openapi.yml#/components/schemas/DescribePipelineExecutionResponse",
  "type": "object",
  "properties": {
    "pipelineExecutionId": {
      "type": "string",
      "description": "The unique identifier of the pipeline execution."
    },
    "pipelineName": {
      "type": "string",
      "description": "The name of the pipeline."
    },
    "workspaceName": {
      "type": "string",
      "description": "The name of the workspace."
    },
    "pipelineVersion": {
      "type": "string",
      "description": "The pipeline version this execution ran against."
    },
    "status": {
      "$ref": "#/$defs/PipelineExecutionStatus"
    },
    "startTime": {
      "type": "string",
      "description": "The time the pipeline execution started, in Unix epoch time."
    },
    "endTime": {
      "type": "string",
      "description": "The time the pipeline execution completed, in Unix epoch time."
    },
    "requestEnvironmentVariables": {
      "$ref": "#/$defs/ExecutionEnvironmentVariables"
    },
    "requestMountOverrides": {
      "$ref": "#/$defs/MountOverrides"
    },
    "executionPriority": {
      "type": "integer",
      "description": "Scheduling priority for the execution. When not specified, defaults to lowest priority."
    },
    "computeNodeExecutionDetails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ComputeNodeExecutionDetails"
      },
      "description": "A list of compute node execution details within this pipeline execution."
    },
    "nextToken": {
      "type": "string",
      "description": "The token to be used for the next set of paginated results."
    }
  },
  "required": [
    "pipelineExecutionId",
    "pipelineName",
    "workspaceName",
    "pipelineVersion",
    "status",
    "requestEnvironmentVariables",
    "computeNodeExecutionDetails"
  ],
  "$defs": {
    "ComputeNodeExecutionDetails": {
      "type": "object",
      "properties": {
        "computeNodeName": {
          "type": "string",
          "description": "The name of the compute node."
        },
        "taskName": {
          "type": "string",
          "description": "The name of the task executed for this compute node."
        },
        "taskArn": {
          "type": "string",
          "description": "The ARN of the task."
        },
        "taskVersion": {
          "type": "string",
          "description": "The task version that executed for this compute node."
        },
        "dependsOn": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of compute node names that this node depends on."
        },
        "status": {
          "$ref": "#/$defs/ComputeNodeExecutionStatus"
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the compute node execution started, in Unix epoch time."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the compute node execution completed, in Unix epoch time."
        },
        "executionEnvironmentVariables": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The fully resolved environment variables used for this compute node execution."
        },
        "executionMounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Mount"
          },
          "description": "The fully resolved mounts used for this compute node execution, after merging task-defined mounts with any execution-level mount overrides. Each mount attaches an external data source to the container filesystem at a relative path under the service-owned mount root."
        }
      },
      "required": [
        "computeNodeName",
        "taskName",
        "taskArn",
        "taskVersion",
        "dependsOn",
        "status"
      ]
    },
    "ComputeNodeExecutionStateDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "VALIDATION_ERROR",
            "INTERNAL_FAILURE",
            "EXECUTION_ERROR",
            "TIMED_OUT"
          ],
          "description": "Classification of the failure."
        },
        "message": {
          "type": "string",
          "description": "Human-readable description of why the compute node failed."
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DetailedPipelineError"
          },
          "description": "Detailed error entries to help diagnose the failure."
        }
      },
      "required": [
        "code",
        "message"
      ]
    },
    "ComputeNodeExecutionStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "NOT_STARTED",
            "QUEUED",
            "RUNNING",
            "SUCCEEDED",
            "FAILED"
          ],
          "description": "Current state of the compute node execution."
        },
        "stateDetails": {
          "$ref": "#/$defs/ComputeNodeExecutionStateDetails"
        }
      },
      "required": [
        "state"
      ]
    },
    "DetailedPipelineError": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "VALIDATION_ERROR",
            "INTERNAL_FAILURE",
            "EXECUTION_ERROR",
            "TIMED_OUT"
          ],
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The associated error message."
        }
      },
      "required": [
        "code",
        "message"
      ]
    },
    "ExecutionEnvironmentVariables": {
      "type": "object",
      "properties": {
        "global": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Global environment variables that apply to all compute nodes in the pipeline execution."
        },
        "computeNodes": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "description": "Per-compute-node environment variable overrides. Each entry maps a compute node name to its environment variable overrides."
        }
      }
    },
    "Mount": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "A unique name for the mount within the task."
        },
        "relativePath": {
          "type": "string",
          "description": "The relative path under the service-owned mount root where this mount is attached inside the container."
        },
        "source": {
          "$ref": "#/$defs/MountSource"
        },
        "storageType": {
          "type": "string",
          "enum": [
            "SHARED_STORAGE"
          ],
          "description": "The type of storage used for the mount."
        }
      },
      "required": [
        "name",
        "relativePath",
        "source",
        "storageType"
      ]
    },
    "MountOverrides": {
      "type": "object",
      "properties": {
        "computeNodes": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/Mount"
            }
          },
          "description": "The mount overrides for each compute node, keyed by compute node name."
        }
      },
      "required": [
        "computeNodes"
      ]
    },
    "MountSource": {
      "type": "object",
      "properties": {
        "s3AccessPoint": {
          "$ref": "#/$defs/S3AccessPointSource"
        }
      },
      "description": "Exactly one member is set."
    },
    "PipelineExecutionStateDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "VALIDATION_ERROR",
            "INTERNAL_FAILURE",
            "EXECUTION_ERROR",
            "TIMED_OUT"
          ],
          "description": "Classification of the failure. Present when the execution failed."
        },
        "message": {
          "type": "string",
          "description": "Human-readable description of the outcome. For a failed execution, this describes why it failed; for a cancelled execution, this is the reason you supplied when calling CancelPipelineExecution."
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DetailedPipelineError"
          },
          "description": "Per-step error entries to help diagnose a failed execution. Present when the execution failed."
        }
      },
      "required": [
        "message"
      ]
    },
    "PipelineExecutionStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "NOT_STARTED",
            "RUNNING",
            "SUCCEEDED",
            "FAILED",
            "CANCELLING",
            "CANCELLED"
          ],
          "description": "Current state of the pipeline execution."
        },
        "stateDetails": {
          "$ref": "#/$defs/PipelineExecutionStateDetails"
        }
      },
      "required": [
        "state"
      ]
    },
    "S3AccessPointSource": {
      "type": "object",
      "properties": {
        "accessPointArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the S3 access point."
        },
        "prefix": {
          "type": "string",
          "description": "An optional key prefix to scope the mount to a subset of objects at the access point."
        }
      },
      "required": [
        "accessPointArn"
      ]
    }
  }
}