Skip to content

/AWS1/CL_AMP=>TAGRESOURCE()

About TagResource

The TagResource operation associates tags with an Amazon Managed Service for Prometheus resource. The only resources that can be tagged are workspaces and rule groups namespaces.

If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag.

Method Signature

IMPORTING

Required arguments:

IV_RESOURCEARN TYPE /AWS1/AMPSTRING /AWS1/AMPSTRING

The ARN of the workspace or rule groups namespace to apply tags to.

IT_TAGS TYPE /AWS1/CL_AMPTAGMAP_W=>TT_TAGMAP TT_TAGMAP

The list of tag keys and values to associate with the resource.

Keys may not begin with aws:.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_AMPTAGRESOURCERSP /AWS1/CL_AMPTAGRESOURCERSP