/AWS1/CL_EMR=>CANCELSTEPS()
¶
About CancelSteps¶
Cancels a pending step or steps in a running cluster. Available only in Amazon EMR versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps are allowed in
each CancelSteps request. CancelSteps is idempotent but asynchronous; it does not guarantee
that a step will be canceled, even if the request is successfully submitted. When you use
Amazon EMR releases 5.28.0 and later, you can cancel steps that are in a
PENDING
or RUNNING
state. In earlier versions of Amazon EMR, you can only cancel steps that are in a PENDING
state.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_clusterid
TYPE /AWS1/EMRXMLSTRINGMAXLEN256
/AWS1/EMRXMLSTRINGMAXLEN256
¶
The
ClusterID
for the specified steps that will be canceled. Use RunJobFlow and ListClusters to get ClusterIDs.
it_stepids
TYPE /AWS1/CL_EMRSTEPIDSLIST_W=>TT_STEPIDSLIST
TT_STEPIDSLIST
¶
The list of
StepIDs
to cancel. Use ListSteps to get steps and their states for the specified cluster.
Optional arguments:¶
iv_stepcancellationoption
TYPE /AWS1/EMRSTEPCANCLATIONOPTION
/AWS1/EMRSTEPCANCLATIONOPTION
¶
The option to choose to cancel
RUNNING
steps. By default, the value isSEND_INTERRUPT
.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_emrcancelstepsoutput
/AWS1/CL_EMRCANCELSTEPSOUTPUT
¶
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~cancelsteps(
it_stepids = VALUE /aws1/cl_emrstepidslist_w=>tt_stepidslist(
( new /aws1/cl_emrstepidslist_w( |string| ) )
)
iv_clusterid = |string|
iv_stepcancellationoption = |string|
).
This is an example of reading all possible response values
LOOP AT lo_result->get_cancelstepsinfolist( ) into lo_row.
lv_stepid = lo_row_1->get_stepid( ).
lv_cancelstepsrequeststatu = lo_row_1->get_status( ).
lv_string = lo_row_1->get_reason( ).
ENDLOOP.