CloudWatchLogs / Client / untag_log_group
untag_log_group¶
- CloudWatchLogs.Client.untag_log_group(**kwargs)¶
Warning
The UntagLogGroup operation is on the path to deprecation. We recommend that you use UntagResource instead.
Removes the specified tags from the specified log group.
To list the tags for a log group, use ListTagsForResource. To add tags, use TagResource.
When using IAM policies to control tag management for CloudWatch Logs log groups, the condition keys
aws:Resource/key-name
andaws:TagKeys
cannot be used to restrict which tags users can assign.Danger
This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.
See also: AWS API Documentation
Request Syntax
response = client.untag_log_group( logGroupName='string', tags=[ 'string', ] )
- Parameters:
logGroupName (string) –
[REQUIRED]
The name of the log group.
tags (list) –
[REQUIRED]
The tag keys. The corresponding tags are removed from the log group.
(string) –
- Returns:
None
Exceptions
CloudWatchLogs.Client.exceptions.ResourceNotFoundException