{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-list-sessions-response-schema.json",
  "title": "ListSessionsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-deadline-cloud-sessions-api-openapi.yml#/components/schemas/ListSessionsResponse",
  "type": "object",
  "properties": {
    "sessions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SessionSummary"
      },
      "description": "The sessions on the list."
    },
    "nextToken": {
      "type": "string",
      "description": "If Deadline Cloud returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error."
    }
  },
  "required": [
    "sessions"
  ],
  "$defs": {
    "SessionSummary": {
      "type": "object",
      "properties": {
        "sessionId": {
          "type": "string",
          "description": "The session ID."
        },
        "fleetId": {
          "type": "string",
          "description": "The fleet ID."
        },
        "workerId": {
          "type": "string",
          "description": "The worker ID."
        },
        "startedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the resource started running."
        },
        "lifecycleStatus": {
          "type": "string",
          "enum": [
            "STARTED",
            "UPDATE_IN_PROGRESS",
            "UPDATE_SUCCEEDED",
            "UPDATE_FAILED",
            "ENDED"
          ],
          "description": "The life cycle status for the session."
        },
        "endedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the resource ended running."
        },
        "targetLifecycleStatus": {
          "type": "string",
          "enum": [
            "ENDED"
          ],
          "description": "The target life cycle status for the session."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the resource was updated."
        },
        "updatedBy": {
          "type": "string",
          "description": "The user or system that updated this resource."
        }
      },
      "required": [
        "sessionId",
        "fleetId",
        "workerId",
        "startedAt",
        "lifecycleStatus"
      ]
    }
  }
}