{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-eks/json-schema/amazon-eks-list-insights-request-schema.json",
  "title": "ListInsightsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-eks-operations-api-openapi.yml#/components/schemas/ListInsightsRequest",
  "type": "object",
  "properties": {
    "clusterName": {
      "type": "string",
      "description": "The name of the Amazon EKS cluster associated with the insights."
    },
    "filter": {
      "$ref": "#/$defs/InsightsFilter"
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of identity provider configurations returned by ListInsights in paginated output. When you use this parameter, ListInsights returns only maxResults results in a single page along with a nextToken response element. You can see the remaining results of the initial request by sending another ListInsights request with the returned nextToken value. This value can be between 1 and 100. If you don't use this parameter, ListInsights returns up to 100 results and a nextToken value, if applicable."
    },
    "nextToken": {
      "type": "string",
      "description": "The nextToken value returned from a previous paginated ListInsights request. When the results of a ListInsights request exceed maxResults, you can use this value to retrieve the next page of results. This value is null when there are no more results to return."
    }
  },
  "required": [
    "clusterName"
  ],
  "$defs": {
    "InsightsFilter": {
      "type": "object",
      "properties": {
        "categories": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "UPGRADE_READINESS",
              "MISCONFIGURATION",
              "ROLLBACK_READINESS"
            ]
          },
          "description": "The categories to use to filter insights. The following lists the available categories: UPGRADE_READINESS: Amazon EKS identifies issues that could impact your ability to upgrade to new versions of Kubernetes. These are called upgrade insights. MISCONFIGURATION: Amazon EKS identifies misconfiguration in your EKS Hybrid Nodes setup that could impair functionality of your cluster or workloads. These are called configuration insights."
        },
        "kubernetesVersions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Kubernetes versions to use to filter the insights."
        },
        "statuses": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "PASSING",
              "WARNING",
              "ERROR",
              "UNKNOWN"
            ]
          },
          "description": "The statuses to use to filter the insights."
        }
      }
    }
  }
}