/AWS1/IF_CHM=>UNTAGRESOURCE()¶
About UntagResource¶
Removes the specified tags from the specified resources. When you specify a tag key, the action removes both that key and its associated value. The operation succeeds even if you attempt to remove tags from a resource that were already removed. Note the following:
-
To remove tags from a resource, you need the necessary permissions for the service that the resource belongs to as well as permissions for removing tags. For more information, see the documentation for the service whose resource you want to untag.
-
You can only tag resources that are located in the specified Amazon Web Services Region for the calling Amazon Web Services account.
Minimum permissions
In addition to the tag:UntagResources permission required by this operation, you must also have the remove tags permission defined by the service that created the resource.
For example, to remove the tags from an Amazon EC2 instance using the UntagResources operation, you must have both of the following permissions:
tag:UntagResource
ChimeSDKMeetings:DeleteTags
Method Signature¶
METHODS /AWS1/IF_CHM~UNTAGRESOURCE
IMPORTING
!IV_RESOURCEARN TYPE /AWS1/CHMAMAZONRESOURCENAME OPTIONAL
!IT_TAGKEYS TYPE /AWS1/CL_CHMTAGKEYLIST_W=>TT_TAGKEYLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_chmuntagresourcersp
RAISING
/AWS1/CX_CHMBADREQUESTEX
/AWS1/CX_CHMFORBIDDENEXCEPTION
/AWS1/CX_CHMLIMITEXCEEDEDEX
/AWS1/CX_CHMRESOURCENOTFOUNDEX
/AWS1/CX_CHMSERVICEFAILUREEX
/AWS1/CX_CHMSERVICEUNAVAILEX
/AWS1/CX_CHMTHROTTLINGEX
/AWS1/CX_CHMUNAUTHORIZEDEX
/AWS1/CX_CHMCLIENTEXC
/AWS1/CX_CHMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resourcearn TYPE /AWS1/CHMAMAZONRESOURCENAME /AWS1/CHMAMAZONRESOURCENAME¶
The ARN of the resource that you're removing tags from.
it_tagkeys TYPE /AWS1/CL_CHMTAGKEYLIST_W=>TT_TAGKEYLIST TT_TAGKEYLIST¶
The tag keys being removed from the resources.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_chmuntagresourcersp /AWS1/CL_CHMUNTAGRESOURCERSP¶
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->untagresource(
it_tagkeys = VALUE /aws1/cl_chmtagkeylist_w=>tt_tagkeylist(
( new /aws1/cl_chmtagkeylist_w( |string| ) )
)
iv_resourcearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.