{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-healthlake/json-schema/aws-healthlake-start-fhirexport-job-request-schema.json",
  "title": "StartFHIRExportJobRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-healthlake-export-api-openapi.yml#/components/schemas/StartFHIRExportJobRequest",
  "type": "object",
  "properties": {
    "JobName": {
      "type": "string",
      "description": "The export job name."
    },
    "OutputDataConfig": {
      "$ref": "#/$defs/OutputDataConfig"
    },
    "DatastoreId": {
      "type": "string",
      "description": "The data store identifier from which files are being exported."
    },
    "DataAccessRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) used during initiation of the export job."
    },
    "ClientToken": {
      "type": "string",
      "description": "An optional user provided token used for ensuring API idempotency."
    }
  },
  "required": [
    "OutputDataConfig",
    "DatastoreId",
    "DataAccessRoleArn"
  ],
  "$defs": {
    "OutputDataConfig": {
      "type": "object",
      "properties": {
        "S3Configuration": {
          "$ref": "#/$defs/S3Configuration"
        }
      },
      "description": "Exactly one member is set."
    },
    "S3Configuration": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "The S3Uri is the user-specified Amazon S3 location of the FHIR data to be imported into HealthLake."
        },
        "KmsKeyId": {
          "type": "string",
          "description": "The Key Management Service (KMS) key ID used to access the Amazon S3 bucket."
        }
      },
      "required": [
        "S3Uri",
        "KmsKeyId"
      ]
    }
  }
}