aws_sdk_ssm/client/
update_patch_baseline.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdatePatchBaseline`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`baseline_id(impl Into<String>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::baseline_id) / [`set_baseline_id(Option<String>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_baseline_id):<br>required: **true**<br><p>The ID of the patch baseline to update.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_name):<br>required: **false**<br><p>The name of the patch baseline.</p><br>
8    ///   - [`global_filters(PatchFilterGroup)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::global_filters) / [`set_global_filters(Option<PatchFilterGroup>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_global_filters):<br>required: **false**<br><p>A set of global filters used to include patches in the baseline.</p><important>  <p>The <code>GlobalFilters</code> parameter can be configured only by using the CLI or an Amazon Web Services SDK. It can't be configured from the Patch Manager console, and its value isn't displayed in the console.</p> </important><br>
9    ///   - [`approval_rules(PatchRuleGroup)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::approval_rules) / [`set_approval_rules(Option<PatchRuleGroup>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_approval_rules):<br>required: **false**<br><p>A set of rules used to include patches in the baseline.</p><br>
10    ///   - [`approved_patches(impl Into<String>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::approved_patches) / [`set_approved_patches(Option<Vec::<String>>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_approved_patches):<br>required: **false**<br><p>A list of explicitly approved patches for the baseline.</p> <p>For information about accepted formats for lists of approved patches and rejected patches, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">Package name formats for approved and rejected patch lists</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p><br>
11    ///   - [`approved_patches_compliance_level(PatchComplianceLevel)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::approved_patches_compliance_level) / [`set_approved_patches_compliance_level(Option<PatchComplianceLevel>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_approved_patches_compliance_level):<br>required: **false**<br><p>Assigns a new compliance severity level to an existing patch baseline.</p><br>
12    ///   - [`approved_patches_enable_non_security(bool)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::approved_patches_enable_non_security) / [`set_approved_patches_enable_non_security(Option<bool>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_approved_patches_enable_non_security):<br>required: **false**<br><p>Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is <code>false</code>. Applies to Linux managed nodes only.</p><br>
13    ///   - [`rejected_patches(impl Into<String>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::rejected_patches) / [`set_rejected_patches(Option<Vec::<String>>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_rejected_patches):<br>required: **false**<br><p>A list of explicitly rejected patches for the baseline.</p> <p>For information about accepted formats for lists of approved patches and rejected patches, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">Package name formats for approved and rejected patch lists</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p><br>
14    ///   - [`rejected_patches_action(PatchAction)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::rejected_patches_action) / [`set_rejected_patches_action(Option<PatchAction>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_rejected_patches_action):<br>required: **false**<br><p>The action for Patch Manager to take on patches included in the <code>RejectedPackages</code> list.</p> <dl>  <dt>   ALLOW_AS_DEPENDENCY  </dt>  <dd>   <p><b>Linux and macOS</b>: A package in the rejected patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported as <code>INSTALLED_OTHER</code>. This is the default action if no option is specified.</p>   <p><b>Windows Server</b>: Windows Server doesn't support the concept of package dependencies. If a package in the rejected patches list and already installed on the node, its status is reported as <code>INSTALLED_OTHER</code>. Any package not already installed on the node is skipped. This is the default action if no option is specified.</p>  </dd>  <dt>   BLOCK  </dt>  <dd>   <p><b>All OSs</b>: Packages in the rejected patches list, and packages that include them as dependencies, aren't installed by Patch Manager under any circumstances.</p>   <p>State value assignment for patch compliance:</p>   <ul>    <li>     <p>If a package was installed before it was added to the rejected patches list, or is installed outside of Patch Manager afterward, it's considered noncompliant with the patch baseline and its status is reported as <code>INSTALLED_REJECTED</code>.</p></li>    <li>     <p>If an update attempts to install a dependency package that is now rejected by the baseline, when previous versions of the package were not rejected, the package being updated is reported as <code>MISSING</code> for <code>SCAN</code> operations and as <code>FAILED</code> for <code>INSTALL</code> operations.</p></li>   </ul>  </dd> </dl><br>
15    ///   - [`description(impl Into<String>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_description):<br>required: **false**<br><p>A description of the patch baseline.</p><br>
16    ///   - [`sources(PatchSource)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::sources) / [`set_sources(Option<Vec::<PatchSource>>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_sources):<br>required: **false**<br><p>Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.</p><br>
17    ///   - [`available_security_updates_compliance_status(PatchComplianceStatus)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::available_security_updates_compliance_status) / [`set_available_security_updates_compliance_status(Option<PatchComplianceStatus>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_available_security_updates_compliance_status):<br>required: **false**<br><p>Indicates the status to be assigned to security patches that are available but not approved because they don't meet the installation criteria specified in the patch baseline.</p> <p>Example scenario: Security patches that you might want installed can be skipped if you have specified a long period to wait after a patch is released before installation. If an update to the patch is released during your specified waiting period, the waiting period for installing the patch starts over. If the waiting period is too long, multiple versions of the patch could be released but never installed.</p> <p>Supported for Windows Server managed nodes only.</p><br>
18    ///   - [`replace(bool)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::replace) / [`set_replace(Option<bool>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_replace):<br>required: **false**<br><p>If True, then all fields that are required by the <code>CreatePatchBaseline</code> operation are also required for this API request. Optional fields that aren't specified are set to null.</p><br>
19    /// - On success, responds with [`UpdatePatchBaselineOutput`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput) with field(s):
20    ///   - [`baseline_id(Option<String>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::baseline_id): <p>The ID of the deleted patch baseline.</p>
21    ///   - [`name(Option<String>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::name): <p>The name of the patch baseline.</p>
22    ///   - [`operating_system(Option<OperatingSystem>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::operating_system): <p>The operating system rule used by the updated patch baseline.</p>
23    ///   - [`global_filters(Option<PatchFilterGroup>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::global_filters): <p>A set of global filters used to exclude patches from the baseline.</p>
24    ///   - [`approval_rules(Option<PatchRuleGroup>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::approval_rules): <p>A set of rules used to include patches in the baseline.</p>
25    ///   - [`approved_patches(Option<Vec::<String>>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::approved_patches): <p>A list of explicitly approved patches for the baseline.</p>
26    ///   - [`approved_patches_compliance_level(Option<PatchComplianceLevel>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::approved_patches_compliance_level): <p>The compliance severity level assigned to the patch baseline after the update completed.</p>
27    ///   - [`approved_patches_enable_non_security(Option<bool>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::approved_patches_enable_non_security): <p>Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
28    ///   - [`rejected_patches(Option<Vec::<String>>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::rejected_patches): <p>A list of explicitly rejected patches for the baseline.</p>
29    ///   - [`rejected_patches_action(Option<PatchAction>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::rejected_patches_action): <p>The action specified to take on patches included in the <code>RejectedPatches</code> list. A patch can be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it as a dependency.</p>
30    ///   - [`created_date(Option<DateTime>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::created_date): <p>The date when the patch baseline was created.</p>
31    ///   - [`modified_date(Option<DateTime>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::modified_date): <p>The date when the patch baseline was last modified.</p>
32    ///   - [`description(Option<String>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::description): <p>A description of the patch baseline.</p>
33    ///   - [`sources(Option<Vec::<PatchSource>>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::sources): <p>Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.</p>
34    ///   - [`available_security_updates_compliance_status(Option<PatchComplianceStatus>)`](crate::operation::update_patch_baseline::UpdatePatchBaselineOutput::available_security_updates_compliance_status): <p>Indicates the compliance status of managed nodes for which security-related patches are available but were not approved. This preference is specified when the <code>CreatePatchBaseline</code> or <code>UpdatePatchBaseline</code> commands are run.</p> <p>Applies to Windows Server managed nodes only.</p>
35    /// - On failure, responds with [`SdkError<UpdatePatchBaselineError>`](crate::operation::update_patch_baseline::UpdatePatchBaselineError)
36    pub fn update_patch_baseline(&self) -> crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder {
37        crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::new(self.handle.clone())
38    }
39}