{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-create-data-product-input-schema.json",
  "title": "CreateDataProductInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-data-products-api-openapi.yml#/components/schemas/CreateDataProductInput",
  "type": "object",
  "properties": {
    "domainIdentifier": {
      "type": "string",
      "description": "The ID of the domain where the data product is created."
    },
    "name": {
      "type": "string",
      "description": "The name of the data product."
    },
    "owningProjectIdentifier": {
      "type": "string",
      "description": "The ID of the owning project of the data product."
    },
    "description": {
      "type": "string",
      "description": "The description of the data product."
    },
    "glossaryTerms": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The glossary terms of the data product."
    },
    "formsInput": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FormInput"
      },
      "description": "The metadata forms of the data product."
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataProductItem"
      },
      "description": "The data assets of the data product."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that is provided to ensure the idempotency of the request."
    }
  },
  "required": [
    "domainIdentifier",
    "name",
    "owningProjectIdentifier"
  ],
  "$defs": {
    "DataProductItem": {
      "type": "object",
      "properties": {
        "itemType": {
          "type": "string",
          "enum": [
            "ASSET"
          ],
          "description": "The type of the data product."
        },
        "identifier": {
          "type": "string",
          "description": "The ID of the data product."
        },
        "revision": {
          "type": "string",
          "description": "The revision of the data product."
        },
        "glossaryTerms": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The glossary terms of the data product."
        }
      },
      "required": [
        "itemType",
        "identifier"
      ]
    },
    "FormInput": {
      "type": "object",
      "properties": {
        "formName": {
          "type": "string",
          "description": "The name of the metadata form."
        },
        "typeIdentifier": {
          "type": "string",
          "description": "The ID of the metadata form type."
        },
        "typeRevision": {
          "type": "string",
          "description": "The revision of the metadata form type."
        },
        "content": {
          "type": "string",
          "description": "The content of the metadata form."
        }
      },
      "required": [
        "formName"
      ]
    }
  }
}