Struct aws_sdk_ecr::types::builders::RegistryScanningRuleBuilder
source · #[non_exhaustive]pub struct RegistryScanningRuleBuilder { /* private fields */ }Expand description
A builder for RegistryScanningRule.
Implementations§
source§impl RegistryScanningRuleBuilder
impl RegistryScanningRuleBuilder
sourcepub fn scan_frequency(self, input: ScanFrequency) -> Self
pub fn scan_frequency(self, input: ScanFrequency) -> Self
The frequency that scans are performed at for a private registry. When the ENHANCED scan type is specified, the supported scan frequencies are CONTINUOUS_SCAN and SCAN_ON_PUSH. When the BASIC scan type is specified, the SCAN_ON_PUSH scan frequency is supported. If scan on push is not specified, then the MANUAL scan frequency is set by default.
sourcepub fn set_scan_frequency(self, input: Option<ScanFrequency>) -> Self
pub fn set_scan_frequency(self, input: Option<ScanFrequency>) -> Self
The frequency that scans are performed at for a private registry. When the ENHANCED scan type is specified, the supported scan frequencies are CONTINUOUS_SCAN and SCAN_ON_PUSH. When the BASIC scan type is specified, the SCAN_ON_PUSH scan frequency is supported. If scan on push is not specified, then the MANUAL scan frequency is set by default.
sourcepub fn get_scan_frequency(&self) -> &Option<ScanFrequency>
pub fn get_scan_frequency(&self) -> &Option<ScanFrequency>
The frequency that scans are performed at for a private registry. When the ENHANCED scan type is specified, the supported scan frequencies are CONTINUOUS_SCAN and SCAN_ON_PUSH. When the BASIC scan type is specified, the SCAN_ON_PUSH scan frequency is supported. If scan on push is not specified, then the MANUAL scan frequency is set by default.
sourcepub fn repository_filters(self, input: ScanningRepositoryFilter) -> Self
pub fn repository_filters(self, input: ScanningRepositoryFilter) -> Self
Appends an item to repository_filters.
To override the contents of this collection use set_repository_filters.
The repository filters associated with the scanning configuration for a private registry.
sourcepub fn set_repository_filters(
self,
input: Option<Vec<ScanningRepositoryFilter>>
) -> Self
pub fn set_repository_filters( self, input: Option<Vec<ScanningRepositoryFilter>> ) -> Self
The repository filters associated with the scanning configuration for a private registry.
sourcepub fn get_repository_filters(&self) -> &Option<Vec<ScanningRepositoryFilter>>
pub fn get_repository_filters(&self) -> &Option<Vec<ScanningRepositoryFilter>>
The repository filters associated with the scanning configuration for a private registry.
sourcepub fn build(self) -> Result<RegistryScanningRule, BuildError>
pub fn build(self) -> Result<RegistryScanningRule, BuildError>
Consumes the builder and constructs a RegistryScanningRule.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RegistryScanningRuleBuilder
impl Clone for RegistryScanningRuleBuilder
source§fn clone(&self) -> RegistryScanningRuleBuilder
fn clone(&self) -> RegistryScanningRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RegistryScanningRuleBuilder
impl Debug for RegistryScanningRuleBuilder
source§impl Default for RegistryScanningRuleBuilder
impl Default for RegistryScanningRuleBuilder
source§fn default() -> RegistryScanningRuleBuilder
fn default() -> RegistryScanningRuleBuilder
source§impl PartialEq for RegistryScanningRuleBuilder
impl PartialEq for RegistryScanningRuleBuilder
source§fn eq(&self, other: &RegistryScanningRuleBuilder) -> bool
fn eq(&self, other: &RegistryScanningRuleBuilder) -> bool
self and other values to be equal, and is used
by ==.