{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mainframe-modernization/json-schema/amazon-mainframe-modernization-create-data-set-export-task-request-schema.json",
  "title": "CreateDataSetExportTaskRequest",
  "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/CreateDataSetExportTaskRequest",
  "type": "object",
  "properties": {
    "applicationId": {
      "type": "string",
      "description": "The unique identifier of the application for which you want to export data sets."
    },
    "exportConfig": {
      "$ref": "#/$defs/DataSetExportConfig"
    },
    "clientToken": {
      "type": "string",
      "description": "Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a data set export. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires."
    },
    "kmsKeyId": {
      "type": "string",
      "description": "The identifier of a customer managed key."
    }
  },
  "required": [
    "applicationId",
    "exportConfig"
  ],
  "$defs": {
    "DataSetExportConfig": {
      "type": "object",
      "properties": {
        "s3Location": {
          "type": "string",
          "description": "The Amazon S3 location of the data sets."
        },
        "dataSets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DataSetExportItem"
          },
          "description": "The data sets."
        }
      },
      "description": "Exactly one member is set."
    },
    "DataSetExportItem": {
      "type": "object",
      "properties": {
        "datasetName": {
          "type": "string",
          "description": "The data set."
        },
        "externalLocation": {
          "$ref": "#/$defs/ExternalLocation"
        }
      },
      "required": [
        "datasetName",
        "externalLocation"
      ]
    },
    "ExternalLocation": {
      "type": "object",
      "properties": {
        "s3Location": {
          "type": "string",
          "description": "The URI of the Amazon S3 bucket."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}