/AWS1/IF_KFK=>UPDATECHANNEL()¶
About UpdateChannel¶
Updates the destination configuration of an existing channel. Exactly one of icebergDestinationUpdate or s3DestinationUpdate must be supplied.
Method Signature¶
METHODS /AWS1/IF_KFK~UPDATECHANNEL
IMPORTING
!IV_CHANNELARN TYPE /AWS1/KFK__STRING OPTIONAL
!IV_CLUSTERARN TYPE /AWS1/KFK__STRING OPTIONAL
!IO_ICEBERGDESTINATIONUPDATE TYPE REF TO /AWS1/CL_KFKICEBERGDSTUPDATE OPTIONAL
!IO_S3DESTINATIONUPDATE TYPE REF TO /AWS1/CL_KFKS3DSTUPDATE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_kfkupdatechannelrsp
RAISING
/AWS1/CX_KFKBADREQUESTEX
/AWS1/CX_KFKFORBIDDENEXCEPTION
/AWS1/CX_KFKINTERNALSERVERER00
/AWS1/CX_KFKNOTFOUNDEXCEPTION
/AWS1/CX_KFKSERVICEUNAVAILEX
/AWS1/CX_KFKTOOMANYREQUESTSEX
/AWS1/CX_KFKUNAUTHORIZEDEX
/AWS1/CX_KFKCLIENTEXC
/AWS1/CX_KFKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_channelarn TYPE /AWS1/KFK__STRING /AWS1/KFK__STRING¶
The Amazon Resource Name (ARN) that uniquely identifies the channel.
iv_clusterarn TYPE /AWS1/KFK__STRING /AWS1/KFK__STRING¶
The Amazon Resource Name (ARN) that uniquely identifies the cluster.
Optional arguments:¶
io_icebergdestinationupdate TYPE REF TO /AWS1/CL_KFKICEBERGDSTUPDATE /AWS1/CL_KFKICEBERGDSTUPDATE¶
Updates fields on an Apache Iceberg destination. Use only when the channel was created with an Iceberg destination.
io_s3destinationupdate TYPE REF TO /AWS1/CL_KFKS3DSTUPDATE /AWS1/CL_KFKS3DSTUPDATE¶
Updates fields on an Amazon S3 destination. Use only when the channel was created with an Amazon S3 destination.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_kfkupdatechannelrsp /AWS1/CL_KFKUPDATECHANNELRSP¶
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->updatechannel(
io_icebergdestinationupdate = new /aws1/cl_kfkicebergdstupdate( 123 )
io_s3destinationupdate = new /aws1/cl_kfks3dstupdate( 123 )
iv_channelarn = |string|
iv_clusterarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv___string = lo_result->get_channelarn( ).
lv___string = lo_result->get_clusteroperationarn( ).
ENDIF.