/AWS1/IF_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¶
METHODS /AWS1/IF_RGR~UNTAG
IMPORTING
!IV_ARN TYPE /AWS1/RGRGROUPARNV2 OPTIONAL
!IT_KEYS TYPE /AWS1/CL_RGRTAGKEYLIST_W=>TT_TAGKEYLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rgruntagoutput
RAISING
/AWS1/CX_RGRBADREQUESTEX
/AWS1/CX_RGRFORBIDDENEXCEPTION
/AWS1/CX_RGRINTERNALSERVERER00
/AWS1/CX_RGRMETHODNOTALLOWEDEX
/AWS1/CX_RGRNOTFOUNDEXCEPTION
/AWS1/CX_RGRTOOMANYREQUESTSEX
/AWS1/CX_RGRCLIENTEXC
/AWS1/CX_RGRSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
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->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
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_grouparnv2 = lo_result->get_arn( ).
LOOP AT lo_result->get_keys( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_tagkey = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.