cloudwatchlogs_tag_resource: Assigns one or more tags (key-value pairs) to the specified...

View source: R/cloudwatchlogs_operations.R

cloudwatchlogs_tag_resourceR Documentation

Assigns one or more tags (key-value pairs) to the specified CloudWatch Logs resource

Description

Assigns one or more tags (key-value pairs) to the specified CloudWatch Logs resource. Currently, the only CloudWatch Logs resources that can be tagged are log groups and destinations.

See https://www.paws-r-sdk.com/docs/cloudwatchlogs_tag_resource/ for full documentation.

Usage

cloudwatchlogs_tag_resource(resourceArn, tags)

Arguments

resourceArn

[required] The ARN of the resource that you're adding tags to.

The ARN format of a log group is arn:aws:logs:Region:account-id:log-group:log-group-name

The ARN format of a destination is arn:aws:logs:Region:account-id:destination:destination-name

For more information about ARN format, see CloudWatch Logs resources and operations.

tags

[required] The list of key-value pairs to associate with the resource.


paws.management documentation built on Sept. 12, 2023, 1:06 a.m.