Skip to content

/AWS1/IF_TCE=>CREATEREGISTRYRECORD()

About CreateRegistryRecord

Creates a registry record within a registry. A registry record describes a discoverable resource, such as an MCP server, an agent, an agent skill, or a custom resource. Creation is asynchronous: the record is returned with the CREATING status while it is processed.

Method Signature

METHODS /AWS1/IF_TCE~CREATEREGISTRYRECORD
  IMPORTING
    !IV_REGISTRYID TYPE /AWS1/TCEREGISTRYIDENTIFIER OPTIONAL
    !IV_NAME TYPE /AWS1/TCEREGISTRYRECORDNAME OPTIONAL
    !IV_DISPLAYNAME TYPE /AWS1/TCEREGRECORDDISPLAYNAME OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/TCEDESCRIPTION OPTIONAL
    !IV_RECORDTYPE TYPE /AWS1/TCERECORDTYPE OPTIONAL
    !IO_DESCRIPTORS TYPE REF TO /AWS1/CL_TCEDESCRIPTORS OPTIONAL
    !IV_RECORDVERSION TYPE /AWS1/TCEREGISTRYRECORDVERSION OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/TCECLIENTTOKEN OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_TCETAGSMAP_W=>TT_TAGSMAP OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_tcecreateregrecordrsp
  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 in which to create the record (ARN or ID)

iv_name TYPE /AWS1/TCEREGISTRYRECORDNAME /AWS1/TCEREGISTRYRECORDNAME

The name of the registry record

iv_recordtype TYPE /AWS1/TCERECORDTYPE /AWS1/TCERECORDTYPE

The type of the registry record, which determines the descriptor format

io_descriptors TYPE REF TO /AWS1/CL_TCEDESCRIPTORS /AWS1/CL_TCEDESCRIPTORS

The typed descriptor content for the registry record

Optional arguments:

iv_displayname TYPE /AWS1/TCEREGRECORDDISPLAYNAME /AWS1/TCEREGRECORDDISPLAYNAME

The human-readable display name of the registry record

iv_description TYPE /AWS1/TCEDESCRIPTION /AWS1/TCEDESCRIPTION

The description of the registry record

iv_recordversion TYPE /AWS1/TCEREGISTRYRECORDVERSION /AWS1/TCEREGISTRYRECORDVERSION

The version of the registry record

iv_clienttoken TYPE /AWS1/TCECLIENTTOKEN /AWS1/TCECLIENTTOKEN

Client token for idempotency

it_tags TYPE /AWS1/CL_TCETAGSMAP_W=>TT_TAGSMAP TT_TAGSMAP

Tags to associate with the registry record

RETURNING

