{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-list-cis-scans-request-schema.json",
  "title": "ListCisScansRequest",
  "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/ListCisScansRequest",
  "type": "object",
  "properties": {
    "filterCriteria": {
      "$ref": "#/$defs/ListCisScansFilterCriteria"
    },
    "detailLevel": {
      "type": "string",
      "enum": [
        "ORGANIZATION",
        "MEMBER"
      ],
      "description": "The detail applied to the CIS scan."
    },
    "sortBy": {
      "type": "string",
      "enum": [
        "STATUS",
        "SCHEDULED_BY",
        "SCAN_START_DATE",
        "FAILED_CHECKS"
      ],
      "description": "The CIS scans sort by order."
    },
    "sortOrder": {
      "type": "string",
      "enum": [
        "ASC",
        "DESC"
      ],
      "description": "The CIS scans 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 results to be returned."
    }
  },
  "$defs": {
    "CisDateFilter": {
      "type": "object",
      "properties": {
        "earliestScanStartTime": {
          "type": "string",
          "description": "The CIS date filter's earliest scan start time."
        },
        "latestScanStartTime": {
          "type": "string",
          "description": "The CIS date filter's latest scan start time."
        }
      }
    },
    "CisNumberFilter": {
      "type": "object",
      "properties": {
        "upperInclusive": {
          "type": "integer",
          "description": "The CIS number filter's upper inclusive."
        },
        "lowerInclusive": {
          "type": "integer",
          "description": "The CIS number filter's lower inclusive."
        }
      }
    },
    "CisScanStatusFilter": {
      "type": "object",
      "properties": {
        "comparison": {
          "type": "string",
          "enum": [
            "EQUALS"
          ],
          "description": "The filter comparison value."
        },
        "value": {
          "type": "string",
          "enum": [
            "FAILED",
            "COMPLETED",
            "CANCELLED",
            "IN_PROGRESS"
          ],
          "description": "The 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"
      ]
    },
    "ListCisScansFilterCriteria": {
      "type": "object",
      "properties": {
        "scanNameFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisStringFilter"
          },
          "description": "The list of scan name filters."
        },
        "targetResourceTagFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TagFilter"
          },
          "description": "The list of target resource tag filters."
        },
        "targetResourceIdFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisStringFilter"
          },
          "description": "The list of target resource ID filters."
        },
        "scanStatusFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisScanStatusFilter"
          },
          "description": "The list of scan status filters."
        },
        "scanAtFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisDateFilter"
          },
          "description": "The list of scan at filters."
        },
        "scanConfigurationArnFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisStringFilter"
          },
          "description": "The list of scan configuration ARN filters."
        },
        "scanArnFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisStringFilter"
          },
          "description": "The list of scan ARN filters."
        },
        "scheduledByFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisStringFilter"
          },
          "description": "The list of scheduled by filters."
        },
        "failedChecksFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisNumberFilter"
          },
          "description": "The list of failed checks filters."
        },
        "targetAccountIdFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CisStringFilter"
          },
          "description": "The list of target account ID filters."
        }
      }
    },
    "TagFilter": {
      "type": "object",
      "properties": {
        "comparison": {
          "type": "string",
          "enum": [
            "EQUALS"
          ],
          "description": "The tag filter comparison value."
        },
        "key": {
          "type": "string",
          "description": "The tag filter key."
        },
        "value": {
          "type": "string",
          "description": "The tag filter value."
        }
      },
      "required": [
        "comparison",
        "key",
        "value"
      ]
    }
  }
}