Skip to content

List Tags For Resource

cloudwatch_list_tags_for_resource R Documentation

Displays the tags associated with a CloudWatch resource

Description

Displays the tags associated with a CloudWatch resource. Currently, alarms and Contributor Insights rules support tagging.

Usage

cloudwatch_list_tags_for_resource(ResourceARN)

Arguments

ResourceARN

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

The ARN format of an alarm is arn:aws:cloudwatch:Region:account-id:alarm:alarm-name

The ARN format of a Contributor Insights rule is arn:aws:cloudwatch:Region:account-id:insight-rule/insight-rule-name

For more information about ARN format, see Resource Types Defined by Amazon CloudWatch in the Amazon Web Services General Reference.

Value

A list with the following syntax:

list(
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Request syntax

svc$list_tags_for_resource(
  ResourceARN = "string"
)