/AWS1/CL_EMR=>LISTINSTANCEGROUPS()
¶
About ListInstanceGroups¶
Provides all available details about the instance groups in a cluster.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_clusterid
TYPE /AWS1/EMRCLUSTERID
/AWS1/EMRCLUSTERID
¶
The identifier of the cluster for which to list the instance groups.
Optional arguments:¶
iv_marker
TYPE /AWS1/EMRMARKER
/AWS1/EMRMARKER
¶
The pagination token that indicates the next set of results to retrieve.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_emrlistinstgroupsout
/AWS1/CL_EMRLISTINSTGROUPSOUT
¶
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~listinstancegroups(
iv_clusterid = |string|
iv_marker = |string|
).
This is an example of reading all possible response values
LOOP AT lo_result->get_instancegroups( ) into lo_row.
lv_instancegroupid = lo_row_1->get_id( ).
lv_string = lo_row_1->get_name( ).
lv_markettype = lo_row_1->get_market( ).
lv_instancegrouptype = lo_row_1->get_instancegrouptype( ).
lv_string = lo_row_1->get_bidprice( ).
lv_instancetype = lo_row_1->get_instancetype( ).
lv_integer = lo_row_1->get_requestedinstancecount( ).
lv_integer = lo_row_1->get_runninginstancecount( ).
lv_instancegroupstate = lo_instancegroupstatus->get_state( ).
lv_instancegroupstatechang_1 = lo_instancegroupstatechang->get_code( ).
lv_string = lo_instancegroupstatechang->get_message( ).
lv_date = lo_instancegrouptimeline->get_creationdatetime( ).
lv_date = lo_instancegrouptimeline->get_readydatetime( ).
lv_date = lo_instancegrouptimeline->get_enddatetime( ).
LOOP AT lo_row_1->get_configurations( ) into lo_row_2.
lv_string = lo_row_3->get_classification( ).
LOOP AT lo_row_3->get_configurations( ) into lo_row_4.
lv_string = lo_row_5->get_classification( ).
" Skipping lo_row_4 to avoid recursion
LOOP AT lo_row_5->get_properties( ) into ls_row_6.
lv_key = ls_row_6-key.
lv_string = lo_value->get_value( ).
ENDLOOP.
ENDLOOP.
LOOP AT lo_row_3->get_properties( ) into ls_row_6.
lv_key = ls_row_6-key.
lv_string = lo_value->get_value( ).
ENDLOOP.
ENDLOOP.
lv_long = lo_row_1->get_configurationsversion( ).
LOOP AT lo_row_1->get_lastsuccfullyappliedco00( ) into lo_row_2.
lv_string = lo_row_3->get_classification( ).
LOOP AT lo_row_3->get_configurations( ) into lo_row_4.
lv_string = lo_row_5->get_classification( ).
" Skipping lo_row_4 to avoid recursion
LOOP AT lo_row_5->get_properties( ) into ls_row_6.
lv_key = ls_row_6-key.
lv_string = lo_value->get_value( ).
ENDLOOP.
ENDLOOP.
LOOP AT lo_row_3->get_properties( ) into ls_row_6.
lv_key = ls_row_6-key.
lv_string = lo_value->get_value( ).
ENDLOOP.
ENDLOOP.
lv_long = lo_row_1->get_lastsuccfullyappliedco01( ).
LOOP AT lo_row_1->get_ebsblockdevices( ) into lo_row_7.
lv_string = lo_volumespecification->get_volumetype( ).
lv_integer = lo_volumespecification->get_iops( ).
lv_integer = lo_volumespecification->get_sizeingb( ).
lv_throughputval = lo_volumespecification->get_throughput( ).
lv_string = lo_row_8->get_device( ).
ENDLOOP.
lv_booleanobject = lo_row_1->get_ebsoptimized( ).
lv_integer = lo_shrinkpolicy->get_decommissiontimeout( ).
LOOP AT lo_instanceresizepolicy->get_instancestoterminate( ) into lo_row_9.
lv_instanceid = lo_row_10->get_value( ).
ENDLOOP.
LOOP AT lo_instanceresizepolicy->get_instancestoprotect( ) into lo_row_9.
lv_instanceid = lo_row_10->get_value( ).
ENDLOOP.
lv_integer = lo_instanceresizepolicy->get_instterminationtimeout( ).
lv_autoscalingpolicystate = lo_autoscalingpolicystatus->get_state( ).
lv_autoscalingpolicystatec_1 = lo_autoscalingpolicystatec->get_code( ).
lv_string = lo_autoscalingpolicystatec->get_message( ).
lv_integer = lo_scalingconstraints->get_mincapacity( ).
lv_integer = lo_scalingconstraints->get_maxcapacity( ).
LOOP AT lo_autoscalingpolicydescri->get_rules( ) into lo_row_11.
lv_string = lo_row_12->get_name( ).
lv_string = lo_row_12->get_description( ).
lv_markettype = lo_scalingaction->get_market( ).
lv_adjustmenttype = lo_simplescalingpolicyconf->get_adjustmenttype( ).
lv_integer = lo_simplescalingpolicyconf->get_scalingadjustment( ).
lv_integer = lo_simplescalingpolicyconf->get_cooldown( ).
lv_comparisonoperator = lo_cloudwatchalarmdefiniti->get_comparisonoperator( ).
lv_integer = lo_cloudwatchalarmdefiniti->get_evaluationperiods( ).
lv_string = lo_cloudwatchalarmdefiniti->get_metricname( ).
lv_string = lo_cloudwatchalarmdefiniti->get_namespace( ).
lv_integer = lo_cloudwatchalarmdefiniti->get_period( ).
lv_statistic = lo_cloudwatchalarmdefiniti->get_statistic( ).
lv_nonnegativedouble = lo_cloudwatchalarmdefiniti->get_threshold( ).
lv_unit = lo_cloudwatchalarmdefiniti->get_unit( ).
LOOP AT lo_cloudwatchalarmdefiniti->get_dimensions( ) into lo_row_13.
lv_string = lo_row_14->get_key( ).
lv_string = lo_row_14->get_value( ).
ENDLOOP.
ENDLOOP.
lv_xmlstringmaxlen256 = lo_row_1->get_customamiid( ).
ENDLOOP.
lv_marker = lo_result->get_marker( ).