/AWS1/IF_MWS=>UPDATEWORKFLOW()¶
About UpdateWorkflow¶
Updates an existing workflow with new configuration settings. This operation allows you to modify the workflow definition, role, and other settings. When you update a workflow, Amazon Managed Workflows for Apache Airflow Serverless automatically creates a new version with the updated configuration and disables scheduling on all previous versions to ensure only one version is actively scheduled at a time. The update operation maintains workflow history while providing a clean transition to the new configuration.
Method Signature¶
METHODS /AWS1/IF_MWS~UPDATEWORKFLOW
IMPORTING
!IV_WORKFLOWARN TYPE /AWS1/MWSWORKFLOWARN OPTIONAL
!IO_DEFINITIONS3LOCATION TYPE REF TO /AWS1/CL_MWSDEFNS3LOCATION OPTIONAL
!IV_ROLEARN TYPE /AWS1/MWSROLEARN OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/MWSDESCRIPTIONSTRING OPTIONAL
!IO_LOGGINGCONFIGURATION TYPE REF TO /AWS1/CL_MWSLOGGINGCONF OPTIONAL
!IV_ENGINEVERSION TYPE /AWS1/MWSENGINEVERSION OPTIONAL
!IO_NETWORKCONFIGURATION TYPE REF TO /AWS1/CL_MWSNETWORKCONF OPTIONAL
!IV_TRIGGERMODE TYPE /AWS1/MWSGENERICSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mwsupdateworkflowrsp
RAISING
/AWS1/CX_MWSACCESSDENIEDEX
/AWS1/CX_MWSCONFLICTEXCEPTION
/AWS1/CX_MWSINTERNALSERVEREX
/AWS1/CX_MWSOPERATIONTIMEOUTEX
/AWS1/CX_MWSRESOURCENOTFOUNDEX
/AWS1/CX_MWSSERVICEQUOTAEXCDEX
/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 update.
io_definitions3location TYPE REF TO /AWS1/CL_MWSDEFNS3LOCATION /AWS1/CL_MWSDEFNS3LOCATION¶
The Amazon S3 location where the updated workflow definition file is stored.
iv_rolearn TYPE /AWS1/MWSROLEARN /AWS1/MWSROLEARN¶
The Amazon Resource Name (ARN) of the IAM role that Amazon Managed Workflows for Apache Airflow Serverless assumes when it executes the updated workflow.
Optional arguments:¶
iv_description TYPE /AWS1/MWSDESCRIPTIONSTRING /AWS1/MWSDESCRIPTIONSTRING¶
An updated description for the workflow.
io_loggingconfiguration TYPE REF TO /AWS1/CL_MWSLOGGINGCONF /AWS1/CL_MWSLOGGINGCONF¶
Updated logging configuration for the workflow.
iv_engineversion TYPE /AWS1/MWSENGINEVERSION /AWS1/MWSENGINEVERSION¶
The version of the Amazon Managed Workflows for Apache Airflow Serverless engine that you want to use for the updated workflow.
io_networkconfiguration TYPE REF TO /AWS1/CL_MWSNETWORKCONF /AWS1/CL_MWSNETWORKCONF¶
Updated network configuration for the workflow execution environment.
iv_triggermode TYPE /AWS1/MWSGENERICSTRING /AWS1/MWSGENERICSTRING¶
The trigger mode for the workflow execution.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mwsupdateworkflowrsp /AWS1/CL_MWSUPDATEWORKFLOWRSP¶
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->updateworkflow(
io_definitions3location = new /aws1/cl_mwsdefns3location(
iv_bucket = |string|
iv_objectkey = |string|
iv_versionid = |string|
)
io_loggingconfiguration = new /aws1/cl_mwsloggingconf( |string| )
io_networkconfiguration = new /aws1/cl_mwsnetworkconf(
it_securitygroupids = VALUE /aws1/cl_mwssecuritygroupids_w=>tt_securitygroupids(
( new /aws1/cl_mwssecuritygroupids_w( |string| ) )
)
it_subnetids = VALUE /aws1/cl_mwssubnetids_w=>tt_subnetids(
( new /aws1/cl_mwssubnetids_w( |string| ) )
)
)
iv_description = |string|
iv_engineversion = 123
iv_rolearn = |string|
iv_triggermode = |string|
iv_workflowarn = |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_timestampvalue = lo_result->get_modifiedat( ).
lv_workflowversion = lo_result->get_workflowversion( ).
LOOP AT lo_result->get_warnings( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.