{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mainframe-modernization/json-schema/amazon-mainframe-modernization-list-data-set-export-history-response-schema.json",
  "title": "ListDataSetExportHistoryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mainframe-modernization-operations-api-openapi.yml#/components/schemas/ListDataSetExportHistoryResponse",
  "type": "object",
  "properties": {
    "dataSetExportTasks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataSetExportTask"
      },
      "description": "The data set export tasks."
    },
    "nextToken": {
      "type": "string",
      "description": "If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items."
    }
  },
  "required": [
    "dataSetExportTasks"
  ],
  "$defs": {
    "DataSetExportSummary": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "description": "The total number of data set exports."
        },
        "succeeded": {
          "type": "integer",
          "description": "The number of data set exports that have succeeded."
        },
        "failed": {
          "type": "integer",
          "description": "The number of data set exports that have failed."
        },
        "pending": {
          "type": "integer",
          "description": "The number of data set exports that are pending."
        },
        "inProgress": {
          "type": "integer",
          "description": "The number of data set exports that are in progress."
        }
      },
      "required": [
        "total",
        "succeeded",
        "failed",
        "pending",
        "inProgress"
      ]
    },
    "DataSetExportTask": {
      "type": "object",
      "properties": {
        "taskId": {
          "type": "string",
          "description": "The identifier of the data set export task."
        },
        "status": {
          "type": "string",
          "description": "The status of the data set export task."
        },
        "summary": {
          "$ref": "#/$defs/DataSetExportSummary"
        },
        "statusReason": {
          "type": "string",
          "description": "If dataset exports failed, the failure reason will show here."
        }
      },
      "required": [
        "taskId",
        "status",
        "summary"
      ]
    }
  }
}