{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-list-data-source-runs-output-schema.json",
  "title": "ListDataSourceRunsOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-runs-api-openapi.yml#/components/schemas/ListDataSourceRunsOutput",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataSourceRunSummary"
      },
      "description": "The results of the ListDataSourceRuns action."
    },
    "nextToken": {
      "type": "string",
      "description": "When the number of runs 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 runs, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListDataSourceRuns to list the next set of runs."
    }
  },
  "required": [
    "items"
  ],
  "$defs": {
    "DataSourceErrorMessage": {
      "type": "object",
      "properties": {
        "errorType": {
          "type": "string",
          "enum": [
            "ACCESS_DENIED_EXCEPTION",
            "CONFLICT_EXCEPTION",
            "INTERNAL_SERVER_EXCEPTION",
            "RESOURCE_NOT_FOUND_EXCEPTION",
            "SERVICE_QUOTA_EXCEEDED_EXCEPTION",
            "THROTTLING_EXCEPTION",
            "VALIDATION_EXCEPTION"
          ],
          "description": "The type of the error message that is returned if the operation cannot be successfully completed."
        },
        "errorDetail": {
          "type": "string",
          "description": "The details of the error message that is returned if the operation cannot be successfully completed."
        }
      },
      "required": [
        "errorType"
      ]
    },
    "DataSourceRunLineageSummary": {
      "type": "object",
      "properties": {
        "importStatus": {
          "type": "string",
          "enum": [
            "IN_PROGRESS",
            "SUCCESS",
            "FAILED",
            "PARTIALLY_SUCCEEDED"
          ],
          "description": "The import status that's part of the run lineage summary of a data source."
        }
      }
    },
    "DataSourceRunSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The identifier of the data source run."
        },
        "dataSourceId": {
          "type": "string",
          "description": "The identifier of the data source of the data source run."
        },
        "type": {
          "type": "string",
          "enum": [
            "PRIORITIZED",
            "SCHEDULED"
          ],
          "description": "The type of the data source run."
        },
        "status": {
          "type": "string",
          "enum": [
            "REQUESTED",
            "RUNNING",
            "FAILED",
            "PARTIALLY_SUCCEEDED",
            "SUCCESS"
          ],
          "description": "The status of the data source run."
        },
        "projectId": {
          "type": "string",
          "description": "The project ID of the data source run."
        },
        "runStatisticsForAssets": {
          "$ref": "#/$defs/RunStatisticsForAssets"
        },
        "errorMessage": {
          "$ref": "#/$defs/DataSourceErrorMessage"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when a data source run was created."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when a data source run was updated."
        },
        "startedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when a data source run was started."
        },
        "stoppedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when a data source run was stopped."
        },
        "lineageSummary": {
          "$ref": "#/$defs/DataSourceRunLineageSummary"
        }
      },
      "required": [
        "id",
        "dataSourceId",
        "type",
        "status",
        "projectId",
        "createdAt",
        "updatedAt"
      ]
    },
    "RunStatisticsForAssets": {
      "type": "object",
      "properties": {
        "added": {
          "type": "integer",
          "description": "The added statistic for the data source run."
        },
        "updated": {
          "type": "integer",
          "description": "The updated statistic for the data source run."
        },
        "unchanged": {
          "type": "integer",
          "description": "The unchanged statistic for the data source run."
        },
        "skipped": {
          "type": "integer",
          "description": "The skipped statistic for the data source run."
        },
        "failed": {
          "type": "integer",
          "description": "The failed statistic for the data source run."
        }
      }
    }
  }
}