start_scan_job
async
¶
start_scan_job(
backup_vault_name: str,
iam_role_arn: str,
malware_scanner: MalwareScanner,
recovery_point_arn: str,
scan_mode: ScanMode,
scanner_role_arn: str,
*,
config_overrides: Optional[AsyncBackupClientConfig] = None,
continuous_scan_end_time: Optional[datetime] = None,
idempotency_token: Optional[str] = None,
scan_base_recovery_point_arn: Optional[str] = None,
) -> StartScanJobOutput
Starts scanning jobs for specific resources.
Parameters:
-
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.
Pattern:
^[a-zA-Z0-9\-\_]{2,50}$ -
continuous_scan_end_time(Optional[datetime], default:None) –The point in time the scan job will scan up to for a continuous backup.
-
iam_role_arn(str) –Specifies the IAM role ARN used to create the target recovery point; for example,
arn:aws:iam::123456789012:role/S3Access. -
idempotency_token(Optional[str], default:None) –A customer-chosen string that you can use to distinguish between otherwise identical calls to
StartScanJob. Retrying a successful request with the same idempotency token results in a success message with no action taken. -
malware_scanner(MalwareScanner) –Specifies the malware scanner used during the scan job. Currently only supports
GUARDDUTY. -
recovery_point_arn(str) –An Amazon Resource Name (ARN) that uniquely identifies a recovery point. This is your target recovery point for a full scan. If you are running an incremental scan, this will be your a recovery point which has been created after your base recovery point selection.
-
scan_base_recovery_point_arn(Optional[str], default:None) –An ARN that uniquely identifies the base recovery point to be used for incremental scanning.
-
scan_mode(ScanMode) –Specifies the scan type use for the scan job.
Includes:
-
FULL_SCANwill scan the entire data lineage within the backup. -
INCREMENTAL_SCANwill scan the data difference between the target recovery point and base recovery point ARN.
-
-
scanner_role_arn(str) –Specified the IAM scanner role ARN.
Raises:
-
InvalidParameterValueException–Indicates that something is wrong with a parameter's value. For example, the value is out of range.
-
InvalidRequestException–Indicates that something is wrong with the input to the request. For example, a parameter is of the wrong type.
-
LimitExceededException–A limit in the request has been exceeded; for example, a maximum number of items allowed in a request.
-
MissingParameterValueException–Indicates that a required parameter is missing.
-
ResourceNotFoundException–A resource that is required for the action doesn't exist.
-
ServiceUnavailableException–The request failed due to a temporary failure of the server.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_backup/_services/async_backup.py
7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 | |