Skip to content

/AWS1/CL_AIN=>TAGRESOURCE()

About TagResource

Add one or more tags (keys and values) to a specified application. A tag is a label that you optionally define and associate with an application. Tags can help you categorize and manage application in different ways, such as by purpose, owner, environment, or other criteria.

Each tag consists of a required tag key and an associated tag value, both of which you define. A tag key is a general label that acts as a category for more specific tag values. A tag value acts as a descriptor within a tag key.

Method Signature

IMPORTING

Required arguments:

iv_resourcearn TYPE /AWS1/AINAMAZONRESOURCENAME /AWS1/AINAMAZONRESOURCENAME

The Amazon Resource Name (ARN) of the application that you want to add one or more tags to.

it_tags TYPE /AWS1/CL_AINTAG=>TT_TAGLIST TT_TAGLIST

A list of tags that to add to the application. A tag consists of a required tag key (Key) and an associated tag value (Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

RETURNING

oo_output TYPE REF TO /aws1/cl_aintagresourcersp /AWS1/CL_AINTAGRESOURCERSP

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_ain~tagresource(
  it_tags = VALUE /aws1/cl_aintag=>tt_taglist(
    (
      new /aws1/cl_aintag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_resourcearn = |string|
).

This is an example of reading all possible response values