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
impl StructuralPartialEq for RegistryScanningRuleBuilder
Auto Trait Implementations§
impl Freeze for RegistryScanningRuleBuilder
impl RefUnwindSafe for RegistryScanningRuleBuilder
impl Send for RegistryScanningRuleBuilder
impl Sync for RegistryScanningRuleBuilder
impl Unpin for RegistryScanningRuleBuilder
impl UnwindSafe for RegistryScanningRuleBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more