/AWS1/CL_EMR=>ADDINSTANCEGROUPS()
¶
About AddInstanceGroups¶
Adds one or more instance groups to a running cluster.
Method Signature¶
IMPORTING¶
Required arguments:¶
it_instancegroups
TYPE /AWS1/CL_EMRINSTGROUPCONFIG=>TT_INSTANCEGROUPCONFIGLIST
TT_INSTANCEGROUPCONFIGLIST
¶
Instance groups to add.
iv_jobflowid
TYPE /AWS1/EMRXMLSTRINGMAXLEN256
/AWS1/EMRXMLSTRINGMAXLEN256
¶
Job flow in which to add the instance groups.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_emraddinstgroupsout
/AWS1/CL_EMRADDINSTGROUPSOUT
¶
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~addinstancegroups(
it_instancegroups = VALUE /aws1/cl_emrinstgroupconfig=>tt_instancegroupconfiglist(
(
new /aws1/cl_emrinstgroupconfig(
io_autoscalingpolicy = new /aws1/cl_emrautoscalingpolicy(
io_constraints = new /aws1/cl_emrscalingconstraints(
iv_maxcapacity = 123
iv_mincapacity = 123
)
it_rules = VALUE /aws1/cl_emrscalingrule=>tt_scalingrulelist(
(
new /aws1/cl_emrscalingrule(
io_action = new /aws1/cl_emrscalingaction(
io_simplescalingpolicyconf = new /aws1/cl_emrsimplescaplyconf(
iv_adjustmenttype = |string|
iv_cooldown = 123
iv_scalingadjustment = 123
)
iv_market = |string|
)
io_trigger = new /aws1/cl_emrscalingtrigger(
io_cloudwatchalarmdefinition = new /aws1/cl_emrcloudwatchalrmdefn(
it_dimensions = VALUE /aws1/cl_emrmetricdimension=>tt_metricdimensionlist(
(
new /aws1/cl_emrmetricdimension(
iv_key = |string|
iv_value = |string|
)
)
)
iv_comparisonoperator = |string|
iv_evaluationperiods = 123
iv_metricname = |string|
iv_namespace = |string|
iv_period = 123
iv_statistic = |string|
iv_threshold = '0.1'
iv_unit = |string|
)
)
iv_description = |string|
iv_name = |string|
)
)
)
)
io_ebsconfiguration = new /aws1/cl_emrebsconfiguration(
it_ebsblockdeviceconfigs = VALUE /aws1/cl_emrebsblockdevconfig=>tt_ebsblockdeviceconfiglist(
(
new /aws1/cl_emrebsblockdevconfig(
io_volumespecification = new /aws1/cl_emrvolumespec(
iv_iops = 123
iv_sizeingb = 123
iv_throughput = 123
iv_volumetype = |string|
)
iv_volumesperinstance = 123
)
)
)
iv_ebsoptimized = ABAP_TRUE
)
it_configurations = VALUE /aws1/cl_emrconfiguration=>tt_configurationlist(
(
new /aws1/cl_emrconfiguration(
it_configurations = VALUE /aws1/cl_emrconfiguration=>tt_configurationlist(
)
it_properties = VALUE /aws1/cl_emrstringmap_w=>tt_stringmap(
(
VALUE /aws1/cl_emrstringmap_w=>ts_stringmap_maprow(
value = new /aws1/cl_emrstringmap_w( |string| )
key = |string|
)
)
)
iv_classification = |string|
)
)
)
iv_bidprice = |string|
iv_customamiid = |string|
iv_instancecount = 123
iv_instancerole = |string|
iv_instancetype = |string|
iv_market = |string|
iv_name = |string|
)
)
)
iv_jobflowid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_xmlstringmaxlen256 = lo_result->get_jobflowid( ).
LOOP AT lo_result->get_instancegroupids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_xmlstringmaxlen256 = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_arntype = lo_result->get_clusterarn( ).
ENDIF.