/AWS1/IF_SLK=>UPDATESUBSCRIBERNOTIFICATION()¶
About UpdateSubscriberNotification¶
Updates an existing notification method for the subscription (SQS or HTTPs endpoint) or switches the notification subscription endpoint for a subscriber.
Method Signature¶
METHODS /AWS1/IF_SLK~UPDATESUBSCRIBERNOTIFICATION
IMPORTING
!IV_SUBSCRIBERID TYPE /AWS1/SLKUUID OPTIONAL
!IO_CONFIGURATION TYPE REF TO /AWS1/CL_SLKNOTIFICATIONCONF OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_slkupdatesubrnotifrsp
RAISING
/AWS1/CX_SLKACCESSDENIEDEX
/AWS1/CX_SLKBADREQUESTEX
/AWS1/CX_SLKCONFLICTEXCEPTION
/AWS1/CX_SLKINTERNALSERVEREX
/AWS1/CX_SLKRESOURCENOTFOUNDEX
/AWS1/CX_SLKTHROTTLINGEX
/AWS1/CX_SLKCLIENTEXC
/AWS1/CX_SLKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_subscriberid TYPE /AWS1/SLKUUID /AWS1/SLKUUID¶
The subscription ID for which the subscription notification is specified.
io_configuration TYPE REF TO /AWS1/CL_SLKNOTIFICATIONCONF /AWS1/CL_SLKNOTIFICATIONCONF¶
The configuration for subscriber notification.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_slkupdatesubrnotifrsp /AWS1/CL_SLKUPDATESUBRNOTIFRSP¶
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->updatesubscribernotification(
io_configuration = new /aws1/cl_slknotificationconf(
io_httpsnotificationconf = new /aws1/cl_slkhttpsnotifconf(
iv_authorizationapikeyname = |string|
iv_authorizationapikeyvalue = |string|
iv_endpoint = |string|
iv_httpmethod = |string|
iv_targetrolearn = |string|
)
io_sqsnotificationconf = new /aws1/cl_slksqsnotifconf( )
)
iv_subscriberid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_safestring = lo_result->get_subscriberendpoint( ).
ENDIF.