put_registry_scanning_configuration
¶
put_registry_scanning_configuration(
*,
config_overrides: Optional[ECRClientConfig] = None,
scan_type: Optional[ScanType] = None,
rules: Optional[RegistryScanningRuleList] = None,
) -> PutRegistryScanningConfigurationResponse
Creates or updates the scanning configuration for your private registry.
Parameters:
-
scan_type(Optional[ScanType], default:None) –The scanning type to set for the registry.
When a registry scanning configuration is not defined, by default the
BASICscan type is used. When basic scanning is used, you may specify filters to determine which individual repositories, or all repositories, are scanned when new images are pushed to those repositories. Alternatively, you can do manual scans of images with basic scanning.When the
ENHANCEDscan type is set, Amazon Inspector provides automated vulnerability scanning. You may choose between continuous scanning or scan on push and you may specify filters to determine which individual repositories, or all repositories, are scanned. -
rules(Optional[RegistryScanningRuleList], default:None) –The scanning rules to use for the registry. A scanning rule is used to determine which repository filters are used and at what frequency scanning will occur.
Raises:
-
BlockedByOrganizationPolicyException–The operation did not succeed because the account is managed by a organization policy.
-
InvalidParameterException–The specified parameter is invalid. Review the available parameters for the API request.
-
ServerException–These errors are usually caused by a server-side issue.
-
ValidationException–There was an exception validating this request.
-
UnknownServiceError–The service returned an error code this client does not model.