Skip to content

/AWS1/CL_CWT=>LISTTAGSFORRESOURCE()

About ListTagsForResource

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

Method Signature

IMPORTING

Required arguments:

IV_RESOURCEARN TYPE /AWS1/CWTAMAZONRESOURCENAME /AWS1/CWTAMAZONRESOURCENAME

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_CWTLISTTGSFORRESRCOUT /AWS1/CL_CWTLISTTGSFORRESRCOUT