/AWS1/IF_LMD=>CREATECODESIGNINGCONFIG()¶
About CreateCodeSigningConfig¶
Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).
Method Signature¶
METHODS /AWS1/IF_LMD~CREATECODESIGNINGCONFIG
IMPORTING
!IV_DESCRIPTION TYPE /AWS1/LMDDESCRIPTION OPTIONAL
!IO_ALLOWEDPUBLISHERS TYPE REF TO /AWS1/CL_LMDALLOWEDPUBLISHERS OPTIONAL
!IO_CODESIGNINGPOLICIES TYPE REF TO /AWS1/CL_LMDCODESIGNINGPOL OPTIONAL
!IT_TAGS TYPE /AWS1/CL_LMDTAGS_W=>TT_TAGS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lmdcrecodesigningcf01
RAISING
/AWS1/CX_LMDINVPARAMVALUEEX
/AWS1/CX_LMDSERVICEEXCEPTION
/AWS1/CX_LMDCLIENTEXC
/AWS1/CX_LMDSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
io_allowedpublishers TYPE REF TO /AWS1/CL_LMDALLOWEDPUBLISHERS /AWS1/CL_LMDALLOWEDPUBLISHERS¶
Signing profiles for this code signing configuration.
Optional arguments:¶
iv_description TYPE /AWS1/LMDDESCRIPTION /AWS1/LMDDESCRIPTION¶
Descriptive name for this code signing configuration.
io_codesigningpolicies TYPE REF TO /AWS1/CL_LMDCODESIGNINGPOL /AWS1/CL_LMDCODESIGNINGPOL¶
The code signing policies define the actions to take if the validation checks fail.
it_tags TYPE /AWS1/CL_LMDTAGS_W=>TT_TAGS TT_TAGS¶
A list of tags to add to the code signing configuration.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lmdcrecodesigningcf01 /AWS1/CL_LMDCRECODESIGNINGCF01¶
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->createcodesigningconfig(
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| )
it_tags = VALUE /aws1/cl_lmdtags_w=>tt_tags(
(
VALUE /aws1/cl_lmdtags_w=>ts_tags_maprow(
key = |string|
value = new /aws1/cl_lmdtags_w( |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.