{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-get-code-security-scan-response-schema.json",
  "title": "GetCodeSecurityScanResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-codesecurity-api-openapi.yml#/components/schemas/GetCodeSecurityScanResponse",
  "type": "object",
  "properties": {
    "scanId": {
      "type": "string",
      "description": "The unique identifier of the scan."
    },
    "resource": {
      "$ref": "#/$defs/CodeSecurityResource"
    },
    "accountId": {
      "type": "string",
      "description": "The Amazon Web Services account ID associated with the scan."
    },
    "status": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "SUCCESSFUL",
        "FAILED",
        "SKIPPED"
      ],
      "description": "The current status of the scan."
    },
    "statusReason": {
      "type": "string",
      "description": "The reason for the current status of the scan."
    },
    "createdAt": {
      "type": "string",
      "description": "The timestamp when the scan was created."
    },
    "updatedAt": {
      "type": "string",
      "description": "The timestamp when the scan was last updated."
    },
    "lastCommitId": {
      "type": "string",
      "description": "The identifier of the last commit that was scanned. This is only returned if the scan was successful or skipped."
    }
  },
  "$defs": {
    "CodeSecurityResource": {
      "type": "object",
      "properties": {
        "projectId": {
          "type": "string",
          "description": "The unique identifier of the project in the code repository."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}