Use DeregisterPatchBaselineForPatchGroup with a CLI - AWS SDK Code Examples

There are more AWS SDK examples available in the AWS Doc SDK Examples GitHub repo.

Use DeregisterPatchBaselineForPatchGroup with a CLI

The following code examples show how to use DeregisterPatchBaselineForPatchGroup.

CLI
AWS CLI

To deregister a patch group from a patch baseline

The following deregister-patch-baseline-for-patch-group example deregisters the specified patch group from the specified patch baseline.

aws ssm deregister-patch-baseline-for-patch-group \ --patch-group "Production" \ --baseline-id "pb-0ca44a362fEXAMPLE"

Output:

{ "PatchGroup":"Production", "BaselineId":"pb-0ca44a362fEXAMPLE" }

For more information, see Add a Patch Group to a Patch Baseline in the AWS Systems Manager User Guide.

PowerShell
Tools for PowerShell V4

Example 1: This example deregisters a patch group from a patch baseline.

Unregister-SSMPatchBaselineForPatchGroup -BaselineId "pb-045f10b4f382baeda" -PatchGroup "Production"

Output:

BaselineId PatchGroup ---------- ---------- pb-045f10b4f382baeda Production
Tools for PowerShell V5

Example 1: This example deregisters a patch group from a patch baseline.

Unregister-SSMPatchBaselineForPatchGroup -BaselineId "pb-045f10b4f382baeda" -PatchGroup "Production"

Output:

BaselineId PatchGroup ---------- ---------- pb-045f10b4f382baeda Production