Skip to content

SSMClient.update_patch_baseline

rboto-ssm==0.4.0 · Service index · Types

Model summary (excerpt): Modifies an existing patch baseline. Fields not specified in the request are left unchanged. For information about valid key-value pairs in PatchFilters for each supported operating system type, see PatchFilter .

Install and imports

python -m pip install "rboto[ssm]==0.4.0"
from rboto import SSMClient
from collections.abc import Sequence
from rboto_ssm.types import (
    PatchAction,
    PatchComplianceLevel,
    PatchComplianceStatus,
    PatchFilterGroup,
    PatchRuleGroup,
    PatchSource,
    UpdatePatchBaselineOutput,
)

Signature

async def update_patch_baseline(
    *,
    baseline_id: str,
    name: str | None = None,
    global_filters: PatchFilterGroup | None = None,
    approval_rules: PatchRuleGroup | None = None,
    approved_patches: Sequence[str] | None = None,
    approved_patches_compliance_level: PatchComplianceLevel | None = None,
    approved_patches_enable_non_security: bool | None = None,
    rejected_patches: Sequence[str] | None = None,
    rejected_patches_action: PatchAction | None = None,
    description: str | None = None,
    sources: Sequence[PatchSource] | None = None,
    available_security_updates_compliance_status: PatchComplianceStatus | None = None,
    replace: bool | None = None,
) -> UpdatePatchBaselineOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
baseline_id Yes The ID of the patch baseline to update.
name No The name of the patch baseline.
global_filters No A set of global filters used to include patches in the baseline. The GlobalFilters 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.
approval_rules No A set of rules used to include patches in the baseline.
approved_patches No A list of explicitly approved patches for the baseline. For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide .
approved_patches_compliance_level No Assigns a new compliance severity level to an existing patch baseline.
approved_patches_enable_non_security No Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is false . Applies to Linux managed nodes only.
rejected_patches No A list of explicitly rejected patches for the baseline. For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide .
rejected_patches_action No The action for Patch Manager to take on patches included in the RejectedPackages list. ALLOW_AS_DEPENDENCY Linux and macOS : 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 INSTALLED_OTHER . This is the default action if no option is specified. Windows Server :...
description No A description of the patch baseline.
sources No Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.
available_security_updates_compliance_status No 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. 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...
replace No If True, then all fields that are required by the CreatePatchBaseline operation are also required for this API request. Optional fields that aren't specified are set to null.

Output

UpdatePatchBaselineOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
baseline_id str | None Always present —
name str | None Always present —
operating_system OperatingSystemOutput | None Always present OperatingSystemOutput
global_filters PatchFilterGroupOutput | None Always present PatchFilterGroupOutput
approval_rules PatchRuleGroupOutput | None Always present PatchRuleGroupOutput
approved_patches list[str] | None Always present —
approved_patches_compliance_level PatchComplianceLevelOutput | None Always present PatchComplianceLevelOutput
approved_patches_enable_non_security bool | None Always present —
rejected_patches list[str] | None Always present —
rejected_patches_action PatchActionOutput | None Always present PatchActionOutput
created_date str | None Always present —
modified_date str | None Always present —
description str | None Always present —
sources list[PatchSourceOutput] | None Always present PatchSourceOutput
available_security_updates_compliance_status PatchComplianceStatusOutput | None Always present PatchComplianceStatusOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

PatchAction, PatchComplianceLevel, PatchComplianceStatus, PatchFilterGroup, PatchRuleGroup, PatchSource, UpdatePatchBaselineOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_ssm.exceptions:

DoesNotExistError, InternalServerError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model