start_scan_job
¶
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[BackupClientConfig] = 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/backup.py
7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 | |