Skip to content

/AWS1/IF_CWL=>LISTSYSLOGCONFIGURATIONS()

About ListSyslogConfigurations

Returns a list of syslog configurations. You can optionally filter the results by log group or VPC endpoint.

Method Signature

METHODS /AWS1/IF_CWL~LISTSYSLOGCONFIGURATIONS
  IMPORTING
    !IV_LOGGROUPIDENTIFIER TYPE /AWS1/CWLLOGGROUPIDENTIFIER OPTIONAL
    !IV_VPCENDPOINTID TYPE /AWS1/CWLVPCENDPOINTID OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/CWLNEXTTOKEN OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/CWLLISTSYSLOGCFGSMAXRSLT OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwllistsyslogconfsrsp
  RAISING
    /AWS1/CX_CWLACCESSDENIEDEX
    /AWS1/CX_CWLINVALIDOPERATIONEX
    /AWS1/CX_CWLINVALIDPARAMETEREX
    /AWS1/CX_CWLRESOURCENOTFOUNDEX
    /AWS1/CX_CWLSERVICEUNAVAILEX
    /AWS1/CX_CWLTHROTTLINGEX
    /AWS1/CX_CWLCLIENTEXC
    /AWS1/CX_CWLSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_loggroupidentifier TYPE /AWS1/CWLLOGGROUPIDENTIFIER /AWS1/CWLLOGGROUPIDENTIFIER

The name or ARN of the log group to filter syslog configurations for.

iv_vpcendpointid TYPE /AWS1/CWLVPCENDPOINTID /AWS1/CWLVPCENDPOINTID

The ID of the VPC endpoint to filter syslog configurations for.

iv_nexttoken TYPE /AWS1/CWLNEXTTOKEN /AWS1/CWLNEXTTOKEN

The token for the next set of items to return. You received this token from a previous call.

iv_maxresults TYPE /AWS1/CWLLISTSYSLOGCFGSMAXRSLT /AWS1/CWLLISTSYSLOGCFGSMAXRSLT

The maximum number of syslog configurations to return in the response.

RETURNING

oo_output TYPE REF TO /aws1/cl_cwllistsyslogconfsrsp /AWS1/CL_CWLLISTSYSLOGCONFSRSP

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->listsyslogconfigurations(
  iv_loggroupidentifier = |string|
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_vpcendpointid = |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_syslogconfigurations( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_loggrouparn = lo_row_1->get_loggrouparn( ).
      lv_syslogsourcetype = lo_row_1->get_sourcetype( ).
      lv_vpcendpointid = lo_row_1->get_vpcendpointid( ).
      lv_timestamp = lo_row_1->get_createdat( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.