{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-healthomics/json-schema/amazon-healthomics-create-annotation-store-request-schema.json",
  "title": "CreateAnnotationStoreRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-healthomics-annotation-store-api-openapi.yml#/components/schemas/CreateAnnotationStoreRequest",
  "type": "object",
  "properties": {
    "reference": {
      "$ref": "#/$defs/ReferenceItem"
    },
    "name": {
      "type": "string",
      "description": "A name for the store."
    },
    "description": {
      "type": "string",
      "description": "A description for the store."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags for the store."
    },
    "versionName": {
      "type": "string",
      "description": "The name given to an annotation store version to distinguish it from other versions."
    },
    "sseConfig": {
      "$ref": "#/$defs/SseConfig"
    },
    "storeFormat": {
      "type": "string",
      "description": "The annotation file format of the store."
    },
    "storeOptions": {
      "$ref": "#/$defs/StoreOptions"
    }
  },
  "required": [
    "storeFormat"
  ],
  "$defs": {
    "ReferenceItem": {
      "type": "object",
      "properties": {
        "referenceArn": {
          "type": "string",
          "description": "The reference's ARN."
        }
      },
      "description": "Exactly one member is set."
    },
    "SseConfig": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The encryption type."
        },
        "keyArn": {
          "type": "string",
          "description": "An encryption key ARN."
        }
      },
      "required": [
        "type"
      ]
    },
    "StoreOptions": {
      "type": "object",
      "properties": {
        "tsvStoreOptions": {
          "$ref": "#/$defs/TsvStoreOptions"
        }
      },
      "description": "Exactly one member is set."
    },
    "TsvStoreOptions": {
      "type": "object",
      "properties": {
        "annotationType": {
          "type": "string",
          "description": "The store's annotation type."
        },
        "formatToHeader": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The store's header key to column name mapping."
        },
        "schema": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "description": "The store's schema."
        }
      }
    }
  }
}