{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/DomainIdentifier",
  "/properties/ParentDomainUnitIdentifier"
 ],
 "definitions": {
  "DomainUnitGroupProperties": {
   "additionalProperties": false,
   "properties": {
    "GroupId": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "DomainUnitOwnerProperties": {
   "additionalProperties": false,
   "properties": {
    "Group": {
     "$ref": "#/definitions/DomainUnitGroupProperties"
    },
    "User": {
     "$ref": "#/definitions/DomainUnitUserProperties"
    }
   },
   "type": "object"
  },
  "DomainUnitUserProperties": {
   "additionalProperties": false,
   "properties": {
    "UserId": {
     "type": "string"
    }
   },
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/DomainId",
  "/properties/Id"
 ],
 "properties": {
  "CreatedAt": {
   "format": "date-time",
   "type": "string"
  },
  "Description": {
   "maxLength": 2048,
   "minLength": 0,
   "type": "string"
  },
  "DomainId": {
   "pattern": "^dzd[-_][a-zA-Z0-9_-]{1,36}$",
   "type": "string"
  },
  "DomainIdentifier": {
   "pattern": "^dzd[-_][a-zA-Z0-9_-]{1,36}$",
   "type": "string"
  },
  "Id": {
   "maxLength": 256,
   "minLength": 1,
   "pattern": "^[a-z0-9_-]+$",
   "type": "string"
  },
  "Identifier": {
   "maxLength": 256,
   "minLength": 1,
   "pattern": "^[a-z0-9_-]+$",
   "type": "string"
  },
  "LastUpdatedAt": {
   "format": "date-time",
   "type": "string"
  },
  "Name": {
   "maxLength": 128,
   "minLength": 1,
   "pattern": "^[\\w -]+$",
   "type": "string"
  },
  "ParentDomainUnitId": {
   "maxLength": 256,
   "minLength": 1,
   "pattern": "^[a-z0-9_-]+$",
   "type": "string"
  },
  "ParentDomainUnitIdentifier": {
   "maxLength": 256,
   "minLength": 1,
   "pattern": "^[a-z0-9_-]+$",
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/CreatedAt",
  "/properties/DomainId",
  "/properties/Id",
  "/properties/Identifier",
  "/properties/ParentDomainUnitId",
  "/properties/LastUpdatedAt"
 ],
 "required": [
  "DomainIdentifier",
  "Name",
  "ParentDomainUnitIdentifier"
 ],
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": false,
  "tagUpdatable": false,
  "taggable": false
 },
 "typeName": "AWS::DataZone::DomainUnit"
}
