{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-list-lineage-events-output-schema.json",
  "title": "ListLineageEventsOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-lineage-api-openapi.yml#/components/schemas/ListLineageEventsOutput",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LineageEventSummary"
      },
      "description": "The results of the ListLineageEvents action."
    },
    "nextToken": {
      "type": "string",
      "description": "When the number of lineage events is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of lineage events, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListLineageEvents to list the next set of lineage events."
    }
  },
  "$defs": {
    "EventSummary": {
      "type": "object",
      "properties": {
        "openLineageRunEventSummary": {
          "$ref": "#/$defs/OpenLineageRunEventSummary"
        }
      },
      "description": "Exactly one member is set."
    },
    "LineageEventSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the data lineage event."
        },
        "domainId": {
          "type": "string",
          "description": "The domain ID of the lineage event."
        },
        "processingStatus": {
          "type": "string",
          "enum": [
            "REQUESTED",
            "PROCESSING",
            "SUCCESS",
            "FAILED"
          ],
          "description": "The processing status of the data lineage event."
        },
        "eventTime": {
          "type": "string",
          "description": "The time of the data lineage event."
        },
        "eventSummary": {
          "$ref": "#/$defs/EventSummary"
        },
        "createdBy": {
          "type": "string",
          "description": "The user who created the data lineage event."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp at which data lineage event was created."
        }
      }
    },
    "NameIdentifier": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name in the name identifier."
        },
        "namespace": {
          "type": "string",
          "description": "The namespace in the name identifier."
        }
      }
    },
    "OpenLineageRunEventSummary": {
      "type": "object",
      "properties": {
        "eventType": {
          "type": "string",
          "enum": [
            "START",
            "RUNNING",
            "COMPLETE",
            "ABORT",
            "FAIL",
            "OTHER"
          ],
          "description": "The event type of the open lineage run event summary."
        },
        "runId": {
          "type": "string",
          "description": "The runID of the open lineage run event summary."
        },
        "job": {
          "$ref": "#/$defs/NameIdentifier"
        },
        "inputs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NameIdentifier"
          },
          "description": "The inputs of the open lineage run event summary."
        },
        "outputs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NameIdentifier"
          },
          "description": "The outputs of the open lineage run event summary."
        }
      }
    }
  }
}