Skip to content

List Tags For Resource

cloudwatchlogs_list_tags_for_resource R Documentation

Displays the tags associated with a CloudWatch Logs resource

Description

Displays the tags associated with a CloudWatch Logs resource. Currently, log groups and destinations support tagging.

Usage

cloudwatchlogs_list_tags_for_resource(resourceArn)

Arguments

resourceArn

[required] The ARN of the resource that you want to view tags for.

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.

Value

A list with the following syntax:

list(
  tags = list(
    "string"
  )
)

Request syntax

svc$list_tags_for_resource(
  resourceArn = "string"
)