SSMClient.create_patch_baseline
rboto-ssm==0.4.0 · Service index · Types
Model summary (excerpt): Creates a patch baseline. For information about valid key-value pairs in PatchFilters for each supported operating system type, see PatchFilter .
Install and imports
from rboto import SSMClient
from collections.abc import Sequence
from rboto_ssm.types import (
CreatePatchBaselineOutput,
OperatingSystem,
PatchAction,
PatchComplianceLevel,
PatchComplianceStatus,
PatchFilterGroup,
PatchRuleGroup,
PatchSource,
Tag,
)
Signature
async def create_patch_baseline(
*,
name: str,
operating_system: OperatingSystem | 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,
client_token: str | None = None,
tags: Sequence[Tag] | None = None,
) -> CreatePatchBaselineOutput: ...
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) |
|---|---|---|
name |
Yes | The name of the patch baseline. |
operating_system |
No | Defines the operating system the patch baseline applies to. The default value is WINDOWS . |
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 | Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value is UNSPECIFIED . |
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 you want to assign 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... |
client_token |
No | User-provided idempotency token. |
tags |
No | Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the severity level of patches it specifies and the operating system family it applies to. In this case, you could specify the following key-value pairs:... |
Output
CreatePatchBaselineOutput.
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 | — |
| 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.
Related types
CreatePatchBaselineOutput, OperatingSystem, PatchAction, PatchComplianceLevel, PatchComplianceStatus, PatchFilterGroup, PatchRuleGroup, PatchSource, Tag
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:
IdempotentParameterMismatchError, InternalServerError, ResourceLimitExceededError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.