/AWS1/IF_UNT=>REGISTERNOTIFICATIONHUB()¶
About RegisterNotificationHub¶
Registers a NotificationConfiguration in the specified Region.
There is a maximum of one NotificationConfiguration per Region. You can have a maximum of 3 NotificationHub resources at a time.
Method Signature¶
METHODS /AWS1/IF_UNT~REGISTERNOTIFICATIONHUB
IMPORTING
!IV_NOTIFICATIONHUBREGION TYPE /AWS1/UNTREGION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_untregnotifhubrsp
RAISING
/AWS1/CX_UNTACCESSDENIEDEX
/AWS1/CX_UNTCONFLICTEXCEPTION
/AWS1/CX_UNTINTERNALSERVEREX
/AWS1/CX_UNTSERVICEQUOTAEXCDEX
/AWS1/CX_UNTTHROTTLINGEX
/AWS1/CX_UNTVALIDATIONEX
/AWS1/CX_UNTCLIENTEXC
/AWS1/CX_UNTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_notificationhubregion TYPE /AWS1/UNTREGION /AWS1/UNTREGION¶
The Region of the
NotificationHub.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_untregnotifhubrsp /AWS1/CL_UNTREGNOTIFHUBRSP¶
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->registernotificationhub( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_region = lo_result->get_notificationhubregion( ).
lo_notificationhubstatussu = lo_result->get_statussummary( ).
IF lo_notificationhubstatussu IS NOT INITIAL.
lv_notificationhubstatus = lo_notificationhubstatussu->get_status( ).
lv_notificationhubstatusre = lo_notificationhubstatussu->get_reason( ).
ENDIF.
lv_creationtime = lo_result->get_creationtime( ).
lv_lastactivationtime = lo_result->get_lastactivationtime( ).
ENDIF.