There are more AWS SDK examples available in the AWS Doc SDK Examples
Use RemoveTagsFromResource
with a CLI
The following code examples show how to use RemoveTagsFromResource
.
- CLI
-
- AWS CLI
-
To remove a tag from a patch baseline
The following
remove-tags-from-resource
example removes tags from a patch baseline.aws ssm remove-tags-from-resource \ --resource-type
"PatchBaseline"
\ --resource-id"pb-0123456789abcdef0"
\ --tag-keys"Region"
This command produces no output.
For more information, see Tagging AWS Resources in the AWS General Reference.
-
For API details, see RemoveTagsFromResource
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell
-
Example 1: This example removes a tag from a maintenance window. There is no output if the command succeeds.
Remove-SSMResourceTag -ResourceId "mw-03eb9db42890fb82d" -ResourceType "MaintenanceWindow" -TagKey "Production"
-
For API details, see RemoveTagsFromResource in AWS Tools for PowerShell Cmdlet Reference.
-