/AWS1/CL_EMR=>ADDINSTANCEFLEET()
¶
About AddInstanceFleet¶
Adds an instance fleet to a running cluster.
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_clusterid
TYPE /AWS1/EMRXMLSTRINGMAXLEN256
/AWS1/EMRXMLSTRINGMAXLEN256
¶
The unique identifier of the cluster.
io_instancefleet
TYPE REF TO /AWS1/CL_EMRINSTFLEETCONFIG
/AWS1/CL_EMRINSTFLEETCONFIG
¶
Specifies the configuration of the instance fleet.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_emraddinstfleetoutput
/AWS1/CL_EMRADDINSTFLEETOUTPUT
¶
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~addinstancefleet(
io_instancefleet = new /aws1/cl_emrinstfleetconfig(
io_launchspecifications = new /aws1/cl_emrinstfleetprovspecs(
io_ondemandspecification = new /aws1/cl_emrondemandprovspec(
io_capreservationoptions = new /aws1/cl_emrondemcapreservat00(
iv_capreservationpreference = |string|
iv_capreservationresrcgrparn = |string|
iv_usagestrategy = |string|
)
iv_allocationstrategy = |string|
)
io_spotspecification = new /aws1/cl_emrspotprovspec(
iv_allocationstrategy = |string|
iv_blockdurationminutes = 123
iv_timeoutaction = |string|
iv_timeoutdurationminutes = 123
)
)
io_resizespecifications = new /aws1/cl_emrinstfleetresizin00(
io_ondemandresizespec = new /aws1/cl_emrondemresizingspec(
io_capreservationoptions = new /aws1/cl_emrondemcapreservat00(
iv_capreservationpreference = |string|
iv_capreservationresrcgrparn = |string|
iv_usagestrategy = |string|
)
iv_allocationstrategy = |string|
iv_timeoutdurationminutes = 123
)
io_spotresizespecification = new /aws1/cl_emrspotresizingspec(
iv_allocationstrategy = |string|
iv_timeoutdurationminutes = 123
)
)
it_instancetypeconfigs = VALUE /aws1/cl_emrinstancetypeconfig=>tt_instancetypeconfiglist(
(
new /aws1/cl_emrinstancetypeconfig(
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(
key = |string|
value = new /aws1/cl_emrstringmap_w( |string| )
)
)
)
iv_classification = |string|
)
)
)
iv_bidprice = |string|
iv_bidpriceaspercentageofo00 = '0.1'
iv_customamiid = |string|
iv_instancetype = |string|
iv_priority = '0.1'
iv_weightedcapacity = 123
)
)
)
iv_context = |string|
iv_instancefleettype = |string|
iv_name = |string|
iv_targetondemandcapacity = 123
iv_targetspotcapacity = 123
)
iv_clusterid = |string|
).
This is an example of reading all possible response values
lv_xmlstringmaxlen256 = lo_result->get_clusterid( ).
lv_instancefleetid = lo_result->get_instancefleetid( ).
lv_arntype = lo_result->get_clusterarn( ).