{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-list-assessment-run-agents-request-schema.json",
  "title": "ListAssessmentRunAgentsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-operations-api-openapi.yml#/components/schemas/ListAssessmentRunAgentsRequest",
  "type": "object",
  "properties": {
    "assessmentRunArn": {
      "type": "string",
      "description": "The ARN that specifies the assessment run whose agents you want to list."
    },
    "filter": {
      "$ref": "#/$defs/AgentFilter"
    },
    "nextToken": {
      "type": "string",
      "description": "You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentRunAgents action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data."
    },
    "maxResults": {
      "type": "integer",
      "description": "You can use this parameter to indicate the maximum number of items that you want in the response. The default value is 10. The maximum value is 500."
    }
  },
  "required": [
    "assessmentRunArn"
  ],
  "$defs": {
    "AgentFilter": {
      "type": "object",
      "properties": {
        "agentHealths": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "HEALTHY",
              "UNHEALTHY",
              "UNKNOWN"
            ]
          },
          "description": "The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY."
        },
        "agentHealthCodes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "IDLE",
              "RUNNING",
              "SHUTDOWN",
              "UNHEALTHY",
              "THROTTLED",
              "UNKNOWN"
            ]
          },
          "description": "The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN."
        }
      },
      "required": [
        "agentHealths",
        "agentHealthCodes"
      ]
    }
  }
}