/AWS1/IF_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¶
METHODS /AWS1/IF_EMR~ADDTAGS
IMPORTING
!IV_RESOURCEID TYPE /AWS1/EMRRESOURCEID OPTIONAL
!IT_TAGS TYPE /AWS1/CL_EMRTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_emraddtagsoutput
RAISING
/AWS1/CX_EMRINTERNALSERVEREX
/AWS1/CX_EMRINVALIDREQUESTEX
/AWS1/CX_EMRCLIENTEXC
/AWS1/CX_EMRSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
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->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
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.