{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-start-data-source-run-output-schema.json",
  "title": "StartDataSourceRunOutput",
  "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/StartDataSourceRunOutput",
  "type": "object",
  "properties": {
    "domainId": {
      "type": "string",
      "description": "The identifier of the Amazon DataZone domain in which to start a data source run."
    },
    "dataSourceId": {
      "type": "string",
      "description": "The identifier of the data source."
    },
    "id": {
      "type": "string",
      "description": "The identifier of the data source run."
    },
    "projectId": {
      "type": "string",
      "description": "The identifier of the project."
    },
    "status": {
      "type": "string",
      "enum": [
        "REQUESTED",
        "RUNNING",
        "FAILED",
        "PARTIALLY_SUCCEEDED",
        "SUCCESS"
      ],
      "description": "The status of the data source run."
    },
    "type": {
      "type": "string",
      "enum": [
        "PRIORITIZED",
        "SCHEDULED"
      ],
      "description": "The type of the data source run."
    },
    "dataSourceConfigurationSnapshot": {
      "type": "string",
      "description": "The configuration snapshot of the data source that is being run."
    },
    "runStatisticsForAssets": {
      "$ref": "#/$defs/RunStatisticsForAssets"
    },
    "errorMessage": {
      "$ref": "#/$defs/DataSourceErrorMessage"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when data source run was created."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the data source run was updated."
    },
    "startedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the data source run was started."
    },
    "stoppedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the data source run was stopped."
    }
  },
  "required": [
    "domainId",
    "dataSourceId",
    "id",
    "projectId",
    "status",
    "type",
    "createdAt",
    "updatedAt"
  ],
  "$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"
      ]
    },
    "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."
        }
      }
    }
  }
}