Skip to content

/AWS1/CL_RGR=>UNTAG()

About Untag

Deletes tags from a specified resource group.

Minimum permissions

To run this command, you must have the following permissions:

  • resource-groups:Untag

Method Signature

IMPORTING

Required arguments:

iv_arn TYPE /AWS1/RGRGROUPARNV2 /AWS1/RGRGROUPARNV2

The Amazon resource name (ARN) of the resource group from which to remove tags. The command removed both the specified keys and any values associated with those keys.

it_keys TYPE /AWS1/CL_RGRTAGKEYLIST_W=>TT_TAGKEYLIST TT_TAGKEYLIST

The keys of the tags to be removed.

RETURNING

oo_output TYPE REF TO /aws1/cl_rgruntagoutput /AWS1/CL_RGRUNTAGOUTPUT

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_rgr~untag(
  it_keys = VALUE /aws1/cl_rgrtagkeylist_w=>tt_tagkeylist(
    ( new /aws1/cl_rgrtagkeylist_w( |string| ) )
  )
  iv_arn = |string|
).

This is an example of reading all possible response values

lv_grouparnv2 = lo_result->get_arn( ).
LOOP AT lo_result->get_keys( ) into lo_row.
  lv_tagkey = lo_row_1->get_value( ).
ENDLOOP.