{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-inspector/refs/heads/main/json-schema/inspector-finding-type-aggregation-schema.json",
  "title": "FindingTypeAggregation",
  "description": "The details that define an aggregation based on finding type.",
  "type": "object",
  "properties": {
    "findingType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AggregationFindingType"
        },
        {
          "description": "The finding type to aggregate."
        }
      ]
    },
    "resourceType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AggregationResourceType"
        },
        {
          "description": "The resource type to aggregate."
        }
      ]
    },
    "sortBy": {
      "allOf": [
        {
          "$ref": "#/components/schemas/FindingTypeSortBy"
        },
        {
          "description": "The value to sort results by."
        }
      ]
    },
    "sortOrder": {
      "allOf": [
        {
          "$ref": "#/components/schemas/SortOrder"
        },
        {
          "description": "The order to sort results by."
        }
      ]
    }
  }
}