/AWS1/CL_EMR=>ADDTAGS()
¶
About AddTags¶
Adds tags to an Amazon EMR resource, such as a cluster or an Amazon EMR Studio. Tags make it easier to associate resources in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tag Clusters.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_resourceid
TYPE /AWS1/EMRRESOURCEID
/AWS1/EMRRESOURCEID
¶
The Amazon EMR resource identifier to which tags will be added. For example, a cluster identifier or an Amazon EMR Studio ID.
it_tags
TYPE /AWS1/CL_EMRTAG=>TT_TAGLIST
TT_TAGLIST
¶
A list of tags to associate with a resource. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_emraddtagsoutput
/AWS1/CL_EMRADDTAGSOUTPUT
¶
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_emr~addtags(
it_tags = VALUE /aws1/cl_emrtag=>tt_taglist(
(
new /aws1/cl_emrtag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_resourceid = |string|
).
This is an example of reading all possible response values