Skip to content

/AWS1/IF_ECR=>PUTSIGNINGCONFIGURATION()

About PutSigningConfiguration

Creates or updates the registry's signing configuration, which defines rules for automatically signing images with Amazon Web Services Signer.

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

To successfully generate a signature, the IAM principal pushing images must have permission to sign payloads with the Amazon Web Services Signer signing profile referenced in the signing configuration.

Method Signature

METHODS /AWS1/IF_ECR~PUTSIGNINGCONFIGURATION
  IMPORTING
    !IO_SIGNINGCONFIGURATION TYPE REF TO /AWS1/CL_ECRSIGNINGCONF OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ecrputsigningconfrsp
  RAISING
    /AWS1/CX_ECRINVALIDPARAMETEREX
    /AWS1/CX_ECRSERVEREXCEPTION
    /AWS1/CX_ECRVALIDATIONEX
    /AWS1/CX_ECRCLIENTEXC
    /AWS1/CX_ECRSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

io_signingconfiguration TYPE REF TO /AWS1/CL_ECRSIGNINGCONF /AWS1/CL_ECRSIGNINGCONF

The signing configuration to assign to the registry.

RETURNING

oo_output TYPE REF TO /aws1/cl_ecrputsigningconfrsp /AWS1/CL_ECRPUTSIGNINGCONFRSP

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->putsigningconfiguration(
  io_signingconfiguration = new /aws1/cl_ecrsigningconf(
    it_rules = VALUE /aws1/cl_ecrsigningrule=>tt_signingrulelist(
      (
        new /aws1/cl_ecrsigningrule(
          it_repositoryfilters = VALUE /aws1/cl_ecrsigningrepofilter=>tt_signingrepositoryfilterlist(
            (
              new /aws1/cl_ecrsigningrepofilter(
                iv_filter = |string|
                iv_filtertype = |string|
              )
            )
          )
          iv_signingprofilearn = |string|
        )
      )
    )
  )
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  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.