/AWS1/IF_BDO=>CREATEREGISTRY()¶
About CreateRegistry¶
Creates a new registry in your Amazon Web Services account. A registry serves as a centralized catalog for organizing and managing registry records, including MCP servers, A2A agents, agent skills, and custom resource types.
If you specify CUSTOM_JWT as the authorizerType, you must provide an authorizerConfiguration.
Method Signature¶
METHODS /AWS1/IF_BDO~CREATEREGISTRY
IMPORTING
!IV_NAME TYPE /AWS1/BDOREGISTRYNAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/BDODESCRIPTION OPTIONAL
!IV_AUTHORIZERTYPE TYPE /AWS1/BDOREGISTRYAUTHRTYPE OPTIONAL
!IO_AUTHORIZERCONFIGURATION TYPE REF TO /AWS1/CL_BDOAUTHORIZERCONF OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/BDOCLIENTTOKEN OPTIONAL
!IO_APPROVALCONFIGURATION TYPE REF TO /AWS1/CL_BDOAPPROVALCONF OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdocreateregresponse
RAISING
/AWS1/CX_BDOACCESSDENIEDEX
/AWS1/CX_BDOCONFLICTEXCEPTION
/AWS1/CX_BDOINTERNALSERVEREX
/AWS1/CX_BDOSERVICEQUOTAEXCDEX
/AWS1/CX_BDOTHROTTLINGEX
/AWS1/CX_BDOVALIDATIONEX
/AWS1/CX_BDOCLIENTEXC
/AWS1/CX_BDOSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/BDOREGISTRYNAME /AWS1/BDOREGISTRYNAME¶
The name of the registry. The name must be unique within your account and can contain alphanumeric characters and underscores.
Optional arguments:¶
iv_description TYPE /AWS1/BDODESCRIPTION /AWS1/BDODESCRIPTION¶
A description of the registry.
iv_authorizertype TYPE /AWS1/BDOREGISTRYAUTHRTYPE /AWS1/BDOREGISTRYAUTHRTYPE¶
The type of authorizer to use for the registry. This controls the authorization method for the Search and Invoke APIs used by consumers, and does not affect the standard CRUDL APIs for registry and registry record management used by administrators.
CUSTOM_JWT- Authorize with a bearer token.
AWS_IAM- Authorize with your Amazon Web Services IAM credentials.
io_authorizerconfiguration TYPE REF TO /AWS1/CL_BDOAUTHORIZERCONF /AWS1/CL_BDOAUTHORIZERCONF¶
The authorizer configuration for the registry. Required if
authorizerTypeisCUSTOM_JWT. For details, see theAuthorizerConfigurationdata type.
iv_clienttoken TYPE /AWS1/BDOCLIENTTOKEN /AWS1/BDOCLIENTTOKEN¶
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.
io_approvalconfiguration TYPE REF TO /AWS1/CL_BDOAPPROVALCONF /AWS1/CL_BDOAPPROVALCONF¶
The approval configuration for registry records. Controls whether records require explicit approval before becoming active. See the
ApprovalConfigurationdata type for supported configuration options.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdocreateregresponse /AWS1/CL_BDOCREATEREGRESPONSE¶
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->createregistry(
io_approvalconfiguration = new /aws1/cl_bdoapprovalconf( ABAP_TRUE )
io_authorizerconfiguration = new /aws1/cl_bdoauthorizerconf(
io_customjwtauthorizer = new /aws1/cl_bdocustomjwtauthrconf(
it_allowedaudience = VALUE /aws1/cl_bdoalwedaudiencelst_w=>tt_allowedaudiencelist(
( new /aws1/cl_bdoalwedaudiencelst_w( |string| ) )
)
it_allowedclients = VALUE /aws1/cl_bdoallowedclislist_w=>tt_allowedclientslist(
( new /aws1/cl_bdoallowedclislist_w( |string| ) )
)
it_allowedscopes = VALUE /aws1/cl_bdoalwdscopestype_w=>tt_allowedscopestype(
( new /aws1/cl_bdoalwdscopestype_w( |string| ) )
)
it_customclaims = VALUE /aws1/cl_bdocustclaimvldtntype=>tt_customclaimvalidationstype(
(
new /aws1/cl_bdocustclaimvldtntype(
io_authorizingclaimmatchval = new /aws1/cl_bdoauthorizingclaim00(
io_claimmatchvalue = new /aws1/cl_bdoclaimmatchvaltype(
it_matchvaluestringlist = VALUE /aws1/cl_bdomatchvalstrlist_w=>tt_matchvaluestringlist(
( new /aws1/cl_bdomatchvalstrlist_w( |string| ) )
)
iv_matchvaluestring = |string|
)
iv_claimmatchoperator = |string|
)
iv_inboundtokenclaimname = |string|
iv_indbtokenclaimvaluetype = |string|
)
)
)
iv_discoveryurl = |string|
)
)
iv_authorizertype = |string|
iv_clienttoken = |string|
iv_description = |string|
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_registryarn = lo_result->get_registryarn( ).
ENDIF.