/AWS1/CL_IOT=>DELETEOTAUPDATE()
¶
About DeleteOTAUpdate¶
Delete an OTA update.
Requires permission to access the DeleteOTAUpdate action.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_otaupdateid
TYPE /AWS1/IOTOTAUPDATEID
/AWS1/IOTOTAUPDATEID
¶
The ID of the OTA update to delete.
Optional arguments:¶
iv_deletestream
TYPE /AWS1/IOTDELETESTREAM_
/AWS1/IOTDELETESTREAM_
¶
When true, the stream created by the OTAUpdate process is deleted when the OTA update is deleted. Ignored if the stream specified in the OTAUpdate is supplied by the user.
iv_forcedeleteawsjob
TYPE /AWS1/IOTFORCEDELETEAWSJOB
/AWS1/IOTFORCEDELETEAWSJOB
¶
When true, deletes the IoT job created by the OTAUpdate process even if it is "IN_PROGRESS". Otherwise, if the job is not in a terminal state ("COMPLETED" or "CANCELED") an exception will occur. The default is false.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_iotdeleteotaupdatersp
/AWS1/CL_IOTDELETEOTAUPDATERSP
¶
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_iot~deleteotaupdate(
iv_deletestream = ABAP_TRUE
iv_forcedeleteawsjob = ABAP_TRUE
iv_otaupdateid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.