{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/AdditionalEncryptionContext",
  "/properties/CustomerManagedKey"
 ],
 "definitions": {
  "Category": {
   "enum": [
    "Cults",
    "Gambling",
    "Nudity",
    "Pornography",
    "SexEducation",
    "Tasteless",
    "Violence",
    "DownloadSites",
    "ImageSharing",
    "PeerToPeer",
    "StreamingMediaAndDownloads",
    "GenerativeAI",
    "CriminalActivity",
    "Hacking",
    "HateAndIntolerance",
    "IllegalDrug",
    "IllegalSoftware",
    "SchoolCheating",
    "SelfHarm",
    "Weapons",
    "Chat",
    "Games",
    "InstantMessaging",
    "ProfessionalNetwork",
    "SocialNetworking",
    "WebBasedEmail",
    "ParkedDomains"
   ],
   "type": "string"
  },
  "EncryptionContextMap": {
   "additionalProperties": false,
   "patternProperties": {
    "^[\\s\\S]*$": {
     "maxLength": 131072,
     "minLength": 0,
     "pattern": "^[\\s\\S]*$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  },
  "Unit": {
   "additionalProperties": false,
   "type": "object"
  },
  "WebContentFilteringPolicy": {
   "additionalProperties": false,
   "properties": {
    "AllowedUrls": {
     "items": {
      "pattern": "^((([a-zA-Z][a-zA-Z0-9+.-]*):\\/\\/(\\*|[\\w%._\\-\\+~#=@]+)?(\\/[^@\\s]*)?(?:\\?([^*\\s]+(?:\\*?)))?)|(\\*|[\\w%._\\-\\+~#=@]+\\.[\\w%._\\-\\+~#=@]+)(?::(\\d{1,5}))?(\\/[^@\\s]*)?(?:\\?([^*\\s]+(?:\\*?)))?|(([a-zA-Z][a-zA-Z0-9+.-]*):(\\/\\/)?\\*))$",
      "type": "string"
     },
     "maxItems": 1000,
     "minItems": 1,
     "type": "array"
    },
    "BlockedCategories": {
     "items": {
      "$ref": "#/definitions/Category"
     },
     "maxItems": 100,
     "minItems": 1,
     "type": "array",
     "uniqueItems": true
    },
    "BlockedUrls": {
     "items": {
      "pattern": "^((([a-zA-Z][a-zA-Z0-9+.-]*):\\/\\/(\\*|[\\w%._\\-\\+~#=@]+)?(\\/[^@\\s]*)?(?:\\?([^*\\s]+(?:\\*?)))?)|(\\*|[\\w%._\\-\\+~#=@]+\\.[\\w%._\\-\\+~#=@]+)(?::(\\d{1,5}))?(\\/[^@\\s]*)?(?:\\?([^*\\s]+(?:\\*?)))?|(([a-zA-Z][a-zA-Z0-9+.-]*):(\\/\\/)?\\*))$",
      "type": "string"
     },
     "maxItems": 1000,
     "minItems": 1,
     "type": "array"
    }
   },
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/BrowserSettingsArn"
 ],
 "properties": {
  "AdditionalEncryptionContext": {
   "$ref": "#/definitions/EncryptionContextMap"
  },
  "AssociatedPortalArns": {
   "insertionOrder": false,
   "items": {
    "maxLength": 2048,
    "minLength": 20,
    "pattern": "^arn:[\\w+=\\/,.@-]+:[a-zA-Z0-9\\-]+:[a-zA-Z0-9\\-]*:[a-zA-Z0-9]{1,12}:[a-zA-Z]+(\\/[a-fA-F0-9\\-]{36})+$",
    "type": "string"
   },
   "type": "array"
  },
  "BrowserPolicy": {
   "maxLength": 131072,
   "minLength": 2,
   "pattern": "^\\{[\\S\\s]*\\}\\s*$",
   "type": "string"
  },
  "BrowserSettingsArn": {
   "maxLength": 2048,
   "minLength": 20,
   "pattern": "^arn:[\\w+=\\/,.@-]+:[a-zA-Z0-9\\-]+:[a-zA-Z0-9\\-]*:[a-zA-Z0-9]{1,12}:[a-zA-Z]+(\\/[a-fA-F0-9\\-]{36})+$",
   "type": "string"
  },
  "CustomerManagedKey": {
   "maxLength": 2048,
   "minLength": 20,
   "pattern": "^arn:[\\w+=\\/,.@-]+:kms:[a-zA-Z0-9\\-]*:[a-zA-Z0-9]{1,12}:key\\/[a-zA-Z0-9-]+$",
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 200,
   "minItems": 0,
   "type": "array"
  },
  "WebContentFilteringPolicy": {
   "$ref": "#/definitions/WebContentFilteringPolicy"
  }
 },
 "readOnlyProperties": [
  "/properties/AssociatedPortalArns",
  "/properties/BrowserSettingsArn"
 ],
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::WorkSpacesWeb::BrowserSettings"
}
