Struct aws_sdk_ssm::model::PatchRule
source · [−]#[non_exhaustive]pub struct PatchRule {
pub patch_filter_group: Option<PatchFilterGroup>,
pub compliance_level: Option<PatchComplianceLevel>,
pub approve_after_days: Option<i32>,
pub approve_until_date: Option<String>,
pub enable_non_security: Option<bool>,
}
Expand description
Defines an approval rule for a patch baseline.
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.patch_filter_group: Option<PatchFilterGroup>
The patch filter group that defines the criteria for the rule.
compliance_level: Option<PatchComplianceLevel>
A compliance severity level for all approved patches in a patch baseline.
approve_after_days: Option<i32>
The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of 7
means that patches are approved seven days after they are released. Not supported on Debian Server or Ubuntu Server.
approve_until_date: Option<String>
The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Not supported on Debian Server or Ubuntu Server.
Enter dates in the format YYYY-MM-DD
. For example, 2021-12-31
.
enable_non_security: Option<bool>
For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is false
. Applies to Linux managed nodes only.
Implementations
sourceimpl PatchRule
impl PatchRule
sourcepub fn patch_filter_group(&self) -> Option<&PatchFilterGroup>
pub fn patch_filter_group(&self) -> Option<&PatchFilterGroup>
The patch filter group that defines the criteria for the rule.
sourcepub fn compliance_level(&self) -> Option<&PatchComplianceLevel>
pub fn compliance_level(&self) -> Option<&PatchComplianceLevel>
A compliance severity level for all approved patches in a patch baseline.
sourcepub fn approve_after_days(&self) -> Option<i32>
pub fn approve_after_days(&self) -> Option<i32>
The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of 7
means that patches are approved seven days after they are released. Not supported on Debian Server or Ubuntu Server.
sourcepub fn approve_until_date(&self) -> Option<&str>
pub fn approve_until_date(&self) -> Option<&str>
The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Not supported on Debian Server or Ubuntu Server.
Enter dates in the format YYYY-MM-DD
. For example, 2021-12-31
.
sourcepub fn enable_non_security(&self) -> Option<bool>
pub fn enable_non_security(&self) -> Option<bool>
For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is false
. Applies to Linux managed nodes only.
Trait Implementations
impl StructuralPartialEq for PatchRule
Auto Trait Implementations
impl RefUnwindSafe for PatchRule
impl Send for PatchRule
impl Sync for PatchRule
impl Unpin for PatchRule
impl UnwindSafe for PatchRule
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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