{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-inspector-list-findings-request-schema.json",
  "title": "InspectorListFindingsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-findings-api-openapi.yml#/components/schemas/InspectorListFindingsRequest",
  "type": "object",
  "properties": {
    "assessmentRunArns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The ARNs of the assessment runs that generate the findings that you want to list."
    },
    "filter": {
      "$ref": "#/$defs/FindingFilter"
    },
    "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 ListFindings 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 you want in the response. The default value is 10. The maximum value is 500."
    }
  },
  "$defs": {
    "Attribute": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The attribute key."
        },
        "value": {
          "type": "string",
          "description": "The value assigned to the attribute key."
        }
      },
      "required": [
        "key"
      ]
    },
    "FindingFilter": {
      "type": "object",
      "properties": {
        "agentIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type."
        },
        "autoScalingGroups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type."
        },
        "ruleNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type."
        },
        "severities": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "Low",
              "Medium",
              "High",
              "Informational",
              "Undefined"
            ]
          },
          "description": "For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type."
        },
        "rulesPackageArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type."
        },
        "attributes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Attribute"
          },
          "description": "For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type."
        },
        "userAttributes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Attribute"
          },
          "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 userAttributes property of the Finding data type."
        },
        "creationTimeRange": {
          "$ref": "#/$defs/TimestampRange"
        }
      }
    },
    "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."
        }
      }
    }
  }
}