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.
CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using the
aws:Resource/key-name
oraws:TagKeys
condition keys.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