Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Amazonka.CloudWatchLogs.TagLogGroup
Description
Adds or updates the specified tags for the specified log group.
To list the tags for a log group, use ListTagsLogGroup. To remove tags, use UntagLogGroup.
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.
Synopsis
Creating a Request
data TagLogGroup Source #
See: newTagLogGroup
smart constructor.
Constructors
TagLogGroup' | |
Instances
Arguments
:: Text | |
-> TagLogGroup |
Create a value of TagLogGroup
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:logGroupName:TagLogGroup'
, tagLogGroup_logGroupName
- The name of the log group.
$sel:tags:TagLogGroup'
, tagLogGroup_tags
- The key-value pairs to use for the tags.
Request Lenses
tagLogGroup_logGroupName :: Lens' TagLogGroup Text Source #
The name of the log group.
tagLogGroup_tags :: Lens' TagLogGroup (HashMap Text Text) Source #
The key-value pairs to use for the tags.
Destructuring the Response
data TagLogGroupResponse Source #
See: newTagLogGroupResponse
smart constructor.
Constructors
TagLogGroupResponse' | |
Instances
newTagLogGroupResponse :: TagLogGroupResponse Source #
Create a value of TagLogGroupResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.