Skip to content

List Tags For Resource

cloudwatchobservabilityaccessmanager_list_tags_for_resource R Documentation

Displays the tags associated with a resource

Description

Displays the tags associated with a resource. Both sinks and links support tagging.

Usage

cloudwatchobservabilityaccessmanager_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 sink is arn:aws:oam:Region:account-id:sink/sink-id

The ARN format of a link is arn:aws:oam:Region:account-id:link/link-id

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

Unlike tagging permissions in other Amazon Web Services services, to retrieve the list of tags for links or sinks you must have the oam:RequestTag permission. The aws:ReguestTag permission does not allow you to tag and untag links and sinks.

Value

A list with the following syntax:

list(
  Tags = list(
    "string"
  )
)

Request syntax

svc$list_tags_for_resource(
  ResourceArn = "string"
)