{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-get-cis-scan-result-details-request-schema.json",
  "title": "GetCisScanResultDetailsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-cis-api-openapi.yml#/components/schemas/GetCisScanResultDetailsRequest",
  "type": "object",
  "properties": {
    "scanArn": {
      "type": "string",
      "description": "The scan ARN."
    },
    "targetResourceId": {
      "type": "string",
      "description": "The target resource ID."
    },
    "accountId": {
      "type": "string",
      "description": "The account ID."
    },
    "filterCriteria": {
      "$ref": "#/$defs/CisScanResultDetailsFilterCriteria"
    },
    "sortBy": {
      "type": "string",
      "enum": [
        "CHECK_ID",
        "STATUS"
      ],
      "description": "The sort by order."
    },
    "sortOrder": {
      "type": "string",
      "enum": [
        "ASC",
        "DESC"
      ],
      "description": "The sort order."
    },
    "nextToken": {
      "type": "string",
      "description": "The pagination token from a previous request that's used to retrieve the next page of results."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of CIS scan result details to be returned in a single page of results."
    }
  },
  "required": [
    "scanArn",
    "targetResourceId",
    "accountId"
  ],
  "$defs": {
    "CisFindingStatusFilter": {
      "type": "object",
      "properties": {
        "comparison": {
          "type": "string",
          "enum": [
            "EQUALS"
          ],
          "description": "The comparison value of the CIS finding status filter."
        },
        "value": {
          "type": "string",
          "enum": [
            "PASSED",
            "FAILED",
            "SKIPPED"
          ],
          "description": "The value of the CIS finding status filter."
        }
      },
      "required": [
        "comparison",
        "value"
      ]
    },
    "CisScanResultDetailsFilterCriteria": {
      "type": "object",
      "properties": {
        "findingStatusFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisFindingStatusFilter"
          },
          "description": "The criteria's finding status filters."
        },
        "checkIdFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisStringFilter"
          },
          "description": "The criteria's check ID filters."
        },
        "titleFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisStringFilter"
          },
          "description": "The criteria's title filters."
        },
        "securityLevelFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisSecurityLevelFilter"
          },
          "description": "The criteria's security level filters. . Security level refers to the Benchmark levels that CIS assigns to a profile."
        },
        "findingArnFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisStringFilter"
          },
          "description": "The criteria's finding ARN filters."
        }
      }
    },
    "CisSecurityLevelFilter": {
      "type": "object",
      "properties": {
        "comparison": {
          "type": "string",
          "enum": [
            "EQUALS"
          ],
          "description": "The CIS security filter comparison value."
        },
        "value": {
          "type": "string",
          "enum": [
            "LEVEL_1",
            "LEVEL_2"
          ],
          "description": "The CIS security filter value."
        }
      },
      "required": [
        "comparison",
        "value"
      ]
    },
    "CisStringFilter": {
      "type": "object",
      "properties": {
        "comparison": {
          "type": "string",
          "enum": [
            "EQUALS",
            "PREFIX",
            "NOT_EQUALS"
          ],
          "description": "The comparison value of the CIS string filter."
        },
        "value": {
          "type": "string",
          "description": "The value of the CIS string filter."
        }
      },
      "required": [
        "comparison",
        "value"
      ]
    }
  }
}