Struct aws_sdk_ssm::types::builders::PatchRuleBuilder
source · #[non_exhaustive]pub struct PatchRuleBuilder { /* private fields */ }
Expand description
A builder for PatchRule
.
Implementations§
source§impl PatchRuleBuilder
impl PatchRuleBuilder
sourcepub fn patch_filter_group(self, input: PatchFilterGroup) -> Self
pub fn patch_filter_group(self, input: PatchFilterGroup) -> Self
The patch filter group that defines the criteria for the rule.
This field is required.sourcepub fn set_patch_filter_group(self, input: Option<PatchFilterGroup>) -> Self
pub fn set_patch_filter_group(self, input: Option<PatchFilterGroup>) -> Self
The patch filter group that defines the criteria for the rule.
sourcepub fn get_patch_filter_group(&self) -> &Option<PatchFilterGroup>
pub fn get_patch_filter_group(&self) -> &Option<PatchFilterGroup>
The patch filter group that defines the criteria for the rule.
sourcepub fn compliance_level(self, input: PatchComplianceLevel) -> Self
pub fn compliance_level(self, input: PatchComplianceLevel) -> Self
A compliance severity level for all approved patches in a patch baseline.
sourcepub fn set_compliance_level(self, input: Option<PatchComplianceLevel>) -> Self
pub fn set_compliance_level(self, input: Option<PatchComplianceLevel>) -> Self
A compliance severity level for all approved patches in a patch baseline.
sourcepub fn get_compliance_level(&self) -> &Option<PatchComplianceLevel>
pub fn get_compliance_level(&self) -> &Option<PatchComplianceLevel>
A compliance severity level for all approved patches in a patch baseline.
sourcepub fn approve_after_days(self, input: i32) -> Self
pub fn approve_after_days(self, input: i32) -> Self
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 set_approve_after_days(self, input: Option<i32>) -> Self
pub fn set_approve_after_days(self, input: Option<i32>) -> Self
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 get_approve_after_days(&self) -> &Option<i32>
pub fn get_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, input: impl Into<String>) -> Self
pub fn approve_until_date(self, input: impl Into<String>) -> Self
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 set_approve_until_date(self, input: Option<String>) -> Self
pub fn set_approve_until_date(self, input: Option<String>) -> Self
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 get_approve_until_date(&self) -> &Option<String>
pub fn get_approve_until_date(&self) -> &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
.
sourcepub fn enable_non_security(self, input: bool) -> Self
pub fn enable_non_security(self, input: bool) -> Self
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.
sourcepub fn set_enable_non_security(self, input: Option<bool>) -> Self
pub fn set_enable_non_security(self, input: Option<bool>) -> Self
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.
sourcepub fn get_enable_non_security(&self) -> &Option<bool>
pub fn get_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§
source§impl Clone for PatchRuleBuilder
impl Clone for PatchRuleBuilder
source§fn clone(&self) -> PatchRuleBuilder
fn clone(&self) -> PatchRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PatchRuleBuilder
impl Debug for PatchRuleBuilder
source§impl Default for PatchRuleBuilder
impl Default for PatchRuleBuilder
source§fn default() -> PatchRuleBuilder
fn default() -> PatchRuleBuilder
source§impl PartialEq for PatchRuleBuilder
impl PartialEq for PatchRuleBuilder
source§fn eq(&self, other: &PatchRuleBuilder) -> bool
fn eq(&self, other: &PatchRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PatchRuleBuilder
Auto Trait Implementations§
impl Freeze for PatchRuleBuilder
impl RefUnwindSafe for PatchRuleBuilder
impl Send for PatchRuleBuilder
impl Sync for PatchRuleBuilder
impl Unpin for PatchRuleBuilder
impl UnwindSafe for PatchRuleBuilder
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> 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