Tag Log Group
cloudwatchlogs_tag_log_group | R Documentation |
The TagLogGroup operation is on the path to deprecation¶
Description¶
The TagLogGroup operation is on the path to deprecation. We recommend
that you use tag_resource
instead.
Adds or updates the specified tags for the specified log group.
To list the tags for a log group, use list_tags_for_resource
. To
remove tags, use untag_resource
.
For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs in the Amazon CloudWatch Logs User Guide.
CloudWatch Logs doesn’t support IAM policies that prevent users from
assigning specified tags to log groups using the
aws:Resource/key-name
or aws:TagKeys
condition keys. For more
information about using tags to control access, see Controlling access
to Amazon Web Services resources using
tags.
Usage¶
Arguments¶
logGroupName
[required] The name of the log group.
tags
[required] The key-value pairs to use for the tags.
Value¶
An empty list.