Skip to content

/AWS1/IF_GGS=>CREATELOGGERDEFNVERSION()

About CreateLoggerDefinitionVersion

Creates a version of a logger definition that has already been defined.

Method Signature

IMPORTING

Required arguments:

iv_loggerdefinitionid TYPE /AWS1/GGS__STRING /AWS1/GGS__STRING

The ID of the logger definition.

Optional arguments:

iv_amznclienttoken TYPE /AWS1/GGS__STRING /AWS1/GGS__STRING

A client token used to correlate requests and responses.

it_loggers TYPE /AWS1/CL_GGSLOGGER=>TT___LISTOFLOGGER TT___LISTOFLOGGER

A list of loggers.

RETURNING

oo_output TYPE REF TO /aws1/cl_ggscreloggerdefvrsrsp /AWS1/CL_GGSCRELOGGERDEFVRSRSP

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->/aws1/if_ggs~createloggerdefnversion(
  it_loggers = VALUE /aws1/cl_ggslogger=>tt___listoflogger(
    (
      new /aws1/cl_ggslogger(
        iv_component = |string|
        iv_id = |string|
        iv_level = |string|
        iv_space00 = 123
        iv_type = |string|
      )
    )
  )
  iv_amznclienttoken = |string|
  iv_loggerdefinitionid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv___string = lo_result->get_arn( ).
  lv___string = lo_result->get_creationtimestamp( ).
  lv___string = lo_result->get_id( ).
  lv___string = lo_result->get_version( ).
ENDIF.