{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-get-metadata-generation-run-output-schema.json",
  "title": "GetMetadataGenerationRunOutput",
  "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/GetMetadataGenerationRunOutput",
  "type": "object",
  "properties": {
    "domainId": {
      "type": "string",
      "description": "The ID of the Amazon DataZone domain the metadata generation run of which you want to get."
    },
    "id": {
      "type": "string",
      "description": "The ID of the metadata generation run."
    },
    "target": {
      "$ref": "#/$defs/MetadataGenerationRunTarget"
    },
    "status": {
      "type": "string",
      "enum": [
        "SUBMITTED",
        "IN_PROGRESS",
        "CANCELED",
        "SUCCEEDED",
        "FAILED",
        "PARTIALLY_SUCCEEDED"
      ],
      "description": "The status of the metadata generation run."
    },
    "type": {
      "type": "string",
      "enum": [
        "BUSINESS_DESCRIPTIONS",
        "BUSINESS_NAMES",
        "BUSINESS_GLOSSARY_ASSOCIATIONS"
      ],
      "description": "The type of 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."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the metadata generation run was start."
    },
    "createdBy": {
      "type": "string",
      "description": "The Amazon DataZone user who started the metadata generation run."
    },
    "owningProjectId": {
      "type": "string",
      "description": "The ID of the project that owns the assets for which you're running metadata generation."
    },
    "typeStats": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MetadataGenerationRunTypeStat"
      },
      "description": "The type stats included in the metadata generation run output details."
    }
  },
  "required": [
    "domainId",
    "id",
    "owningProjectId"
  ],
  "$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"
      ]
    },
    "MetadataGenerationRunTypeStat": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "BUSINESS_DESCRIPTIONS",
            "BUSINESS_NAMES",
            "BUSINESS_GLOSSARY_ASSOCIATIONS"
          ],
          "description": "The type of the metadata generation run type statistics."
        },
        "status": {
          "type": "string",
          "enum": [
            "SUBMITTED",
            "IN_PROGRESS",
            "CANCELED",
            "SUCCEEDED",
            "FAILED",
            "PARTIALLY_SUCCEEDED"
          ],
          "description": "The status of the metadata generation run type statistics."
        },
        "errorMessage": {
          "type": "string",
          "description": "The error message displayed if the action fails to run."
        }
      },
      "required": [
        "type",
        "status"
      ]
    }
  }
}