/AWS1/CL_IAM=>UNTAGUSER()
¶
About UntagUser¶
Removes the specified tags from the user. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_username
TYPE /AWS1/IAMEXISTINGUSERNAMETYPE
/AWS1/IAMEXISTINGUSERNAMETYPE
¶
The name of the IAM user from which you want to remove tags.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
it_tagkeys
TYPE /AWS1/CL_IAMTAGKEYLISTTYPE_W=>TT_TAGKEYLISTTYPE
TT_TAGKEYLISTTYPE
¶
A list of key names as a simple array of strings. The tags with matching keys are removed from the specified user.
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.
lo_client->/aws1/if_iam~untaguser(
it_tagkeys = VALUE /aws1/cl_iamtagkeylisttype_w=>tt_tagkeylisttype(
( new /aws1/cl_iamtagkeylisttype_w( |string| ) )
)
iv_username = |string|
).
To remove a tag from an IAM user¶
The following example shows how to remove tags that are attached to a user named 'anika'.
lo_client->/aws1/if_iam~untaguser(
it_tagkeys = VALUE /aws1/cl_iamtagkeylisttype_w=>tt_tagkeylisttype(
( new /aws1/cl_iamtagkeylisttype_w( |Dept| ) )
)
iv_username = |anika|
).