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

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->/aws1/if_mds~tagresource(
  it_tags = VALUE /aws1/cl_mdstag=>tt_taglist(
    (
      new /aws1/cl_mdstag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_resource = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.