#[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
sourceimpl PutRegistryScanningConfigurationInput
impl PutRegistryScanningConfigurationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutRegistryScanningConfiguration, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutRegistryScanningConfiguration, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<PutRegistryScanningConfiguration
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PutRegistryScanningConfigurationInput
.
sourceimpl 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) -> Option<&[RegistryScanningRule]>
pub fn rules(&self) -> Option<&[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.
Trait Implementations
sourceimpl Clone for PutRegistryScanningConfigurationInput
impl Clone for PutRegistryScanningConfigurationInput
sourcefn clone(&self) -> PutRegistryScanningConfigurationInput
fn clone(&self) -> PutRegistryScanningConfigurationInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<PutRegistryScanningConfigurationInput> for PutRegistryScanningConfigurationInput
impl PartialEq<PutRegistryScanningConfigurationInput> for PutRegistryScanningConfigurationInput
sourcefn eq(&self, other: &PutRegistryScanningConfigurationInput) -> bool
fn eq(&self, other: &PutRegistryScanningConfigurationInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PutRegistryScanningConfigurationInput) -> bool
fn ne(&self, other: &PutRegistryScanningConfigurationInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for PutRegistryScanningConfigurationInput
Auto Trait Implementations
impl RefUnwindSafe for PutRegistryScanningConfigurationInput
impl Send for PutRegistryScanningConfigurationInput
impl Sync for PutRegistryScanningConfigurationInput
impl Unpin for PutRegistryScanningConfigurationInput
impl UnwindSafe for PutRegistryScanningConfigurationInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more