Skip to main content

patch_baseline

Gets an individual patch_baseline resource

Overview

Namepatch_baseline
TypeResource
Descriptionpatch_baseline
Idawscc.ssm.patch_baseline

Fields

NameDatatypeDescription
idstringThe ID of the patch baseline.
default_baselinebooleanSet the baseline as default baseline. Only registering to default patch baseline is allowed.
operating_systemstringDefines the operating system the patch baseline applies to. The Default value is WINDOWS.
descriptionstringThe description of the patch baseline.
approval_rulesobject
sourcesarrayInformation about the patches to use to update the instances, including target operating systems and source repository. Applies to Linux instances only.
namestringThe name of the patch baseline.
rejected_patchesarrayA list of explicitly rejected patches for the baseline.
approved_patchesarrayA list of explicitly approved patches for the baseline.
rejected_patches_actionstringThe action for Patch Manager to take on patches included in the RejectedPackages list.
patch_groupsarrayPatchGroups is used to associate instances with a specific patch baseline
approved_patches_compliance_levelstringDefines the compliance level for approved patches. This means that if an approved patch is reported as missing, this is the severity of the compliance violation. The default value is UNSPECIFIED.
approved_patches_enable_non_securitybooleanIndicates whether the list of approved patches includes non-security updates that should be applied to the instances. The default value is 'false'. Applies to Linux instances only.
global_filtersobjectA set of global filters used to include patches in the baseline.
tagsarrayOptional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
id,
default_baseline,
operating_system,
description,
approval_rules,
sources,
name,
rejected_patches,
approved_patches,
rejected_patches_action,
patch_groups,
approved_patches_compliance_level,
approved_patches_enable_non_security,
global_filters,
tags
FROM awscc.ssm.patch_baseline
WHERE data__Identifier = '<Id>';

Permissions

To operate on the patch_baseline resource, the following permissions are required:

Delete

ssm:DeletePatchBaseline,
ssm:GetPatchBaseline,
ssm:DeregisterPatchBaselineForPatchGroup

Read

ssm:GetDefaultPatchBaseline,
ssm:GetPatchBaseline,
ssm:ListTagsForResource

Update

ssm:UpdatePatchBaseline,
ssm:DeregisterPatchBaselineForPatchGroup,
ssm:AddTagsToResource,
ssm:RemoveTagsFromResource,
ssm:ListTagsForResource,
ssm:GetDefaultPatchBaseline,
ssm:RegisterDefaultPatchBaseline