{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-healthlake/json-schema/aws-healthlake-start-data-transformation-job-request-schema.json",
  "title": "StartDataTransformationJobRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-healthlake-data-transformation-job-api-openapi.yml#/components/schemas/StartDataTransformationJobRequest",
  "type": "object",
  "properties": {
    "InputDataConfig": {
      "$ref": "#/$defs/TransformationInputDataConfig"
    },
    "OutputDataConfig": {
      "$ref": "#/$defs/TransformationOutputDataConfig"
    },
    "DataAccessRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that HealthLake assumes to read from and write to the specified Amazon S3 locations."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error."
    },
    "JobName": {
      "type": "string",
      "description": "A descriptive name for the data transformation job."
    },
    "ProfileId": {
      "type": "string",
      "description": "The unique identifier of the data transformation profile to use for conversion."
    },
    "DriftDetectionEnabled": {
      "type": "boolean",
      "description": "Specifies whether drift detection is enabled for this job. When enabled, HealthLake writes a drift report to the output Amazon S3 location alongside the converted files."
    },
    "ProvenanceEnabled": {
      "type": "boolean",
      "description": "Specifies whether FHIR R4 Provenance resource generation is enabled for this transformation job. When provenance is enabled, the service also generates related DocumentReference and Device resources. If you don't specify a value, the default is true. To disable provenance output, set this parameter to false."
    }
  },
  "required": [
    "InputDataConfig",
    "OutputDataConfig",
    "DataAccessRoleArn",
    "ClientToken",
    "ProfileId"
  ],
  "$defs": {
    "DataTransformationS3Configuration": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "The Amazon S3 URI where HealthLake writes the converted output files."
        },
        "KmsKeyId": {
          "type": "string",
          "description": "The Amazon Web Services Key Management Service (Amazon Web Services KMS) key identifier used to encrypt the transformation job output written to Amazon S3."
        }
      },
      "required": [
        "S3Uri",
        "KmsKeyId"
      ]
    },
    "TransformationInputDataConfig": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "The Amazon S3 URI of the input data to transform."
        },
        "SourceFormat": {
          "type": "string",
          "enum": [
            "CCDA",
            "CSV"
          ],
          "description": "The format of the source data files (C-CDA or CSV)."
        }
      },
      "required": [
        "S3Uri"
      ]
    },
    "TransformationOutputDataConfig": {
      "type": "object",
      "properties": {
        "S3Configuration": {
          "$ref": "#/$defs/DataTransformationS3Configuration"
        }
      },
      "required": [
        "S3Configuration"
      ]
    }
  }
}