/AWS1/IF_SE2=>GETCONFSETEVENTDESTINATIONS()¶
About GetConfigurationSetEventDestinations¶
Retrieve a list of event destinations that are associated with a configuration set.
Events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon EventBridge and associate a rule to send the event to the specified target.
Method Signature¶
METHODS /AWS1/IF_SE2~GETCONFSETEVENTDESTINATIONS
IMPORTING
!IV_CONFIGURATIONSETNAME TYPE /AWS1/SE2CONFIGURATIONSETNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_se2getconfsetevtdst01
RAISING
/AWS1/CX_SE2BADREQUESTEX
/AWS1/CX_SE2NOTFOUNDEXCEPTION
/AWS1/CX_SE2TOOMANYREQUESTSEX
/AWS1/CX_SE2CLIENTEXC
/AWS1/CX_SE2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_configurationsetname TYPE /AWS1/SE2CONFIGURATIONSETNAME /AWS1/SE2CONFIGURATIONSETNAME¶
The name of the configuration set that contains the event destination.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_se2getconfsetevtdst01 /AWS1/CL_SE2GETCONFSETEVTDST01¶
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->getconfseteventdestinations( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_eventdestinations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_eventdestinationname = lo_row_1->get_name( ).
lv_enabled = lo_row_1->get_enabled( ).
LOOP AT lo_row_1->get_matchingeventtypes( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_eventtype = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lo_kinesisfirehosedestinat = lo_row_1->get_kinesisfirehosedst( ).
IF lo_kinesisfirehosedestinat IS NOT INITIAL.
lv_amazonresourcename = lo_kinesisfirehosedestinat->get_iamrolearn( ).
lv_amazonresourcename = lo_kinesisfirehosedestinat->get_deliverystreamarn( ).
ENDIF.
lo_cloudwatchdestination = lo_row_1->get_cloudwatchdestination( ).
IF lo_cloudwatchdestination IS NOT INITIAL.
LOOP AT lo_cloudwatchdestination->get_dimensionconfigurations( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_dimensionname = lo_row_5->get_dimensionname( ).
lv_dimensionvaluesource = lo_row_5->get_dimensionvaluesource( ).
lv_defaultdimensionvalue = lo_row_5->get_defaultdimensionvalue( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_snsdestination = lo_row_1->get_snsdestination( ).
IF lo_snsdestination IS NOT INITIAL.
lv_amazonresourcename = lo_snsdestination->get_topicarn( ).
ENDIF.
lo_eventbridgedestination = lo_row_1->get_eventbridgedestination( ).
IF lo_eventbridgedestination IS NOT INITIAL.
lv_amazonresourcename = lo_eventbridgedestination->get_eventbusarn( ).
ENDIF.
lo_pinpointdestination = lo_row_1->get_pinpointdestination( ).
IF lo_pinpointdestination IS NOT INITIAL.
lv_amazonresourcename = lo_pinpointdestination->get_applicationarn( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.