/AWS1/IF_MWS=>DELETEWORKFLOW()¶
About DeleteWorkflow¶
Deletes a workflow and all its versions. This operation permanently removes the workflow and cannot be undone. Amazon Managed Workflows for Apache Airflow Serverless ensures that all associated resources are properly cleaned up, including stopping any running executions, removing scheduled triggers, and cleaning up execution history. The deletion process respects the multi-tenant isolation boundaries and ensures that no residual data or configurations remain that could affect other customers or workflows.
Method Signature¶
METHODS /AWS1/IF_MWS~DELETEWORKFLOW
IMPORTING
!IV_WORKFLOWARN TYPE /AWS1/MWSWORKFLOWARN OPTIONAL
!IV_WORKFLOWVERSION TYPE /AWS1/MWSWORKFLOWVERSION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mwsdeleteworkflowrsp
RAISING
/AWS1/CX_MWSACCESSDENIEDEX
/AWS1/CX_MWSINTERNALSERVEREX
/AWS1/CX_MWSOPERATIONTIMEOUTEX
/AWS1/CX_MWSRESOURCENOTFOUNDEX
/AWS1/CX_MWSTHROTTLINGEX
/AWS1/CX_MWSVALIDATIONEX
/AWS1/CX_MWSCLIENTEXC
/AWS1/CX_MWSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_workflowarn TYPE /AWS1/MWSWORKFLOWARN /AWS1/MWSWORKFLOWARN¶
The Amazon Resource Name (ARN) of the workflow you want to delete.
Optional arguments:¶
iv_workflowversion TYPE /AWS1/MWSWORKFLOWVERSION /AWS1/MWSWORKFLOWVERSION¶
Optional. The specific version of the workflow to delete. If not specified, all versions of the workflow are deleted.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mwsdeleteworkflowrsp /AWS1/CL_MWSDELETEWORKFLOWRSP¶
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->deleteworkflow(
iv_workflowarn = |string|
iv_workflowversion = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_workflowarn = lo_result->get_workflowarn( ).
lv_workflowversion = lo_result->get_workflowversion( ).
ENDIF.