{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces-web/json-schema/amazon-workspaces-web-create-browser-settings-request-schema.json",
  "title": "CreateBrowserSettingsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workspaces-web-browser-settings-api-openapi.yml#/components/schemas/CreateBrowserSettingsRequest",
  "type": "object",
  "properties": {
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tags to add to the browser settings resource. A tag is a key-value pair."
    },
    "customerManagedKey": {
      "type": "string",
      "description": "The custom managed key of the browser settings."
    },
    "additionalEncryptionContext": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Additional encryption context of the browser settings."
    },
    "browserPolicy": {
      "type": "string",
      "description": "A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request. If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK."
    },
    "webContentFilteringPolicy": {
      "$ref": "#/$defs/WebContentFilteringPolicy"
    }
  },
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of the tag."
        },
        "Value": {
          "type": "string",
          "description": "The value of the tag"
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "WebContentFilteringPolicy": {
      "type": "object",
      "properties": {
        "blockedCategories": {
          "type": "array",
          "items": {
            "type": "string",
            "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"
            ]
          },
          "description": "Categories of websites that are blocked on the end user’s browsers."
        },
        "allowedUrls": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "URLs and domains that are always accessible to end users."
        },
        "blockedUrls": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "URLs and domains that end users cannot access."
        }
      }
    }
  }
}