Skip to content

/AWS1/IF_PPS=>CREATECONFSETEVENTDST()

About CreateConfigurationSetEventDestination

Create a new event destination in a configuration set.

Method Signature

METHODS /AWS1/IF_PPS~CREATECONFSETEVENTDST
  IMPORTING
    !IV_CONFIGURATIONSETNAME TYPE /AWS1/PPS__STRING OPTIONAL
    !IO_EVENTDESTINATION TYPE REF TO /AWS1/CL_PPSEVENTDSTDEFINITION OPTIONAL
    !IV_EVENTDESTINATIONNAME TYPE /AWS1/PPSNONEMPTYSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ppscreconfsetevtdst01
  RAISING
    /AWS1/CX_PPSALREADYEXISTSEX
    /AWS1/CX_PPSBADREQUESTEX
    /AWS1/CX_PPSINTERNALSVCERROREX
    /AWS1/CX_PPSLIMITEXCEEDEDEX
    /AWS1/CX_PPSNOTFOUNDEXCEPTION
    /AWS1/CX_PPSTOOMANYREQUESTSEX
    /AWS1/CX_PPSCLIENTEXC
    /AWS1/CX_PPSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_configurationsetname TYPE /AWS1/PPS__STRING /AWS1/PPS__STRING

ConfigurationSetName

Optional arguments:

io_eventdestination TYPE REF TO /AWS1/CL_PPSEVENTDSTDEFINITION /AWS1/CL_PPSEVENTDSTDEFINITION

EventDestination

iv_eventdestinationname TYPE /AWS1/PPSNONEMPTYSTRING /AWS1/PPSNONEMPTYSTRING

A name that identifies the event destination.

RETURNING

oo_output TYPE REF TO /aws1/cl_ppscreconfsetevtdst01 /AWS1/CL_PPSCRECONFSETEVTDST01

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->createconfseteventdst(
  io_eventdestination = new /aws1/cl_ppseventdstdefinition(
    io_cloudwatchlogsdestination = new /aws1/cl_ppscloudwatchlogsdst(
      iv_iamrolearn = |string|
      iv_loggrouparn = |string|
    )
    io_kinesisfirehosedst = new /aws1/cl_ppskinesisfirehosedst(
      iv_deliverystreamarn = |string|
      iv_iamrolearn = |string|
    )
    io_snsdestination = new /aws1/cl_ppssnsdestination( |string| )
    it_matchingeventtypes = VALUE /aws1/cl_ppseventtypes_w=>tt_eventtypes(
      ( new /aws1/cl_ppseventtypes_w( |string| ) )
    )
    iv_enabled = ABAP_TRUE
  )
  iv_configurationsetname = |string|
  iv_eventdestinationname = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.