Skip to main content

patch_baseline_for_patch_groups

Creates, updates, deletes, gets or lists a patch_baseline_for_patch_groups resource.

Overview

Namepatch_baseline_for_patch_groups
TypeResource
Idaws.ssm.patch_baseline_for_patch_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
baseline_idstringThe ID of the patch baseline that should be used for the patch group. (pattern: <code>^[a-zA-Z0-9_-:/]{20,128}$</code>)
operating_systemstringThe operating system rule specified for patch groups using the patch baseline. (WINDOWS, AMAZON_LINUX, AMAZON_LINUX_2, AMAZON_LINUX_2022, UBUNTU, REDHAT_ENTERPRISE_LINUX, SUSE, CENTOS, ORACLE_LINUX, DEBIAN, MACOS, RASPBIAN, ROCKY_LINUX, ALMA_LINUX, AMAZON_LINUX_2023)
patch_groupstringThe name of the patch group. (pattern: <code>^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_patch_baseline_for_patch_groupselectregionRetrieves the patch baseline that should be used for the specified patch group.
register_patch_baseline_for_patch_groupinsertregion, BaselineId, PatchGroupRegisters a patch baseline for a patch group.
deregister_patch_baseline_for_patch_groupdeleteregionRemoves a patch group from a patch baseline.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the patch baseline that should be used for the specified patch group.

SELECT
baseline_id,
operating_system,
patch_group
FROM aws.ssm.patch_baseline_for_patch_groups
WHERE region = '{{ region }}' -- required
;

INSERT examples

Registers a patch baseline for a patch group.

INSERT INTO aws.ssm.patch_baseline_for_patch_groups (
BaselineId,
PatchGroup,
region
)
SELECT
'{{ BaselineId }}' /* required */,
'{{ PatchGroup }}' /* required */,
'{{ region }}'
RETURNING
baseline_id,
patch_group
;

DELETE examples

Removes a patch group from a patch baseline.

DELETE FROM aws.ssm.patch_baseline_for_patch_groups
WHERE region = '{{ region }}' --required
;