Skip to content

/AWS1/IF_ECR=>GETSIGNINGCONFIGURATION()

About GetSigningConfiguration

Retrieves the registry's signing configuration, which defines rules for automatically signing images using Amazon Web Services Signer.

For more information, see Managed signing in the Amazon Elastic Container Registry User Guide.

Method Signature

METHODS /AWS1/IF_ECR~GETSIGNINGCONFIGURATION
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ecrgetsigningconfrsp
  RAISING
    /AWS1/CX_ECRINVALIDPARAMETEREX
    /AWS1/CX_ECRSERVEREXCEPTION
    /AWS1/CX_ECRSIGNGCONFNOTFNDEX
    /AWS1/CX_ECRVALIDATIONEX
    /AWS1/CX_ECRCLIENTEXC
    /AWS1/CX_ECRSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

RETURNING

oo_output TYPE REF TO /aws1/cl_ecrgetsigningconfrsp /AWS1/CL_ECRGETSIGNINGCONFRSP

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->getsigningconfiguration( ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_registryid = lo_result->get_registryid( ).
  lo_signingconfiguration = lo_result->get_signingconfiguration( ).
  IF lo_signingconfiguration IS NOT INITIAL.
    LOOP AT lo_signingconfiguration->get_rules( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_signingprofilearn = lo_row_1->get_signingprofilearn( ).
        LOOP AT lo_row_1->get_repositoryfilters( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_signingrepositoryfilter = lo_row_3->get_filter( ).
            lv_signingrepositoryfilter_1 = lo_row_3->get_filtertype( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.