libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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' 

Fields

Instances

Instances details
Eq TagLogGroup Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

Read TagLogGroup Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

Show TagLogGroup Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

Generic TagLogGroup Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

Associated Types

type Rep TagLogGroup :: Type -> Type #

NFData TagLogGroup Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

Methods

rnf :: TagLogGroup -> () #

Hashable TagLogGroup Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

ToJSON TagLogGroup Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

AWSRequest TagLogGroup Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

Associated Types

type AWSResponse TagLogGroup #

ToHeaders TagLogGroup Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

Methods

toHeaders :: TagLogGroup -> [Header] #

ToPath TagLogGroup Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

ToQuery TagLogGroup Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

type Rep TagLogGroup Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

type Rep TagLogGroup = D1 ('MetaData "TagLogGroup" "Amazonka.CloudWatchLogs.TagLogGroup" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "TagLogGroup'" 'PrefixI 'True) (S1 ('MetaSel ('Just "logGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text))))
type AWSResponse TagLogGroup Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

newTagLogGroup Source #

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

Instances details
Eq TagLogGroupResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

Read TagLogGroupResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

Show TagLogGroupResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

Generic TagLogGroupResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

Associated Types

type Rep TagLogGroupResponse :: Type -> Type #

NFData TagLogGroupResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

Methods

rnf :: TagLogGroupResponse -> () #

type Rep TagLogGroupResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.TagLogGroup

type Rep TagLogGroupResponse = D1 ('MetaData "TagLogGroupResponse" "Amazonka.CloudWatchLogs.TagLogGroup" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "TagLogGroupResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newTagLogGroupResponse :: TagLogGroupResponse Source #

Create a value of TagLogGroupResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.