{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces/json-schema/amazon-workspaces-create-workspaces-pool-request-schema.json",
  "title": "CreateWorkspacesPoolRequest",
  "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/CreateWorkspacesPoolRequest",
  "type": "object",
  "properties": {
    "PoolName": {
      "type": "string",
      "description": "The name of the pool."
    },
    "Description": {
      "type": "string",
      "description": "The pool description."
    },
    "BundleId": {
      "type": "string",
      "description": "The identifier of the bundle for the pool."
    },
    "DirectoryId": {
      "type": "string",
      "description": "The identifier of the directory for the pool."
    },
    "Capacity": {
      "$ref": "#/$defs/Capacity"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tags for the pool."
    },
    "ApplicationSettings": {
      "$ref": "#/$defs/ApplicationSettingsRequest"
    },
    "TimeoutSettings": {
      "$ref": "#/$defs/TimeoutSettings"
    },
    "RunningMode": {
      "type": "string",
      "enum": [
        "AUTO_STOP",
        "ALWAYS_ON"
      ],
      "description": "The running mode for the pool."
    }
  },
  "required": [
    "PoolName",
    "Description",
    "BundleId",
    "DirectoryId",
    "Capacity"
  ],
  "$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"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of the tag."
        },
        "Value": {
          "type": "string",
          "description": "The value of the tag."
        }
      },
      "required": [
        "Key"
      ]
    },
    "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."
        }
      }
    }
  }
}