{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-list-metadata-generation-runs-output-schema.json",
  "title": "ListMetadataGenerationRunsOutput",
  "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/ListMetadataGenerationRunsOutput",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MetadataGenerationRunItem"
      },
      "description": "The results of the ListMetadataGenerationRuns action."
    },
    "nextToken": {
      "type": "string",
      "description": "When the number of metadata generation runs is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of metadata generation runs, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListMetadataGenerationRuns to list the next set of revisions."
    }
  },
  "$defs": {
    "MetadataGenerationRunItem": {
      "type": "object",
      "properties": {
        "domainId": {
          "type": "string",
          "description": "The ID of the Amazon DataZone domain in which the metadata generation run was created."
        },
        "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 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."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp at which the metadata generation run was created."
        },
        "createdBy": {
          "type": "string",
          "description": "The user who created the metadata generation run."
        },
        "owningProjectId": {
          "type": "string",
          "description": "The ID of the project that owns the asset for which the metadata generation was ran."
        }
      },
      "required": [
        "domainId",
        "id",
        "owningProjectId"
      ]
    },
    "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"
      ]
    }
  }
}