Skip to main content

pitr_malware_scan_results

Creates, updates, deletes, gets or lists a pitr_malware_scan_results resource.

Overview

Namepitr_malware_scan_results
TypeResource
Idaws.backup.pitr_malware_scan_results

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
last_scan_job_timestring (date-time)The completion time of the most recent scan job that covered the specified point in time.
scan_end_timestring (date-time)The point in time that was queried. This echoes back the time specified in the request.
scan_idstringThe scan ID generated by Amazon GuardDuty for the corresponding Scan Job ID request from Backup.
scan_modestringSpecifies the scan type used for the scan job. (FULL_SCAN, INCREMENTAL_SCAN)
scan_resultobjectContains the ScanResultStatus for the scan and returns THREATS_FOUND, NO_THREATS_FOUND, or UNKNOWN.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_pitr_malware_scan_resultsselectRecoveryPointArn, BackupVaultName, ScanEndTime, MalwareScanner, regionReturns the malware scan results for a specified point in time within a continuous (point-in-time recovery) backup.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
BackupVaultNamestringThe 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.
MalwareScannerstringThe scanning engine used for the corresponding scan job. Currently only GUARDDUTY is supported.
RecoveryPointArnstringAn ARN that uniquely identifies the target recovery point for scanning; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.
ScanEndTimestring (date-time)The point in time within the continuous backup to examine for malware scan results.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the malware scan results for a specified point in time within a continuous (point-in-time recovery) backup.

SELECT
last_scan_job_time,
scan_end_time,
scan_id,
scan_mode,
scan_result
FROM aws.backup.pitr_malware_scan_results
WHERE RecoveryPointArn = '{{ RecoveryPointArn }}' -- required
AND BackupVaultName = '{{ BackupVaultName }}' -- required
AND ScanEndTime = '{{ ScanEndTime }}' -- required
AND MalwareScanner = '{{ MalwareScanner }}' -- required
AND region = '{{ region }}' -- required
;