{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-emr/json-schema/amazon-emr-list-sessions-input-schema.json",
  "title": "ListSessionsInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-emr-session-api-openapi.yml#/components/schemas/ListSessionsInput",
  "type": "object",
  "properties": {
    "ClusterId": {
      "type": "string",
      "description": "The ID of the cluster to list sessions for."
    },
    "SessionStates": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "SUBMITTED",
          "STARTING",
          "STARTED",
          "IDLE",
          "BUSY",
          "TERMINATING",
          "TERMINATED",
          "FAILED"
        ]
      },
      "description": "An optional filter that limits the results to sessions in the specified states."
    },
    "NextToken": {
      "type": "string",
      "description": "The pagination token returned by a previous ListSessions call. Use it to retrieve the next page of results."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of sessions to return in each page of results."
    }
  },
  "required": [
    "ClusterId"
  ]
}