{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-backup/json-schema/aws-backup-list-scan-jobs-output-schema.json",
  "title": "ListScanJobsOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-backup-scan-api-openapi.yml#/components/schemas/ListScanJobsOutput",
  "type": "object",
  "properties": {
    "NextToken": {
      "type": "string",
      "description": "The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token."
    },
    "ScanJobs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ScanJob"
      },
      "description": "An array of structures containing metadata about your scan jobs returned in JSON format."
    }
  },
  "required": [
    "ScanJobs"
  ],
  "$defs": {
    "ScanJob": {
      "type": "object",
      "properties": {
        "AccountId": {
          "type": "string",
          "description": "The account ID that owns the scan job."
        },
        "BackupVaultArn": {
          "type": "string",
          "description": "An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault."
        },
        "BackupVaultName": {
          "type": "string",
          "description": "The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created."
        },
        "CompletionDate": {
          "type": "string",
          "description": "The date and time that a scan job is completed, in Unix format and Coordinated Universal Time (UTC). The value of CompletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM."
        },
        "ContinuousScanEndTime": {
          "type": "string",
          "description": "The point in time the scan job scanned up to for a continuous backup."
        },
        "ContinuousScanStartTime": {
          "type": "string",
          "description": "The point in time the scan job started scan from for a continuous backup."
        },
        "CreatedBy": {
          "$ref": "#/$defs/ScanJobCreator"
        },
        "CreationDate": {
          "type": "string",
          "description": "The date and time that a scan job is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM."
        },
        "IamRoleArn": {
          "type": "string",
          "description": "Specifies the IAM role ARN used to create the scan job; for example, arn:aws:iam::123456789012:role/S3Access."
        },
        "MalwareScanner": {
          "type": "string",
          "enum": [
            "GUARDDUTY"
          ],
          "description": "The scanning engine used for the scan job. Currently only GUARDDUTY is supported."
        },
        "RecoveryPointArn": {
          "type": "string",
          "description": "An ARN that uniquely identifies the recovery point being scanned; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45."
        },
        "ResourceArn": {
          "type": "string",
          "description": "An ARN that uniquely identifies the source resource of the recovery point being scanned."
        },
        "ResourceName": {
          "type": "string",
          "description": "The non-unique name of the resource that belongs to the specified backup."
        },
        "ResourceType": {
          "type": "string",
          "enum": [
            "EBS",
            "EC2",
            "S3"
          ],
          "description": "The type of Amazon Web Services resource being scanned; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database."
        },
        "ScanBaseRecoveryPointArn": {
          "type": "string",
          "description": "An ARN that uniquely identifies the base recovery point for scanning. This field is populated when an incremental scan job has taken place."
        },
        "ScanId": {
          "type": "string",
          "description": "The scan ID generated by the malware scanner for the corresponding scan job."
        },
        "ScanJobId": {
          "type": "string",
          "description": "The unique identifier that identifies the scan job request to Backup."
        },
        "ScanMode": {
          "type": "string",
          "enum": [
            "FULL_SCAN",
            "INCREMENTAL_SCAN"
          ],
          "description": "Specifies the scan type use for the scan job. Includes: FULL_SCAN will scan the entire data lineage within the backup. INCREMENTAL_SCAN will scan the data difference between the target recovery point and base recovery point ARN."
        },
        "ScanResult": {
          "$ref": "#/$defs/ScanResultInfo"
        },
        "ScannerRoleArn": {
          "type": "string",
          "description": "Specifies the scanner IAM role ARN used for the scan job."
        },
        "State": {
          "type": "string",
          "enum": [
            "CANCELED",
            "COMPLETED",
            "COMPLETED_WITH_ISSUES",
            "CREATED",
            "FAILED",
            "RUNNING"
          ],
          "description": "The current state of the scan job. Valid values: CREATED | RUNNING | COMPLETED | COMPLETED_WITH_ISSUES | FAILED | CANCELED."
        },
        "StatusMessage": {
          "type": "string",
          "description": "A detailed message explaining the status of the scan job."
        }
      },
      "required": [
        "AccountId",
        "BackupVaultArn",
        "BackupVaultName",
        "CreatedBy",
        "CreationDate",
        "IamRoleArn",
        "MalwareScanner",
        "RecoveryPointArn",
        "ResourceArn",
        "ResourceName",
        "ResourceType",
        "ScanJobId",
        "ScanMode",
        "ScannerRoleArn"
      ]
    },
    "ScanJobCreator": {
      "type": "object",
      "properties": {
        "BackupPlanArn": {
          "type": "string",
          "description": "An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50."
        },
        "BackupPlanId": {
          "type": "string",
          "description": "The ID of the backup plan."
        },
        "BackupPlanVersion": {
          "type": "string",
          "description": "Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited."
        },
        "BackupRuleId": {
          "type": "string",
          "description": "Uniquely identifies the backup rule that initiated the scan job."
        }
      },
      "required": [
        "BackupPlanArn",
        "BackupPlanId",
        "BackupPlanVersion",
        "BackupRuleId"
      ]
    },
    "ScanResultInfo": {
      "type": "object",
      "properties": {
        "ScanResultStatus": {
          "type": "string",
          "enum": [
            "NO_THREATS_FOUND",
            "THREATS_FOUND",
            "UNKNOWN"
          ],
          "description": "The status of the scan results. Valid values: THREATS_FOUND | NO_THREATS_FOUND | UNKNOWN."
        }
      },
      "required": [
        "ScanResultStatus"
      ]
    }
  }
}