{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/DomainName",
  "/properties/ObjectTypeName",
  "/properties/Fields"
 ],
 "definitions": {
  "Description": {
   "maxLength": 10000,
   "minLength": 1,
   "type": "string"
  },
  "DomainName": {
   "maxLength": 64,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9_-]+$",
   "type": "string"
  },
  "DomainObjectTypeField": {
   "additionalProperties": false,
   "properties": {
    "ContentType": {
     "enum": [
      "STRING",
      "NUMBER"
     ],
     "type": "string"
    },
    "FeatureType": {
     "enum": [
      "TEXTUAL",
      "CATEGORICAL"
     ],
     "type": "string"
    },
    "Source": {
     "maxLength": 1000,
     "minLength": 1,
     "type": "string"
    },
    "Target": {
     "maxLength": 1000,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Source",
    "Target"
   ],
   "type": "object"
  },
  "DomainObjectTypeFields": {
   "additionalProperties": false,
   "patternProperties": {
    "^[a-zA-Z0-9_.-]+$": {
     "$ref": "#/definitions/DomainObjectTypeField"
    }
   },
   "type": "object"
  },
  "EncryptionKey": {
   "maxLength": 255,
   "minLength": 0,
   "type": "string"
  },
  "ObjectTypeName": {
   "maxLength": 255,
   "minLength": 1,
   "pattern": "^[a-zA-Z_][a-zA-Z_0-9-]*$",
   "type": "string"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "minItems": 0,
   "type": "array",
   "uniqueItems": true
  }
 },
 "primaryIdentifier": [
  "/properties/DomainName",
  "/properties/ObjectTypeName"
 ],
 "properties": {
  "CreatedAt": {
   "type": "string"
  },
  "Description": {
   "$ref": "#/definitions/Description"
  },
  "DomainName": {
   "$ref": "#/definitions/DomainName"
  },
  "EncryptionKey": {
   "$ref": "#/definitions/EncryptionKey"
  },
  "Fields": {
   "$ref": "#/definitions/DomainObjectTypeFields"
  },
  "LastUpdatedAt": {
   "type": "string"
  },
  "ObjectTypeName": {
   "$ref": "#/definitions/ObjectTypeName"
  },
  "Tags": {
   "$ref": "#/definitions/Tags"
  }
 },
 "readOnlyProperties": [
  "/properties/CreatedAt",
  "/properties/LastUpdatedAt"
 ],
 "required": [
  "DomainName",
  "ObjectTypeName",
  "Fields"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-customer-profiles",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::CustomerProfiles::DomainObjectType"
}
