{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces-web/json-schema/amazon-workspaces-web-list-sessions-request-schema.json",
  "title": "ListSessionsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workspaces-web-sessions-api-openapi.yml#/components/schemas/ListSessionsRequest",
  "type": "object",
  "properties": {
    "portalId": {
      "type": "string",
      "description": "The ID of the web portal for the sessions."
    },
    "username": {
      "type": "string",
      "description": "The username of the session."
    },
    "sessionId": {
      "type": "string",
      "description": "The ID of the session."
    },
    "sortBy": {
      "type": "string",
      "enum": [
        "StartTimeAscending",
        "StartTimeDescending"
      ],
      "description": "The method in which the returned sessions should be sorted."
    },
    "status": {
      "type": "string",
      "enum": [
        "Active",
        "Terminated"
      ],
      "description": "The status of the session."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of results to be included in the next page."
    },
    "nextToken": {
      "type": "string",
      "description": "The pagination token used to retrieve the next page of results for this operation."
    }
  },
  "required": [
    "portalId"
  ]
}