{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-stop-cis-session-request-schema.json",
  "title": "StopCisSessionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-cissession-api-openapi.yml#/components/schemas/StopCisSessionRequest",
  "type": "object",
  "properties": {
    "scanJobId": {
      "type": "string",
      "description": "A unique identifier for the scan job."
    },
    "sessionToken": {
      "type": "string",
      "description": "The unique token that identifies the CIS session."
    },
    "message": {
      "$ref": "#/$defs/StopCisSessionMessage"
    }
  },
  "required": [
    "scanJobId",
    "sessionToken",
    "message"
  ],
  "$defs": {
    "ComputePlatform": {
      "type": "object",
      "properties": {
        "vendor": {
          "type": "string",
          "description": "The compute platform vendor."
        },
        "product": {
          "type": "string",
          "description": "The compute platform product."
        },
        "version": {
          "type": "string",
          "description": "The compute platform version."
        }
      }
    },
    "StopCisMessageProgress": {
      "type": "object",
      "properties": {
        "totalChecks": {
          "type": "integer",
          "description": "The progress' total checks."
        },
        "successfulChecks": {
          "type": "integer",
          "description": "The progress' successful checks."
        },
        "failedChecks": {
          "type": "integer",
          "description": "The progress' failed checks."
        },
        "notEvaluatedChecks": {
          "type": "integer",
          "description": "The progress' not evaluated checks."
        },
        "unknownChecks": {
          "type": "integer",
          "description": "The progress' unknown checks."
        },
        "notApplicableChecks": {
          "type": "integer",
          "description": "The progress' not applicable checks."
        },
        "informationalChecks": {
          "type": "integer",
          "description": "The progress' informational checks."
        },
        "errorChecks": {
          "type": "integer",
          "description": "The progress' error checks."
        }
      }
    },
    "StopCisSessionMessage": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "SUCCESS",
            "FAILED",
            "INTERRUPTED",
            "UNSUPPORTED_OS"
          ],
          "description": "The status of the message."
        },
        "reason": {
          "type": "string",
          "description": "The reason for the message."
        },
        "progress": {
          "$ref": "#/$defs/StopCisMessageProgress"
        },
        "computePlatform": {
          "$ref": "#/$defs/ComputePlatform"
        },
        "benchmarkVersion": {
          "type": "string",
          "description": "The message benchmark version."
        },
        "benchmarkProfile": {
          "type": "string",
          "description": "The message benchmark profile."
        }
      },
      "required": [
        "status",
        "progress"
      ]
    }
  }
}