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
7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 | |