/AWS1/IF_FNT=>UPDATEREALTIMELOGCONFIG()¶
About UpdateRealtimeLogConfig¶
Updates a real-time log configuration.
When you update a real-time log configuration, all the parameters are updated with the values provided in the request. You cannot update some parameters independent of others. To update a real-time log configuration:
-
Call
GetRealtimeLogConfigto get the current real-time log configuration. -
Locally modify the parameters in the real-time log configuration that you want to update.
-
Call this API (
UpdateRealtimeLogConfig) by providing the entire real-time log configuration, including the parameters that you modified and those that you didn't.
You cannot update a real-time log configuration's Name or ARN.
Method Signature¶
METHODS /AWS1/IF_FNT~UPDATEREALTIMELOGCONFIG
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_ARN TYPE /AWS1/FNTSTRING OPTIONAL
!IV_SAMPLINGRATE TYPE /AWS1/FNTLONG OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fntuprealtimelogcfgrs
RAISING
/AWS1/CX_FNTACCESSDENIED
/AWS1/CX_FNTINVALIDARGUMENT
/AWS1/CX_FNTNOSUCHREALTIMELO00
/AWS1/CX_FNTCLIENTEXC
/AWS1/CX_FNTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional 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¶
The name for this real-time log configuration.
iv_arn TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING¶
The Amazon Resource Name (ARN) for this real-time log configuration.
iv_samplingrate TYPE /AWS1/FNTLONG /AWS1/FNTLONG¶
The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. You must provide an integer between 1 and 100, inclusive.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_fntuprealtimelogcfgrs /AWS1/CL_FNTUPREALTIMELOGCFGRS¶
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->updaterealtimelogconfig(
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_arn = |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.