{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-create-data-product-revision-output-schema.json",
  "title": "CreateDataProductRevisionOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-revisions-api-openapi.yml#/components/schemas/CreateDataProductRevisionOutput",
  "type": "object",
  "properties": {
    "domainId": {
      "type": "string",
      "description": "The ID of the domain where data product revision is created."
    },
    "id": {
      "type": "string",
      "description": "The ID of the data product revision."
    },
    "revision": {
      "type": "string",
      "description": "The revision of the data product revision."
    },
    "owningProjectId": {
      "type": "string",
      "description": "The ID of the owning project of the data product revision."
    },
    "name": {
      "type": "string",
      "description": "The name of the data product revision."
    },
    "status": {
      "type": "string",
      "enum": [
        "CREATED",
        "CREATING",
        "CREATE_FAILED"
      ],
      "description": "The status of the data product revision."
    },
    "description": {
      "type": "string",
      "description": "The description of the data product revision."
    },
    "glossaryTerms": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The glossary terms of the data product revision."
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataProductItem"
      },
      "description": "The data assets of the data product revision."
    },
    "formsOutput": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FormOutput"
      },
      "description": "The metadata forms of the data product revision."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp at which the data product revision is created."
    },
    "createdBy": {
      "type": "string",
      "description": "The user who created the data product revision."
    },
    "firstRevisionCreatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp at which the first revision of the data product is created."
    },
    "firstRevisionCreatedBy": {
      "type": "string",
      "description": "The user who created the first revision of the data product."
    }
  },
  "required": [
    "domainId",
    "id",
    "revision",
    "owningProjectId",
    "name",
    "status"
  ],
  "$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"
      ]
    },
    "FormOutput": {
      "type": "object",
      "properties": {
        "formName": {
          "type": "string",
          "description": "The name of the metadata form."
        },
        "typeName": {
          "type": "string",
          "description": "The name 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"
      ]
    }
  }
}