/AWS1/IF_TCE=>UPDATEREGISTRY()¶
About UpdateRegistry¶
Updates an existing registry. This operation uses PATCH semantics: specify only the fields you want to change, and omit the rest to leave them unchanged. Updates are applied asynchronously and the registry transitions to the UPDATING status while they are processed.
Method Signature¶
METHODS /AWS1/IF_TCE~UPDATEREGISTRY
IMPORTING
!IV_REGISTRYID TYPE /AWS1/TCEREGISTRYIDENTIFIER OPTIONAL
!IV_NAME TYPE /AWS1/TCEREGISTRYNAME OPTIONAL
!IO_DESCRIPTION TYPE REF TO /AWS1/CL_TCEUPDATEDDESCRIPTION OPTIONAL
!IO_DISCOVERYCONFIGURATION TYPE REF TO /AWS1/CL_TCEUPDATEDDISCVRYCONF OPTIONAL
!IO_APPROVALCONFIGURATION TYPE REF TO /AWS1/CL_TCEUPDATEDAPPRCONF OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_tceupdateregresponse
RAISING
/AWS1/CX_TCEACCESSDENIEDEX
/AWS1/CX_TCECONFLICTEXCEPTION
/AWS1/CX_TCEINTERNALSERVEREX
/AWS1/CX_TCERESOURCENOTFOUNDEX
/AWS1/CX_TCESERVICEQUOTAEXCDEX
/AWS1/CX_TCETHROTTLINGEX
/AWS1/CX_TCEVLDTNEXCEPTION
/AWS1/CX_TCECLIENTEXC
/AWS1/CX_TCESERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_registryid TYPE /AWS1/TCEREGISTRYIDENTIFIER /AWS1/TCEREGISTRYIDENTIFIER¶
The identifier of the registry to update (ARN or ID)
Optional arguments:¶
iv_name TYPE /AWS1/TCEREGISTRYNAME /AWS1/TCEREGISTRYNAME¶
The updated name of the registry
io_description TYPE REF TO /AWS1/CL_TCEUPDATEDDESCRIPTION /AWS1/CL_TCEUPDATEDDESCRIPTION¶
The updated description of the registry
io_discoveryconfiguration TYPE REF TO /AWS1/CL_TCEUPDATEDDISCVRYCONF /AWS1/CL_TCEUPDATEDDISCVRYCONF¶
The updated discovery configuration. Changing the discovery authorization can break existing consumers that rely on the previous authorization type.
io_approvalconfiguration TYPE REF TO /AWS1/CL_TCEUPDATEDAPPRCONF /AWS1/CL_TCEUPDATEDAPPRCONF¶
The updated approval configuration. The change applies only to records that move to PENDING_APPROVAL after the update; records already in PENDING_APPROVAL are unaffected.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_tceupdateregresponse /AWS1/CL_TCEUPDATEREGRESPONSE¶
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->updateregistry(
io_approvalconfiguration = new /aws1/cl_tceupdatedapprconf(
io_optionalvalue = new /aws1/cl_tceapprovalconf(
it_autoapprovalrules = VALUE /aws1/cl_tceautoapprrulelist_w=>tt_autoapprovalrulelist(
( new /aws1/cl_tceautoapprrulelist_w( |string| ) )
)
)
)
io_description = new /aws1/cl_tceupdateddescription( |string| )
io_discoveryconfiguration = new /aws1/cl_tceupdateddiscvryconf(
io_authorizerconfiguration = new /aws1/cl_tceupdatedauthrconf(
io_optionalvalue = new /aws1/cl_tceauthorizerconf(
io_customjwtauthorizer = new /aws1/cl_tcecustomjwtauthrconf(
io_privateendpoint = new /aws1/cl_tceprivateendpoint(
io_managedvpcresource = new /aws1/cl_tcemanagedvpcresource(
it_securitygroupids = VALUE /aws1/cl_tcesecuritygroupids_w=>tt_securitygroupids(
( new /aws1/cl_tcesecuritygroupids_w( |string| ) )
)
it_subnetids = VALUE /aws1/cl_tcesubnetids_w=>tt_subnetids(
( new /aws1/cl_tcesubnetids_w( |string| ) )
)
it_tags = VALUE /aws1/cl_tcetagsmap_w=>tt_tagsmap(
(
VALUE /aws1/cl_tcetagsmap_w=>ts_tagsmap_maprow(
key = |string|
value = new /aws1/cl_tcetagsmap_w( |string| )
)
)
)
iv_endpointipaddresstype = |string|
iv_routingdomain = |string|
iv_vpcidentifier = |string|
)
io_selfmanagedlatticeres = new /aws1/cl_tceselfmngdlattceres( |string| )
)
it_allowedaudience = VALUE /aws1/cl_tceallowedaudnclist_w=>tt_allowedaudiencelist(
( new /aws1/cl_tceallowedaudnclist_w( |string| ) )
)
it_allowedclients = VALUE /aws1/cl_tcealwdclientslist_w=>tt_allowedclientslist(
( new /aws1/cl_tcealwdclientslist_w( |string| ) )
)
it_allowedscopes = VALUE /aws1/cl_tcealwdscopestype_w=>tt_allowedscopestype(
( new /aws1/cl_tcealwdscopestype_w( |string| ) )
)
it_customclaims = VALUE /aws1/cl_tcecustclaimvldtntype=>tt_customclaimvalidationstype(
(
new /aws1/cl_tcecustclaimvldtntype(
io_authzclaimmatchvalue = new /aws1/cl_tceauthzclmmtchvaltyp(
io_claimmatchvalue = new /aws1/cl_tceclaimmatchvaltype(
it_matchvaluestringlist = VALUE /aws1/cl_tcematchvalstrlist_w=>tt_matchvaluestringlist(
( new /aws1/cl_tcematchvalstrlist_w( |string| ) )
)
iv_matchvaluestring = |string|
)
iv_claimmatchoperator = |string|
)
iv_inboundtokenclaimname = |string|
iv_indbtokenclaimvaluetype = |string|
)
)
)
it_privateendpointoverrides = VALUE /aws1/cl_tceprivateendptovrd=>tt_privateendpointoverrides(
(
new /aws1/cl_tceprivateendptovrd(
io_privateendpoint = new /aws1/cl_tceprivateendpoint(
io_managedvpcresource = new /aws1/cl_tcemanagedvpcresource(
it_securitygroupids = VALUE /aws1/cl_tcesecuritygroupids_w=>tt_securitygroupids(
( new /aws1/cl_tcesecuritygroupids_w( |string| ) )
)
it_subnetids = VALUE /aws1/cl_tcesubnetids_w=>tt_subnetids(
( new /aws1/cl_tcesubnetids_w( |string| ) )
)
it_tags = VALUE /aws1/cl_tcetagsmap_w=>tt_tagsmap(
(
VALUE /aws1/cl_tcetagsmap_w=>ts_tagsmap_maprow(
key = |string|
value = new /aws1/cl_tcetagsmap_w( |string| )
)
)
)
iv_endpointipaddresstype = |string|
iv_routingdomain = |string|
iv_vpcidentifier = |string|
)
io_selfmanagedlatticeres = new /aws1/cl_tceselfmngdlattceres( |string| )
)
iv_domain = |string|
)
)
)
iv_discoveryurl = |string|
)
)
)
)
iv_name = |string|
iv_registryid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_registryname = lo_result->get_name( ).
lv_description = lo_result->get_description( ).
lv_registryid = lo_result->get_registryid( ).
lv_registryarn = lo_result->get_registryarn( ).
lo_discoveryconfiguration = lo_result->get_discoveryconfiguration( ).
IF lo_discoveryconfiguration IS NOT INITIAL.
lo_authorizerconfiguration = lo_discoveryconfiguration->get_authorizerconfiguration( ).
IF lo_authorizerconfiguration IS NOT INITIAL.
lo_customjwtauthorizerconf = lo_authorizerconfiguration->get_customjwtauthorizer( ).
IF lo_customjwtauthorizerconf IS NOT INITIAL.
lv_discoveryurl = lo_customjwtauthorizerconf->get_discoveryurl( ).
LOOP AT lo_customjwtauthorizerconf->get_allowedaudience( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_allowedaudience = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_customjwtauthorizerconf->get_allowedclients( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_allowedclient = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_customjwtauthorizerconf->get_allowedscopes( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_allowedscopetype = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_customjwtauthorizerconf->get_customclaims( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_inboundtokenclaimnamety = lo_row_7->get_inboundtokenclaimname( ).
lv_inboundtokenclaimvaluet = lo_row_7->get_indbtokenclaimvaluetype( ).
lo_authorizingclaimmatchva = lo_row_7->get_authzclaimmatchvalue( ).
IF lo_authorizingclaimmatchva IS NOT INITIAL.
lo_claimmatchvaluetype = lo_authorizingclaimmatchva->get_claimmatchvalue( ).
IF lo_claimmatchvaluetype IS NOT INITIAL.
lv_matchvaluestring = lo_claimmatchvaluetype->get_matchvaluestring( ).
LOOP AT lo_claimmatchvaluetype->get_matchvaluestringlist( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_matchvaluestring = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_claimmatchoperatortype = lo_authorizingclaimmatchva->get_claimmatchoperator( ).
ENDIF.
ENDIF.
ENDLOOP.
lo_privateendpoint = lo_customjwtauthorizerconf->get_privateendpoint( ).
IF lo_privateendpoint IS NOT INITIAL.
lo_selfmanagedlatticeresou = lo_privateendpoint->get_selfmanagedlatticeres( ).
IF lo_selfmanagedlatticeresou IS NOT INITIAL.
lv_resourceconfigurationid = lo_selfmanagedlatticeresou->get_resourceconfidentifier( ).
ENDIF.
lo_managedvpcresource = lo_privateendpoint->get_managedvpcresource( ).
IF lo_managedvpcresource IS NOT INITIAL.
lv_vpcidentifier = lo_managedvpcresource->get_vpcidentifier( ).
LOOP AT lo_managedvpcresource->get_subnetids( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_subnetid = lo_row_11->get_value( ).
ENDIF.
ENDLOOP.
lv_endpointipaddresstype = lo_managedvpcresource->get_endpointipaddresstype( ).
LOOP AT lo_managedvpcresource->get_securitygroupids( ) into lo_row_12.
lo_row_13 = lo_row_12.
IF lo_row_13 IS NOT INITIAL.
lv_securitygroupidentifier = lo_row_13->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_managedvpcresource->get_tags( ) into ls_row_14.
lv_key = ls_row_14-key.
lo_value = ls_row_14-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_routingdomain = lo_managedvpcresource->get_routingdomain( ).
ENDIF.
ENDIF.
LOOP AT lo_customjwtauthorizerconf->get_privateendpointoverrides( ) into lo_row_15.
lo_row_16 = lo_row_15.
IF lo_row_16 IS NOT INITIAL.
lv_privateendpointoverride = lo_row_16->get_domain( ).
lo_privateendpoint = lo_row_16->get_privateendpoint( ).
IF lo_privateendpoint IS NOT INITIAL.
lo_selfmanagedlatticeresou = lo_privateendpoint->get_selfmanagedlatticeres( ).
IF lo_selfmanagedlatticeresou IS NOT INITIAL.
lv_resourceconfigurationid = lo_selfmanagedlatticeresou->get_resourceconfidentifier( ).
ENDIF.
lo_managedvpcresource = lo_privateendpoint->get_managedvpcresource( ).
IF lo_managedvpcresource IS NOT INITIAL.
lv_vpcidentifier = lo_managedvpcresource->get_vpcidentifier( ).
LOOP AT lo_managedvpcresource->get_subnetids( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_subnetid = lo_row_11->get_value( ).
ENDIF.
ENDLOOP.
lv_endpointipaddresstype = lo_managedvpcresource->get_endpointipaddresstype( ).
LOOP AT lo_managedvpcresource->get_securitygroupids( ) into lo_row_12.
lo_row_13 = lo_row_12.
IF lo_row_13 IS NOT INITIAL.
lv_securitygroupidentifier = lo_row_13->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_managedvpcresource->get_tags( ) into ls_row_14.
lv_key = ls_row_14-key.
lo_value = ls_row_14-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_routingdomain = lo_managedvpcresource->get_routingdomain( ).
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
lv_registryauthorizertype = lo_discoveryconfiguration->get_authorizertype( ).
ENDIF.
lo_approvalconfiguration = lo_result->get_approvalconfiguration( ).
IF lo_approvalconfiguration IS NOT INITIAL.
LOOP AT lo_approvalconfiguration->get_autoapprovalrules( ) into lo_row_17.
lo_row_18 = lo_row_17.
IF lo_row_18 IS NOT INITIAL.
lv_autoapprovalrule = lo_row_18->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_registrystatus = lo_result->get_status( ).
lv_string = lo_result->get_statusreason( ).
lv_datetimestamp = lo_result->get_createdat( ).
lv_datetimestamp = lo_result->get_updatedat( ).
ENDIF.