Skip to content

get_pitr_malware_scan_results

get_pitr_malware_scan_results(
    recovery_point_arn: str,
    backup_vault_name: str,
    scan_end_time: datetime,
    malware_scanner: MalwareScanner,
    *,
    config_overrides: Optional[BackupClientConfig] = None,
) -> GetPITRMalwareScanResultsOutput

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

Parameters:

  • recovery_point_arn (str) –

    An 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.

  • backup_vault_name (str) –

    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.

  • scan_end_time (datetime) –

    The point in time within the continuous backup to examine for malware scan results.

  • malware_scanner (MalwareScanner) –

    The scanning engine used for the corresponding scan job. Currently only GUARDDUTY is supported.

Raises:

Source code in docs_src/capo_backup/_services/backup.py
def get_pitr_malware_scan_results(
    self,
    recovery_point_arn: str,
    backup_vault_name: str,
    scan_end_time: datetime.datetime,
    malware_scanner: "capo_backup.types.malware_scanner.MalwareScanner",
    *,
    config_overrides: Optional[BackupClientConfig] = None,
) -> "capo_backup.types.get_pitr_malware_scan_results_output.GetPITRMalwareScanResultsOutput":
    """<p>Returns the malware scan results for a specified point in time within a continuous (point-in-time recovery) backup.</p>

    Args:
        recovery_point_arn: <p>An ARN that uniquely identifies the target recovery point for scanning; for example, <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.</p>
        backup_vault_name: <p>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.</p>
        scan_end_time: <p>The point in time within the continuous backup to examine for malware scan results.</p>
        malware_scanner: <p>The scanning engine used for the corresponding scan job. Currently only <code>GUARDDUTY</code> is supported.</p>

    Raises:
        capo_backup.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>Indicates that something is wrong with a parameter's value. For example, the value is out of range.</p>
        capo_backup.errors.missing_parameter_value_exception.MissingParameterValueException: <p>Indicates that a required parameter is missing.</p>
        capo_backup.errors.resource_not_found_exception.ResourceNotFoundException: <p>A resource that is required for the action doesn't exist.</p>
        capo_backup.errors.service_unavailable_exception.ServiceUnavailableException: <p>The request failed due to a temporary failure of the server.</p>
        capo_backup.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_backup.types.get_pitr_malware_scan_results_input.GetPITRMalwareScanResultsInput]",
    ) -> OperationResponse[
        "capo_backup.types.get_pitr_malware_scan_results_output.GetPITRMalwareScanResultsOutput"
    ]:
        import capo_backup._operations.cryo_controller_user_manager.get_pitr_malware_scan_results

        output, http_response = (
            capo_backup._operations.cryo_controller_user_manager.get_pitr_malware_scan_results.get_pitr_malware_scan_results(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetPITRMalwareScanResults")
    )
    input_: capo_backup.types.get_pitr_malware_scan_results_input.GetPITRMalwareScanResultsInput = {
        "recovery_point_arn": recovery_point_arn,
        "backup_vault_name": backup_vault_name,
        "scan_end_time": scan_end_time,
        "malware_scanner": malware_scanner,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output