{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-list-malware-scans-response-schema.json",
  "title": "ListMalwareScansResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-guardduty-malware-scan-api-openapi.yml#/components/schemas/ListMalwareScansResponse",
  "type": "object",
  "properties": {
    "Scans": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MalwareScan"
      },
      "description": "The list of malware scans associated with the provided input parameters."
    },
    "NextToken": {
      "type": "string",
      "description": "The pagination parameter to be used on the next list operation to retrieve more scans."
    }
  },
  "required": [
    "Scans"
  ],
  "$defs": {
    "MalwareScan": {
      "type": "object",
      "properties": {
        "ResourceArn": {
          "type": "string",
          "description": "Amazon Resource Name (ARN) of the resource for the given malware scan."
        },
        "ResourceType": {
          "type": "string",
          "enum": [
            "EBS_RECOVERY_POINT",
            "EBS_SNAPSHOT",
            "EBS_VOLUME",
            "EC2_AMI",
            "EC2_INSTANCE",
            "EC2_RECOVERY_POINT",
            "S3_RECOVERY_POINT",
            "S3_BUCKET",
            "S3_POINT_IN_TIME_RECOVERY"
          ],
          "description": "The type of resource that was scanned for malware."
        },
        "ScanId": {
          "type": "string",
          "description": "A unique identifier that gets generated when you invoke the API without any error. Each malware scan has a corresponding scan ID. Using this scan ID, you can monitor the status of your malware scan."
        },
        "ScanStatus": {
          "type": "string",
          "enum": [
            "RUNNING",
            "COMPLETED",
            "COMPLETED_WITH_ISSUES",
            "FAILED",
            "SKIPPED"
          ],
          "description": "An enum value representing the current status of the malware scan."
        },
        "ScanResultStatus": {
          "type": "string",
          "enum": [
            "NO_THREATS_FOUND",
            "THREATS_FOUND"
          ],
          "description": "An enum value representing the result of the malware scan."
        },
        "ScanType": {
          "type": "string",
          "enum": [
            "BACKUP_INITIATED",
            "ON_DEMAND",
            "GUARDDUTY_INITIATED"
          ],
          "description": "An enum value representing the type of scan that was initiated."
        },
        "ScanStartedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp representing when the malware scan was started."
        },
        "ScanCompletedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp representing when the malware scan was completed."
        }
      }
    }
  }
}