Skip to content

/AWS1/IF_LMD=>UPDATECODESIGNINGCONFIG()

About UpdateCodeSigningConfig

Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.

Method Signature

METHODS /AWS1/IF_LMD~UPDATECODESIGNINGCONFIG
  IMPORTING
    !IV_CODESIGNINGCONFIGARN TYPE /AWS1/LMDCODESIGNINGCONFIGARN OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/LMDDESCRIPTION OPTIONAL
    !IO_ALLOWEDPUBLISHERS TYPE REF TO /AWS1/CL_LMDALLOWEDPUBLISHERS OPTIONAL
    !IO_CODESIGNINGPOLICIES TYPE REF TO /AWS1/CL_LMDCODESIGNINGPOL OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lmdupcodesigningcfg01
  RAISING
    /AWS1/CX_LMDINVPARAMVALUEEX
    /AWS1/CX_LMDRESOURCENOTFOUNDEX
    /AWS1/CX_LMDSERVICEEXCEPTION
    /AWS1/CX_LMDCLIENTEXC
    /AWS1/CX_LMDSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_codesigningconfigarn TYPE /AWS1/LMDCODESIGNINGCONFIGARN /AWS1/LMDCODESIGNINGCONFIGARN

The The Amazon Resource Name (ARN) of the code signing configuration.

Optional arguments:

iv_description TYPE /AWS1/LMDDESCRIPTION /AWS1/LMDDESCRIPTION

Descriptive name for this code signing configuration.

io_allowedpublishers TYPE REF TO /AWS1/CL_LMDALLOWEDPUBLISHERS /AWS1/CL_LMDALLOWEDPUBLISHERS

Signing profiles for this code signing configuration.

io_codesigningpolicies TYPE REF TO /AWS1/CL_LMDCODESIGNINGPOL /AWS1/CL_LMDCODESIGNINGPOL

The code signing policy.

RETURNING

oo_output TYPE REF TO /aws1/cl_lmdupcodesigningcfg01 /AWS1/CL_LMDUPCODESIGNINGCFG01

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->updatecodesigningconfig(
  io_allowedpublishers = new /aws1/cl_lmdallowedpublishers(
    it_signingprofileversionarns = VALUE /aws1/cl_lmdsigningpflvrsarn00=>tt_signingprofileversionarns(
      ( new /aws1/cl_lmdsigningpflvrsarn00( |string| ) )
    )
  )
  io_codesigningpolicies = new /aws1/cl_lmdcodesigningpol( |string| )
  iv_codesigningconfigarn = |string|
  iv_description = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_codesigningconfig = lo_result->get_codesigningconfig( ).
  IF lo_codesigningconfig IS NOT INITIAL.
    lv_codesigningconfigid = lo_codesigningconfig->get_codesigningconfigid( ).
    lv_codesigningconfigarn = lo_codesigningconfig->get_codesigningconfigarn( ).
    lv_description = lo_codesigningconfig->get_description( ).
    lo_allowedpublishers = lo_codesigningconfig->get_allowedpublishers( ).
    IF lo_allowedpublishers IS NOT INITIAL.
      LOOP AT lo_allowedpublishers->get_signingpflversionarns( ) into lo_row.
        lo_row_1 = lo_row.
        IF lo_row_1 IS NOT INITIAL.
          lv_arn = lo_row_1->get_value( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
    lo_codesigningpolicies = lo_codesigningconfig->get_codesigningpolicies( ).
    IF lo_codesigningpolicies IS NOT INITIAL.
      lv_codesigningpolicy = lo_codesigningpolicies->get_untrustedartifactondep00( ).
    ENDIF.
    lv_timestamp = lo_codesigningconfig->get_lastmodified( ).
  ENDIF.
ENDIF.