{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces-web/json-schema/amazon-workspaces-web-update-user-settings-request-schema.json",
  "title": "UpdateUserSettingsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workspaces-web-user-settings-api-openapi.yml#/components/schemas/UpdateUserSettingsRequest",
  "type": "object",
  "properties": {
    "userSettingsArn": {
      "type": "string",
      "description": "The ARN of the user settings."
    },
    "copyAllowed": {
      "type": "string",
      "description": "Specifies whether the user can copy text from the streaming session to the local device."
    },
    "pasteAllowed": {
      "type": "string",
      "description": "Specifies whether the user can paste text from the local device to the streaming session."
    },
    "downloadAllowed": {
      "type": "string",
      "description": "Specifies whether the user can download files from the streaming session to the local device."
    },
    "uploadAllowed": {
      "type": "string",
      "description": "Specifies whether the user can upload files from the local device to the streaming session."
    },
    "printAllowed": {
      "type": "string",
      "description": "Specifies whether the user can print to the local device."
    },
    "disconnectTimeoutInMinutes": {
      "type": "integer",
      "description": "The amount of time that a streaming session remains active after users disconnect."
    },
    "idleDisconnectTimeoutInMinutes": {
      "type": "integer",
      "description": "The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the disconnect timeout interval begins."
    },
    "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 return 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."
    },
    "cookieSynchronizationConfiguration": {
      "$ref": "#/$defs/CookieSynchronizationConfiguration"
    },
    "deepLinkAllowed": {
      "type": "string",
      "description": "Specifies whether the user can use deep links that open automatically when connecting to a session."
    },
    "toolbarConfiguration": {
      "$ref": "#/$defs/ToolbarConfiguration"
    },
    "brandingConfigurationInput": {
      "$ref": "#/$defs/BrandingConfigurationUpdateInput"
    },
    "webAuthnAllowed": {
      "type": "string",
      "description": "Specifies whether the user can use WebAuthn redirection for passwordless login to websites within the streaming session."
    }
  },
  "required": [
    "userSettingsArn"
  ],
  "$defs": {
    "BrandingConfigurationUpdateInput": {
      "type": "object",
      "properties": {
        "logo": {
          "$ref": "#/$defs/IconImageInput"
        },
        "wallpaper": {
          "$ref": "#/$defs/WallpaperImageInput"
        },
        "favicon": {
          "$ref": "#/$defs/IconImageInput"
        },
        "localizedStrings": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/LocalizedBrandingStrings"
          },
          "description": "A map of localized text strings for different supported languages. Each locale must provide the required fields browserTabTitle and welcomeText."
        },
        "colorTheme": {
          "type": "string",
          "enum": [
            "Light",
            "Dark"
          ],
          "description": "The color theme for components on the web portal. Choose Light if you upload a dark wallpaper, or Dark for a light wallpaper."
        },
        "termsOfService": {
          "type": "string",
          "description": "The terms of service text in Markdown format. To remove existing terms of service, provide an empty string."
        }
      }
    },
    "CookieSpecification": {
      "type": "object",
      "properties": {
        "domain": {
          "type": "string",
          "description": "The domain of the cookie."
        },
        "name": {
          "type": "string",
          "description": "The name of the cookie."
        },
        "path": {
          "type": "string",
          "description": "The path of the cookie."
        }
      },
      "required": [
        "domain"
      ]
    },
    "CookieSynchronizationConfiguration": {
      "type": "object",
      "properties": {
        "allowlist": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CookieSpecification"
          },
          "description": "The list of cookie specifications that are allowed to be synchronized to the remote browser."
        },
        "blocklist": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CookieSpecification"
          },
          "description": "The list of cookie specifications that are blocked from being synchronized to the remote browser."
        }
      },
      "required": [
        "allowlist"
      ]
    },
    "IconImageInput": {
      "type": "object",
      "properties": {
        "blob": {
          "type": "string",
          "format": "byte",
          "description": "The image provided as a binary image file."
        },
        "s3Uri": {
          "type": "string",
          "description": "The S3 URI pointing to the image file. The URI must use the format s3://bucket-name/key-name. You must have read access to the S3 object."
        }
      },
      "description": "Exactly one member is set."
    },
    "LocalizedBrandingStrings": {
      "type": "object",
      "properties": {
        "browserTabTitle": {
          "type": "string",
          "description": "The text displayed in the browser tab title."
        },
        "welcomeText": {
          "type": "string",
          "description": "The welcome text displayed on the sign-in page."
        },
        "loginTitle": {
          "type": "string",
          "description": "The title text for the login section. This field is optional and defaults to \"Sign In\"."
        },
        "loginDescription": {
          "type": "string",
          "description": "The description text for the login section. This field is optional and defaults to \"Sign in to your session\"."
        },
        "loginButtonText": {
          "type": "string",
          "description": "The text displayed on the login button. This field is optional and defaults to \"Sign In\"."
        },
        "contactLink": {
          "type": "string",
          "description": "A contact link URL. The URL must start with https:// or mailto:. If not provided, the contact button will be hidden from the web portal screen."
        },
        "contactButtonText": {
          "type": "string",
          "description": "The text displayed on the contact button. This field is optional and defaults to \"Contact us\"."
        },
        "loadingText": {
          "type": "string",
          "description": "The text displayed during session loading. This field is optional and defaults to \"Loading your session\"."
        }
      },
      "required": [
        "browserTabTitle",
        "welcomeText"
      ]
    },
    "ToolbarConfiguration": {
      "type": "object",
      "properties": {
        "toolbarType": {
          "type": "string",
          "description": "The type of toolbar displayed during the session."
        },
        "visualMode": {
          "type": "string",
          "description": "The visual mode of the toolbar."
        },
        "hiddenToolbarItems": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of toolbar items to be hidden."
        },
        "maxDisplayResolution": {
          "type": "string",
          "description": "The maximum display resolution that is allowed for the session."
        }
      }
    },
    "WallpaperImageInput": {
      "type": "object",
      "properties": {
        "blob": {
          "type": "string",
          "format": "byte",
          "description": "The image provided as a binary image file."
        },
        "s3Uri": {
          "type": "string",
          "description": "The S3 URI pointing to the image file. The URI must use the format s3://bucket-name/key-name. You must have read access to the S3 object."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}