Skip to content

/AWS1/CL_MDS=>TAGRESOURCE()

About TagResource

Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the tag key might be "customer" and the tag value might be "companyA." You can specify one or more tags to add to each container. You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore.

Method Signature

IMPORTING

Required arguments:

IV_RESOURCE TYPE /AWS1/MDSCONTAINERARN /AWS1/MDSCONTAINERARN

The Amazon Resource Name (ARN) for the container.

IT_TAGS TYPE /AWS1/CL_MDSTAG=>TT_TAGLIST TT_TAGLIST

An array of key:value pairs that you want to add to the container. You need to specify only the tags that you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and priority:High). You want to change the priority tag and also add a third tag (type:Contract). For TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your container has three tags: customer:CompanyA, priority:Medium, and type:Contract.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_MDSTAGRESOURCEOUTPUT /AWS1/CL_MDSTAGRESOURCEOUTPUT