/AWS1/IF_WDX=>CREATENOTIFSUBSCRIPTION()¶
About CreateNotificationSubscription¶
Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a confirmation message, and must confirm the subscription.
For more information, see Setting up notifications for an IAM user or role in the Amazon WorkDocs Developer Guide.
Method Signature¶
METHODS /AWS1/IF_WDX~CREATENOTIFSUBSCRIPTION
IMPORTING
!IV_ORGANIZATIONID TYPE /AWS1/WDXIDTYPE OPTIONAL
!IV_ENDPOINT TYPE /AWS1/WDXSUBSCRIPTIONENDPTTYPE OPTIONAL
!IV_PROTOCOL TYPE /AWS1/WDXSUBSCRIPTIONPROTOCO00 OPTIONAL
!IV_SUBSCRIPTIONTYPE TYPE /AWS1/WDXSUBSCRIPTIONTYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_wdxcrentfsubscripti01
RAISING
/AWS1/CX_WDXINVALIDARGUMENTEX
/AWS1/CX_WDXSERVICEUNAVAILEX
/AWS1/CX_WDXTOOMANYSUBSCRIPT00
/AWS1/CX_WDXUNAUTHDRESRCACCEX
/AWS1/CX_WDXCLIENTEXC
/AWS1/CX_WDXSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_organizationid TYPE /AWS1/WDXIDTYPE /AWS1/WDXIDTYPE¶
The ID of the organization.
iv_endpoint TYPE /AWS1/WDXSUBSCRIPTIONENDPTTYPE /AWS1/WDXSUBSCRIPTIONENDPTTYPE¶
The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with
https.
iv_protocol TYPE /AWS1/WDXSUBSCRIPTIONPROTOCO00 /AWS1/WDXSUBSCRIPTIONPROTOCO00¶
The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.
iv_subscriptiontype TYPE /AWS1/WDXSUBSCRIPTIONTYPE /AWS1/WDXSUBSCRIPTIONTYPE¶
The notification type.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_wdxcrentfsubscripti01 /AWS1/CL_WDXCRENTFSUBSCRIPTI01¶
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->createnotifsubscription(
iv_endpoint = |string|
iv_organizationid = |string|
iv_protocol = |string|
iv_subscriptiontype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_subscription = lo_result->get_subscription( ).
IF lo_subscription IS NOT INITIAL.
lv_idtype = lo_subscription->get_subscriptionid( ).
lv_subscriptionendpointtyp = lo_subscription->get_endpoint( ).
lv_subscriptionprotocoltyp = lo_subscription->get_protocol( ).
ENDIF.
ENDIF.