/AWS1/IF_FNT=>CREATEREALTIMELOGCONFIG()¶
About CreateRealtimeLogConfig¶
Creates a real-time log configuration.
After you create a real-time log configuration, you can attach it to one or more cache behaviors to send real-time log data to the specified Amazon Kinesis data stream.
For more information about real-time log configurations, see Real-time logs in the Amazon CloudFront Developer Guide.
Method Signature¶
METHODS /AWS1/IF_FNT~CREATEREALTIMELOGCONFIG
IMPORTING
!IT_ENDPOINTS TYPE /AWS1/CL_FNTENDPOINT=>TT_ENDPOINTLIST OPTIONAL
!IT_FIELDS TYPE /AWS1/CL_FNTFIELDLIST_W=>TT_FIELDLIST OPTIONAL
!IV_NAME TYPE /AWS1/FNTSTRING OPTIONAL
!IV_SAMPLINGRATE TYPE /AWS1/FNTLONG OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fntcrerealtimelogcf01
RAISING
/AWS1/CX_FNTACCESSDENIED
/AWS1/CX_FNTINVALIDARGUMENT
/AWS1/CX_FNTREALTIMELOGCFGAL00
/AWS1/CX_FNTTOOMANYREALTIMEL00
/AWS1/CX_FNTCLIENTEXC
/AWS1/CX_FNTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_endpoints TYPE /AWS1/CL_FNTENDPOINT=>TT_ENDPOINTLIST TT_ENDPOINTLIST¶
Contains information about the Amazon Kinesis data stream where you are sending real-time log data.
it_fields TYPE /AWS1/CL_FNTFIELDLIST_W=>TT_FIELDLIST TT_FIELDLIST¶
A list of fields to include in each real-time log record.
For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
iv_name TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING¶
A unique name to identify this real-time log configuration.
iv_samplingrate TYPE /AWS1/FNTLONG /AWS1/FNTLONG¶
The sampling rate for this real-time log configuration. You can specify a whole number between 1 and 100 (inclusive) to determine the percentage of viewer requests that are represented in the real-time log data.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_fntcrerealtimelogcf01 /AWS1/CL_FNTCREREALTIMELOGCF01¶
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->createrealtimelogconfig(
it_endpoints = VALUE /aws1/cl_fntendpoint=>tt_endpointlist(
(
new /aws1/cl_fntendpoint(
io_kinesisstreamconfig = new /aws1/cl_fntkinesisstreamcfg(
iv_rolearn = |string|
iv_streamarn = |string|
)
iv_streamtype = |string|
)
)
)
it_fields = VALUE /aws1/cl_fntfieldlist_w=>tt_fieldlist(
( new /aws1/cl_fntfieldlist_w( |string| ) )
)
iv_name = |string|
iv_samplingrate = 123
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_realtimelogconfig = lo_result->get_realtimelogconfig( ).
IF lo_realtimelogconfig IS NOT INITIAL.
lv_string = lo_realtimelogconfig->get_arn( ).
lv_string = lo_realtimelogconfig->get_name( ).
lv_long = lo_realtimelogconfig->get_samplingrate( ).
LOOP AT lo_realtimelogconfig->get_endpoints( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_streamtype( ).
lo_kinesisstreamconfig = lo_row_1->get_kinesisstreamconfig( ).
IF lo_kinesisstreamconfig IS NOT INITIAL.
lv_string = lo_kinesisstreamconfig->get_rolearn( ).
lv_string = lo_kinesisstreamconfig->get_streamarn( ).
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT lo_realtimelogconfig->get_fields( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.