{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-start-metadata-generation-run-input-schema.json",
  "title": "StartMetadataGenerationRunInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-metadata-generation-runs-api-openapi.yml#/components/schemas/StartMetadataGenerationRunInput",
  "type": "object",
  "properties": {
    "domainIdentifier": {
      "type": "string",
      "description": "The ID of the Amazon DataZone domain where you want to start a metadata generation run."
    },
    "type": {
      "type": "string",
      "enum": [
        "BUSINESS_DESCRIPTIONS",
        "BUSINESS_NAMES",
        "BUSINESS_GLOSSARY_ASSOCIATIONS"
      ],
      "description": "The type of the metadata generation run."
    },
    "types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "BUSINESS_DESCRIPTIONS",
          "BUSINESS_NAMES",
          "BUSINESS_GLOSSARY_ASSOCIATIONS"
        ]
      },
      "description": "The types of the metadata generation run."
    },
    "target": {
      "$ref": "#/$defs/MetadataGenerationRunTarget"
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided."
    },
    "owningProjectIdentifier": {
      "type": "string",
      "description": "The ID of the project that owns the asset for which you want to start a metadata generation run."
    }
  },
  "required": [
    "domainIdentifier",
    "target",
    "owningProjectIdentifier"
  ],
  "$defs": {
    "MetadataGenerationRunTarget": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "ASSET"
          ],
          "description": "The type of the asset for which metadata was generated."
        },
        "identifier": {
          "type": "string",
          "description": "The ID of the metadata generation run's target."
        },
        "revision": {
          "type": "string",
          "description": "The revision of the asset for which metadata was generated."
        }
      },
      "required": [
        "type",
        "identifier"
      ]
    }
  }
}