Skip to content

/AWS1/CL_ECA=>ADDTAGSTORESOURCE()

About AddTagsToResource

A tag is a key-value pair where the key and value are case-sensitive. You can use tags to categorize and track all your ElastiCache resources, with the exception of global replication group. When you add or remove tags on replication groups, those actions will be replicated to all nodes in the replication group. For more information, see Resource-level permissions.

For example, you can use cost-allocation tags to your ElastiCache resources, Amazon generates a cost allocation report as a comma-separated value (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business categories (such as cost centers, application names, or owners) to organize your costs across multiple services.

For more information, see Using Cost Allocation Tags in Amazon ElastiCache in the ElastiCache User Guide.

Method Signature

IMPORTING

Required arguments:

IV_RESOURCENAME TYPE /AWS1/ECASTRING /AWS1/ECASTRING

The Amazon Resource Name (ARN) of the resource to which the tags are to be added, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot. ElastiCache resources are cluster and snapshot.

For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Service Namespaces.

IT_TAGS TYPE /AWS1/CL_ECATAG=>TT_TAGLIST TT_TAGLIST

A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_ECATAGLISTMESSAGE /AWS1/CL_ECATAGLISTMESSAGE