{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-emr/json-schema/amazon-emr-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-emr-session-api-openapi.yml#/components/schemas/ListSessionsResponse",
  "type": "object",
  "properties": {
    "sessions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SessionSummary"
      },
      "description": "The output lists information about the specified sessions."
    },
    "nextToken": {
      "type": "string",
      "description": "The output displays the token for the next set of session results. This is required for pagination and is available as a response of the previous request."
    }
  },
  "required": [
    "sessions"
  ],
  "$defs": {
    "SessionSummary": {
      "type": "object",
      "properties": {
        "applicationId": {
          "type": "string",
          "description": "The ID of the application that the session belongs to."
        },
        "sessionId": {
          "type": "string",
          "description": "The ID of the session."
        },
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the session."
        },
        "name": {
          "type": "string",
          "description": "The optional name of the session."
        },
        "state": {
          "type": "string",
          "description": "The state of the session."
        },
        "stateDetails": {
          "type": "string",
          "description": "Additional details about the current state of the session."
        },
        "releaseLabel": {
          "type": "string",
          "description": "The Amazon EMR release label associated with the session."
        },
        "executionRoleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the execution role for the session."
        },
        "createdBy": {
          "type": "string",
          "description": "The IAM principal that created the session."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the session was created."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the session was last updated."
        }
      },
      "required": [
        "applicationId",
        "sessionId",
        "arn",
        "state",
        "stateDetails",
        "releaseLabel",
        "executionRoleArn",
        "createdBy",
        "createdAt",
        "updatedAt"
      ]
    }
  }
}