{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mainframe-modernization/json-schema/amazon-mainframe-modernization-get-data-set-export-task-response-schema.json",
  "title": "GetDataSetExportTaskResponse",
  "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/GetDataSetExportTaskResponse",
  "type": "object",
  "properties": {
    "taskId": {
      "type": "string",
      "description": "The task identifier."
    },
    "status": {
      "type": "string",
      "description": "The status of the task."
    },
    "summary": {
      "$ref": "#/$defs/DataSetExportSummary"
    },
    "statusReason": {
      "type": "string",
      "description": "If dataset export failed, the failure reason will show here."
    },
    "kmsKeyArn": {
      "type": "string",
      "description": "The identifier of a customer managed key used for exported data set encryption."
    }
  },
  "required": [
    "taskId",
    "status"
  ],
  "$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"
      ]
    }
  }
}