{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-get-coverage-statistics-request-schema.json",
  "title": "GetCoverageStatisticsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-guardduty-operations-api-openapi.yml#/components/schemas/GetCoverageStatisticsRequest",
  "type": "object",
  "properties": {
    "DetectorId": {
      "type": "string",
      "description": "The unique ID of the GuardDuty detector. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API."
    },
    "FilterCriteria": {
      "$ref": "#/$defs/CoverageFilterCriteria"
    },
    "StatisticsType": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "COUNT_BY_RESOURCE_TYPE",
          "COUNT_BY_COVERAGE_STATUS"
        ]
      },
      "description": "Represents the statistics type used to aggregate the coverage details."
    }
  },
  "required": [
    "DetectorId",
    "StatisticsType"
  ],
  "$defs": {
    "CoverageFilterCondition": {
      "type": "object",
      "properties": {
        "Equals": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents an equal condition that is applied to a single field while retrieving the coverage details."
        },
        "NotEquals": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents a not equal condition that is applied to a single field while retrieving the coverage details."
        }
      }
    },
    "CoverageFilterCriteria": {
      "type": "object",
      "properties": {
        "FilterCriterion": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CoverageFilterCriterion"
          },
          "description": "Represents a condition that when matched will be added to the response of the operation."
        }
      }
    },
    "CoverageFilterCriterion": {
      "type": "object",
      "properties": {
        "CriterionKey": {
          "type": "string",
          "enum": [
            "ACCOUNT_ID",
            "RESOURCE_TYPE",
            "COVERAGE_STATUS",
            "ADDON_VERSION",
            "CLUSTER_NAME",
            "ECS_CLUSTER_NAME",
            "MANAGEMENT_TYPE",
            "EKS_CLUSTER_NAME",
            "AGENT_VERSION",
            "INSTANCE_ID",
            "CLUSTER_ARN"
          ],
          "description": "An enum value representing possible filter fields. Replace the enum value CLUSTER_NAME with EKS_CLUSTER_NAME. CLUSTER_NAME has been deprecated."
        },
        "FilterCondition": {
          "$ref": "#/$defs/CoverageFilterCondition"
        }
      }
    }
  }
}