{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-describe-malware-scans-response-schema.json",
  "title": "DescribeMalwareScansResponse",
  "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/DescribeMalwareScansResponse",
  "type": "object",
  "properties": {
    "Scans": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Scan"
      },
      "description": "Contains information about malware scans associated with GuardDuty Malware Protection for EC2."
    },
    "NextToken": {
      "type": "string",
      "description": "The pagination parameter to be used on the next list operation to retrieve more items."
    }
  },
  "required": [
    "Scans"
  ],
  "$defs": {
    "ResourceDetails": {
      "type": "object",
      "properties": {
        "InstanceArn": {
          "type": "string",
          "description": "Instance ARN that was scanned in the scan entry."
        }
      }
    },
    "Scan": {
      "type": "object",
      "properties": {
        "DetectorId": {
          "type": "string",
          "description": "The unique ID of the detector that is associated with the request. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API."
        },
        "AdminDetectorId": {
          "type": "string",
          "description": "The unique detector ID of the administrator account that the request is associated with. If the account is an administrator, the AdminDetectorId will be the same as the one used for DetectorId. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API."
        },
        "ScanId": {
          "type": "string",
          "description": "The unique scan ID associated with a scan entry."
        },
        "ScanStatus": {
          "type": "string",
          "enum": [
            "RUNNING",
            "COMPLETED",
            "FAILED",
            "SKIPPED"
          ],
          "description": "An enum value representing possible scan statuses."
        },
        "FailureReason": {
          "type": "string",
          "description": "Represents the reason for FAILED scan status."
        },
        "ScanStartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when the scan was triggered."
        },
        "ScanEndTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when the scan was finished."
        },
        "TriggerDetails": {
          "$ref": "#/$defs/TriggerDetails"
        },
        "ResourceDetails": {
          "$ref": "#/$defs/ResourceDetails"
        },
        "ScanResultDetails": {
          "$ref": "#/$defs/ScanResultDetails"
        },
        "AccountId": {
          "type": "string",
          "description": "The ID for the account that belongs to the scan."
        },
        "TotalBytes": {
          "type": "integer",
          "description": "Represents total bytes that were scanned."
        },
        "FileCount": {
          "type": "integer",
          "description": "Represents the number of files that were scanned."
        },
        "AttachedVolumes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/VolumeDetail"
          },
          "description": "List of volumes that were attached to the original instance to be scanned."
        },
        "ScanType": {
          "type": "string",
          "enum": [
            "GUARDDUTY_INITIATED",
            "ON_DEMAND"
          ],
          "description": "Specifies the scan type that invoked the malware scan."
        }
      }
    },
    "ScanResultDetails": {
      "type": "object",
      "properties": {
        "ScanResult": {
          "type": "string",
          "enum": [
            "CLEAN",
            "INFECTED"
          ],
          "description": "An enum value representing possible scan results."
        }
      }
    },
    "TriggerDetails": {
      "type": "object",
      "properties": {
        "GuardDutyFindingId": {
          "type": "string",
          "description": "The ID of the GuardDuty finding that triggered the malware scan."
        },
        "Description": {
          "type": "string",
          "description": "The description of the scan trigger."
        },
        "TriggerType": {
          "type": "string",
          "enum": [
            "BACKUP",
            "GUARDDUTY"
          ],
          "description": "Specifies the trigger type that started the malware scan."
        }
      }
    },
    "VolumeDetail": {
      "type": "object",
      "properties": {
        "VolumeArn": {
          "type": "string",
          "description": "EBS volume ARN information."
        },
        "VolumeType": {
          "type": "string",
          "description": "The EBS volume type."
        },
        "DeviceName": {
          "type": "string",
          "description": "The device name for the EBS volume."
        },
        "VolumeSizeInGB": {
          "type": "integer",
          "description": "EBS volume size in GB."
        },
        "EncryptionType": {
          "type": "string",
          "description": "EBS volume encryption type."
        },
        "SnapshotArn": {
          "type": "string",
          "description": "Snapshot ARN of the EBS volume."
        },
        "KmsKeyArn": {
          "type": "string",
          "description": "KMS key ARN used to encrypt the EBS volume."
        }
      }
    }
  }
}