{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces/json-schema/amazon-workspaces-update-workspaces-pool-request-schema.json",
  "title": "UpdateWorkspacesPoolRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workspaces-workspaces-pool-api-openapi.yml#/components/schemas/UpdateWorkspacesPoolRequest",
  "type": "object",
  "properties": {
    "PoolId": {
      "type": "string",
      "description": "The identifier of the specified pool to update."
    },
    "Description": {
      "type": "string",
      "description": "Describes the specified pool to update."
    },
    "BundleId": {
      "type": "string",
      "description": "The identifier of the bundle."
    },
    "DirectoryId": {
      "type": "string",
      "description": "The identifier of the directory."
    },
    "Capacity": {
      "$ref": "#/$defs/Capacity"
    },
    "ApplicationSettings": {
      "$ref": "#/$defs/ApplicationSettingsRequest"
    },
    "TimeoutSettings": {
      "$ref": "#/$defs/TimeoutSettings"
    },
    "RunningMode": {
      "type": "string",
      "enum": [
        "AUTO_STOP",
        "ALWAYS_ON"
      ],
      "description": "The desired running mode for the pool. The running mode can only be updated when the pool is in a stopped state."
    }
  },
  "required": [
    "PoolId"
  ],
  "$defs": {
    "ApplicationSettingsRequest": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "enum": [
            "DISABLED",
            "ENABLED"
          ],
          "description": "Enables or disables persistent application settings for users during their pool sessions."
        },
        "SettingsGroup": {
          "type": "string",
          "description": "The path prefix for the S3 bucket where users’ persistent application settings are stored. You can allow the same persistent application settings to be used across multiple pools by specifying the same settings group for each pool."
        }
      },
      "required": [
        "Status"
      ]
    },
    "Capacity": {
      "type": "object",
      "properties": {
        "DesiredUserSessions": {
          "type": "integer",
          "description": "The desired number of user sessions for the WorkSpaces in the pool."
        }
      },
      "required": [
        "DesiredUserSessions"
      ]
    },
    "TimeoutSettings": {
      "type": "object",
      "properties": {
        "DisconnectTimeoutInSeconds": {
          "type": "integer",
          "description": "Specifies the amount of time, in seconds, that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within the time set, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance."
        },
        "IdleDisconnectTimeoutInSeconds": {
          "type": "integer",
          "description": "The amount of time in seconds a connection will stay active while idle."
        },
        "MaxUserDurationInSeconds": {
          "type": "integer",
          "description": "Specifies the maximum amount of time, in seconds, that a streaming session can remain active. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance."
        }
      }
    }
  }
}