{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-healthlake/json-schema/aws-healthlake-create-data-transformation-profile-request-schema.json",
  "title": "CreateDataTransformationProfileRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-healthlake-data-transformation-profile-api-openapi.yml#/components/schemas/CreateDataTransformationProfileRequest",
  "type": "object",
  "properties": {
    "SourceFormat": {
      "type": "string",
      "enum": [
        "CCDA",
        "CSV"
      ],
      "description": "The source data format that this profile converts from (Consolidated Clinical Document Architecture (C-CDA) or Comma-separated values (CSV))."
    },
    "Source": {
      "$ref": "#/$defs/CreateDataTransformationProfileSource"
    },
    "KmsKeyId": {
      "type": "string",
      "description": "The Amazon Web Services Key Management Service (Amazon Web Services KMS) key identifier used to encrypt the profile content at rest."
    },
    "ProfileDescription": {
      "type": "string",
      "description": "A human-readable description of the profile's purpose."
    },
    "ProfileName": {
      "type": "string",
      "description": "A name for the data transformation profile."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags to associate with the profile at creation time."
    },
    "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."
    }
  },
  "required": [
    "SourceFormat",
    "Source",
    "ProfileName"
  ],
  "$defs": {
    "CreateDataTransformationProfileSource": {
      "type": "object",
      "properties": {
        "StarterProfile": {
          "$ref": "#/$defs/StarterProfileSource"
        },
        "ExistingVersionedProfileId": {
          "$ref": "#/$defs/ExistingVersionedProfileSource"
        },
        "ProfileMapping": {
          "$ref": "#/$defs/ProfileMappingSource"
        },
        "SampleData": {
          "$ref": "#/$defs/SampleDataSource"
        }
      },
      "description": "Exactly one member is set."
    },
    "ExistingVersionedProfileSource": {
      "type": "object",
      "properties": {
        "ProfileId": {
          "type": "string",
          "description": "The unique identifier of the existing profile to clone from."
        },
        "Version": {
          "type": "integer",
          "description": "The version number of the existing profile to clone from."
        }
      },
      "required": [
        "ProfileId",
        "Version"
      ]
    },
    "ProfileMappingSource": {
      "type": "object",
      "properties": {
        "ProfileMapping": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The content as a map of file paths to profile strings."
        }
      },
      "required": [
        "ProfileMapping"
      ]
    },
    "SampleDataSource": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "The Amazon S3 URI of the sample data file."
        }
      },
      "required": [
        "S3Uri"
      ]
    },
    "StarterProfileSource": {
      "type": "object",
      "properties": {
        "StarterProfileName": {
          "type": "string",
          "description": "The name of the built-in starter profile."
        }
      },
      "required": [
        "StarterProfileName"
      ]
    }
  }
}