Struct aws_sdk_ecr::operation::put_registry_scanning_configuration::PutRegistryScanningConfigurationInput
source · #[non_exhaustive]pub struct PutRegistryScanningConfigurationInput {
pub scan_type: Option<ScanType>,
pub rules: Option<Vec<RegistryScanningRule>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scan_type: Option<ScanType>The scanning type to set for the registry.
When a registry scanning configuration is not defined, by default the BASIC scan 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 ENHANCED scan 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: Option<Vec<RegistryScanningRule>>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.
Implementations§
source§impl PutRegistryScanningConfigurationInput
impl PutRegistryScanningConfigurationInput
sourcepub fn scan_type(&self) -> Option<&ScanType>
pub fn scan_type(&self) -> Option<&ScanType>
The scanning type to set for the registry.
When a registry scanning configuration is not defined, by default the BASIC scan 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 ENHANCED scan 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.
sourcepub fn rules(&self) -> &[RegistryScanningRule]
pub fn rules(&self) -> &[RegistryScanningRule]
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .rules.is_none().
source§impl PutRegistryScanningConfigurationInput
impl PutRegistryScanningConfigurationInput
sourcepub fn builder() -> PutRegistryScanningConfigurationInputBuilder
pub fn builder() -> PutRegistryScanningConfigurationInputBuilder
Creates a new builder-style object to manufacture PutRegistryScanningConfigurationInput.
Trait Implementations§
source§impl Clone for PutRegistryScanningConfigurationInput
impl Clone for PutRegistryScanningConfigurationInput
source§fn clone(&self) -> PutRegistryScanningConfigurationInput
fn clone(&self) -> PutRegistryScanningConfigurationInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for PutRegistryScanningConfigurationInput
impl PartialEq for PutRegistryScanningConfigurationInput
source§fn eq(&self, other: &PutRegistryScanningConfigurationInput) -> bool
fn eq(&self, other: &PutRegistryScanningConfigurationInput) -> bool
self and other values to be equal, and is used
by ==.