{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-list-assessment-runs-request-schema.json",
  "title": "ListAssessmentRunsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-assessment-run-api-openapi.yml#/components/schemas/ListAssessmentRunsRequest",
  "type": "object",
  "properties": {
    "assessmentTemplateArns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The ARNs that specify the assessment templates whose assessment runs you want to list."
    },
    "filter": {
      "$ref": "#/$defs/AssessmentRunFilter"
    },
    "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 ListAssessmentRuns 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."
    }
  },
  "$defs": {
    "AssessmentRunFilter": {
      "type": "object",
      "properties": {
        "namePattern": {
          "type": "string",
          "description": "For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type."
        },
        "states": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "CREATED",
              "START_DATA_COLLECTION_PENDING",
              "START_DATA_COLLECTION_IN_PROGRESS",
              "COLLECTING_DATA",
              "STOP_DATA_COLLECTION_PENDING",
              "DATA_COLLECTED",
              "START_EVALUATING_RULES_PENDING",
              "EVALUATING_RULES",
              "FAILED",
              "ERROR",
              "COMPLETED",
              "COMPLETED_WITH_ERRORS",
              "CANCELED"
            ]
          },
          "description": "For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type."
        },
        "durationRange": {
          "$ref": "#/$defs/DurationRange"
        },
        "rulesPackageArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type."
        },
        "startTimeRange": {
          "$ref": "#/$defs/TimestampRange"
        },
        "completionTimeRange": {
          "$ref": "#/$defs/TimestampRange"
        },
        "stateChangeTimeRange": {
          "$ref": "#/$defs/TimestampRange"
        }
      }
    },
    "DurationRange": {
      "type": "object",
      "properties": {
        "minSeconds": {
          "type": "integer",
          "description": "The minimum value of the duration range. Must be greater than zero."
        },
        "maxSeconds": {
          "type": "integer",
          "description": "The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week)."
        }
      }
    },
    "TimestampRange": {
      "type": "object",
      "properties": {
        "beginDate": {
          "type": "string",
          "format": "date-time",
          "description": "The minimum value of the timestamp range."
        },
        "endDate": {
          "type": "string",
          "format": "date-time",
          "description": "The maximum value of the timestamp range."
        }
      }
    }
  }
}