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 |
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.
Instances
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.
Instances
Eq TagLogGroupResponse Source # | |
Defined in Amazonka.CloudWatchLogs.TagLogGroup (==) :: TagLogGroupResponse -> TagLogGroupResponse -> Bool # (/=) :: TagLogGroupResponse -> TagLogGroupResponse -> Bool # | |
Read TagLogGroupResponse Source # | |
Show TagLogGroupResponse Source # | |
Defined in Amazonka.CloudWatchLogs.TagLogGroup showsPrec :: Int -> TagLogGroupResponse -> ShowS # show :: TagLogGroupResponse -> String # showList :: [TagLogGroupResponse] -> ShowS # | |
Generic TagLogGroupResponse Source # | |
Defined in Amazonka.CloudWatchLogs.TagLogGroup type Rep TagLogGroupResponse :: Type -> Type # from :: TagLogGroupResponse -> Rep TagLogGroupResponse x # to :: Rep TagLogGroupResponse x -> TagLogGroupResponse # | |
NFData TagLogGroupResponse Source # | |
Defined in Amazonka.CloudWatchLogs.TagLogGroup rnf :: TagLogGroupResponse -> () # | |
type Rep TagLogGroupResponse Source # | |
Defined in Amazonka.CloudWatchLogs.TagLogGroup |
newTagLogGroupResponse :: TagLogGroupResponse Source #
Create a value of TagLogGroupResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.