oo_output TYPE REF TO /aws1/cl_tcecreateregrecordrsp /AWS1/CL_TCECREATEREGRECORDRSP

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->createregistryrecord(
  io_descriptors = new /aws1/cl_tcedescriptors(
    io_a2aagentcard = new /aws1/cl_tcea2aagntcrddescrptr(
      io_source = new /aws1/cl_tcedescriptorsource(
        io_fromurl = new /aws1/cl_tcedescrptrsrcfromurl(
          it_credentialproviderconfs = VALUE /aws1/cl_tceregreccredpvdrconf=>tt_regrecordcredpvdrconflist(
            (
              new /aws1/cl_tceregreccredpvdrconf(
                io_credentialprovider = new /aws1/cl_tceregrccredpvdrunion(
                  io_iamcredentialprovider = new /aws1/cl_tceregreciamcredpvdr(
                    iv_region = |string|
                    iv_rolearn = |string|
                    iv_service = |string|
                  )
                  io_oauthcredentialprovider = new /aws1/cl_tceregrcoauthcredpvdr(
                    it_customparameters = VALUE /aws1/cl_tcecustomparammap_w=>tt_customparametermap(
                      (
                        VALUE /aws1/cl_tcecustomparammap_w=>ts_customparametermap_maprow(
                          key = |string|
                          value = new /aws1/cl_tcecustomparammap_w( |string| )
                        )
                      )
                    )
                    it_scopes = VALUE /aws1/cl_tcescopelist_w=>tt_scopelist(
                      ( new /aws1/cl_tcescopelist_w( |string| ) )
                    )
                    iv_granttype = |string|
                    iv_providerarn = |string|
                  )
                )
                iv_credentialprovidertype = |string|
              )
            )
          )
          iv_url = |string|
        )
      )
      iv_data = |string|
      iv_dataschemaversion = |string|
    )
    io_agentskillsdefinition = new /aws1/cl_tceagentskillsdefdesc(
      io_additionaldata = new /aws1/cl_tceagentsklsaddldata(
        io_skillmd = new /aws1/cl_tceagntsklsmddescrptr(
          io_source = new /aws1/cl_tcedescriptorsource(
            io_fromurl = new /aws1/cl_tcedescrptrsrcfromurl(
              it_credentialproviderconfs = VALUE /aws1/cl_tceregreccredpvdrconf=>tt_regrecordcredpvdrconflist(
                (
                  new /aws1/cl_tceregreccredpvdrconf(
                    io_credentialprovider = new /aws1/cl_tceregrccredpvdrunion(
                      io_iamcredentialprovider = new /aws1/cl_tceregreciamcredpvdr(
                        iv_region = |string|
                        iv_rolearn = |string|
                        iv_service = |string|
                      )
                      io_oauthcredentialprovider = new /aws1/cl_tceregrcoauthcredpvdr(
                        it_customparameters = VALUE /aws1/cl_tcecustomparammap_w=>tt_customparametermap(
                          (
                            VALUE /aws1/cl_tcecustomparammap_w=>ts_customparametermap_maprow(
                              key = |string|
                              value = new /aws1/cl_tcecustomparammap_w( |string| )
                            )
                          )
                        )
                        it_scopes = VALUE /aws1/cl_tcescopelist_w=>tt_scopelist(
                          ( new /aws1/cl_tcescopelist_w( |string| ) )
                        )
                        iv_granttype = |string|
                        iv_providerarn = |string|
                      )
                    )
                    iv_credentialprovidertype = |string|
                  )
                )
              )
              iv_url = |string|
            )
          )
          iv_data = |string|
          iv_dataschemaversion = |string|
        )
      )
      iv_data = |string|
      iv_dataschemaversion = |string|
    )
    io_custom = new /aws1/cl_tcecustomdescriptor( |string| )
    io_mcpserver = new /aws1/cl_tcemcpserverdescrptr(
      io_additionaldata = new /aws1/cl_tcemcpserveraddldata(
        io_tools = new /aws1/cl_tcemcptoolsdescriptor(
          iv_data = |string|
          iv_dataschemaversion = |string|
        )
      )
      io_source = new /aws1/cl_tcedescriptorsource(
        io_fromurl = new /aws1/cl_tcedescrptrsrcfromurl(
          it_credentialproviderconfs = VALUE /aws1/cl_tceregreccredpvdrconf=>tt_regrecordcredpvdrconflist(
            (
              new /aws1/cl_tceregreccredpvdrconf(
                io_credentialprovider = new /aws1/cl_tceregrccredpvdrunion(
                  io_iamcredentialprovider = new /aws1/cl_tceregreciamcredpvdr(
                    iv_region = |string|
                    iv_rolearn = |string|
                    iv_service = |string|
                  )
                  io_oauthcredentialprovider = new /aws1/cl_tceregrcoauthcredpvdr(
                    it_customparameters = VALUE /aws1/cl_tcecustomparammap_w=>tt_customparametermap(
                      (
                        VALUE /aws1/cl_tcecustomparammap_w=>ts_customparametermap_maprow(
                          key = |string|
                          value = new /aws1/cl_tcecustomparammap_w( |string| )
                        )
                      )
                    )
                    it_scopes = VALUE /aws1/cl_tcescopelist_w=>tt_scopelist(
                      ( new /aws1/cl_tcescopelist_w( |string| ) )
                    )
                    iv_granttype = |string|
                    iv_providerarn = |string|
                  )
                )
                iv_credentialprovidertype = |string|
              )
            )
          )
          iv_url = |string|
        )
      )
      iv_data = |string|
      iv_dataschemaversion = |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_clienttoken = |string|
  iv_description = |string|
  iv_displayname = |string|
  iv_name = |string|
  iv_recordtype = |string|
  iv_recordversion = |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_registryrecordarn = lo_result->get_recordarn( ).
  lv_registryrecordstatus = lo_result->get_status( ).
ENDIF.