/AWS1/CL_EMR=>MODIFYINSTANCEFLEET()
¶
About ModifyInstanceFleet¶
Modifies the target On-Demand and target Spot capacities for the instance fleet with the specified InstanceFleetID within the cluster specified using ClusterID. The call either succeeds or fails atomically.
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_clusterid
TYPE /AWS1/EMRCLUSTERID
/AWS1/EMRCLUSTERID
¶
The unique identifier of the cluster.
io_instancefleet
TYPE REF TO /AWS1/CL_EMRINSTFLEETMODIFYCFG
/AWS1/CL_EMRINSTFLEETMODIFYCFG
¶
The configuration parameters of the instance fleet.
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_emr~modifyinstancefleet(
io_instancefleet = new /aws1/cl_emrinstfleetmodifycfg(
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_instancefleetid = |string|
iv_targetondemandcapacity = 123
iv_targetspotcapacity = 123
)
iv_clusterid = |string|
).