{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces/json-schema/amazon-workspaces-list-workspace-instances-response-schema.json",
  "title": "ListWorkspaceInstancesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workspaces-workspace-instance-api-openapi.yml#/components/schemas/ListWorkspaceInstancesResponse",
  "type": "object",
  "properties": {
    "WorkspaceInstances": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkspaceInstance"
      },
      "description": "Collection of WorkSpaces Instances returned by the query."
    },
    "NextToken": {
      "type": "string",
      "description": "Token for retrieving additional WorkSpaces Instances if the result set is paginated."
    }
  },
  "required": [
    "WorkspaceInstances"
  ],
  "$defs": {
    "EC2ManagedInstance": {
      "type": "object",
      "properties": {
        "InstanceId": {
          "type": "string",
          "description": "Unique identifier of the managed EC2 instance."
        }
      }
    },
    "WorkspaceInstance": {
      "type": "object",
      "properties": {
        "ProvisionState": {
          "type": "string",
          "enum": [
            "ALLOCATING",
            "ALLOCATED",
            "DEALLOCATING",
            "DEALLOCATED",
            "ERROR_ALLOCATING",
            "ERROR_DEALLOCATING"
          ],
          "description": "Current provisioning state of the WorkSpace Instance."
        },
        "WorkspaceInstanceId": {
          "type": "string",
          "description": "Unique identifier for the WorkSpace Instance."
        },
        "EC2ManagedInstance": {
          "$ref": "#/$defs/EC2ManagedInstance"
        }
      }
    }
  }
}