patch_baseline_for_patch_groups
Creates, updates, deletes, gets or lists a patch_baseline_for_patch_groups resource.
Overview
| Name | patch_baseline_for_patch_groups |
| Type | Resource |
| Id | aws.ssm.patch_baseline_for_patch_groups |
Fields
The following fields are returned by SELECT queries:
- get_patch_baseline_for_patch_group
| Name | Datatype | Description |
|---|---|---|
baseline_id | string | The ID of the patch baseline that should be used for the patch group. (pattern: <code>^[a-zA-Z0-9_-:/]{20,128}$</code>) |
operating_system | string | The 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_group | string | The name of the patch group. (pattern: <code>^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_patch_baseline_for_patch_group | select | region | Retrieves the patch baseline that should be used for the specified patch group. | |
register_patch_baseline_for_patch_group | insert | region, BaselineId, PatchGroup | Registers a patch baseline for a patch group. | |
deregister_patch_baseline_for_patch_group | delete | region | Removes 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_patch_baseline_for_patch_group
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
- register_patch_baseline_for_patch_group
- Manifest
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
;
# Description fields are for documentation purposes
- name: patch_baseline_for_patch_groups
props:
- name: region
value: "{{ region }}"
description: Required parameter for the patch_baseline_for_patch_groups resource.
- name: BaselineId
value: "{{ BaselineId }}"
description: |
The ID of the patch baseline to register with the patch group.
- name: PatchGroup
value: "{{ PatchGroup }}"
description: |
The name of the patch group to be registered with the patch baseline.
DELETE examples
- deregister_patch_baseline_for_patch_group
Removes a patch group from a patch baseline.
DELETE FROM aws.ssm.patch_baseline_for_patch_groups
WHERE region = '{{ region }}' --required
;