/AWS1/IF_PPT=>PUTEVENTSTREAM()¶
About PutEventStream¶
Creates a new event stream for an application or updates the settings of an existing event stream for an application.
Method Signature¶
METHODS /AWS1/IF_PPT~PUTEVENTSTREAM
IMPORTING
!IV_APPLICATIONID TYPE /AWS1/PPT__STRING OPTIONAL
!IO_WRITEEVENTSTREAM TYPE REF TO /AWS1/CL_PPTWRITEEVENTSTREAM OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pptputeventstreamrsp
RAISING
/AWS1/CX_PPTBADREQUESTEX
/AWS1/CX_PPTFORBIDDENEXCEPTION
/AWS1/CX_PPTINTERNALSERVERER00
/AWS1/CX_PPTMETHODNOTALLOWEDEX
/AWS1/CX_PPTNOTFOUNDEXCEPTION
/AWS1/CX_PPTPAYLOADTOOLARGEEX
/AWS1/CX_PPTTOOMANYREQUESTSEX
/AWS1/CX_PPTCLIENTEXC
/AWS1/CX_PPTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_applicationid TYPE /AWS1/PPT__STRING /AWS1/PPT__STRING¶
The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
io_writeeventstream TYPE REF TO /AWS1/CL_PPTWRITEEVENTSTREAM /AWS1/CL_PPTWRITEEVENTSTREAM¶
Specifies the Amazon Resource Name (ARN) of an event stream to publish events to and the AWS Identity and Access Management (IAM) role to use when publishing those events.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_pptputeventstreamrsp /AWS1/CL_PPTPUTEVENTSTREAMRSP¶
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->puteventstream(
io_writeeventstream = new /aws1/cl_pptwriteeventstream(
iv_destinationstreamarn = |string|
iv_rolearn = |string|
)
iv_applicationid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_eventstream = lo_result->get_eventstream( ).
IF lo_eventstream IS NOT INITIAL.
lv___string = lo_eventstream->get_applicationid( ).
lv___string = lo_eventstream->get_destinationstreamarn( ).
lv___string = lo_eventstream->get_externalid( ).
lv___string = lo_eventstream->get_lastmodifieddate( ).
lv___string = lo_eventstream->get_lastupdatedby( ).
lv___string = lo_eventstream->get_rolearn( ).
ENDIF.
ENDIF.