{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-list-coverage-request-schema.json",
  "title": "ListCoverageRequest",
  "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/ListCoverageRequest",
  "type": "object",
  "properties": {
    "DetectorId": {
      "type": "string",
      "description": "The unique ID of the detector whose coverage details you want to retrieve. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API."
    },
    "NextToken": {
      "type": "string",
      "description": "A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of results to return in the response."
    },
    "FilterCriteria": {
      "$ref": "#/$defs/CoverageFilterCriteria"
    },
    "SortCriteria": {
      "$ref": "#/$defs/CoverageSortCriteria"
    }
  },
  "required": [
    "DetectorId"
  ],
  "$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"
        }
      }
    },
    "CoverageSortCriteria": {
      "type": "object",
      "properties": {
        "AttributeName": {
          "type": "string",
          "enum": [
            "ACCOUNT_ID",
            "COVERAGE_STATUS",
            "ISSUE",
            "ADDON_VERSION",
            "UPDATED_AT",
            "CLUSTER_NAME",
            "EKS_CLUSTER_NAME",
            "ECS_CLUSTER_NAME",
            "INSTANCE_ID"
          ],
          "description": "Represents the field name used to sort the coverage details. Replace the enum value CLUSTER_NAME with EKS_CLUSTER_NAME. CLUSTER_NAME has been deprecated."
        },
        "OrderBy": {
          "type": "string",
          "enum": [
            "ASC",
            "DESC"
          ],
          "description": "The order in which the sorted findings are to be displayed."
        }
      }
    }
  }
}