{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-update-domain-unit-output-schema.json",
  "title": "UpdateDomainUnitOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-domain-units-api-openapi.yml#/components/schemas/UpdateDomainUnitOutput",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The ID of the domain unit that you want to update."
    },
    "domainId": {
      "type": "string",
      "description": "The ID of the domain where you want to update the domain unit."
    },
    "name": {
      "type": "string",
      "description": "The name of the domain unit that you want to update."
    },
    "owners": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DomainUnitOwnerProperties"
      },
      "description": "The owners of the domain unit that you want to update."
    },
    "description": {
      "type": "string",
      "description": "The description of the domain unit that you want to update."
    },
    "parentDomainUnitId": {
      "type": "string",
      "description": "The ID of the parent domain unit."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The time stamp at which the domain unit that you want to update was created."
    },
    "lastUpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp at which the domain unit was last updated."
    },
    "createdBy": {
      "type": "string",
      "description": "The user who created the domain unit that you want to update."
    },
    "lastUpdatedBy": {
      "type": "string",
      "description": "The user who last updated the domain unit."
    }
  },
  "required": [
    "id",
    "domainId",
    "name",
    "owners"
  ],
  "$defs": {
    "DomainUnitGroupProperties": {
      "type": "object",
      "properties": {
        "groupId": {
          "type": "string",
          "description": "The ID of the domain unit group."
        }
      }
    },
    "DomainUnitOwnerProperties": {
      "type": "object",
      "properties": {
        "user": {
          "$ref": "#/$defs/DomainUnitUserProperties"
        },
        "group": {
          "$ref": "#/$defs/DomainUnitGroupProperties"
        }
      },
      "description": "Exactly one member is set."
    },
    "DomainUnitUserProperties": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "string",
          "description": "The ID of teh domain unit user."
        }
      }
    }
  }
}