/AWS1/IF_BDK=>REGMARKETPLACEMODELENDPT()¶
About RegisterMarketplaceModelEndpoint¶
Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs.
Method Signature¶
METHODS /AWS1/IF_BDK~REGMARKETPLACEMODELENDPT
IMPORTING
!IV_ENDPOINTIDENTIFIER TYPE /AWS1/BDKARN OPTIONAL
!IV_MODELSOURCEIDENTIFIER TYPE /AWS1/BDKMODELSOURCEIDENTIFIER OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdkregmarketplacemd01
RAISING
/AWS1/CX_BDKACCESSDENIEDEX
/AWS1/CX_BDKINTERNALSERVEREX
/AWS1/CX_BDKRESOURCENOTFOUNDEX
/AWS1/CX_BDKSERVICEUNAVAILEX
/AWS1/CX_BDKTHROTTLINGEX
/AWS1/CX_BDKVALIDATIONEX
/AWS1/CX_BDKCLIENTEXC
/AWS1/CX_BDKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_endpointidentifier TYPE /AWS1/BDKARN /AWS1/BDKARN¶
The ARN of the Amazon SageMaker endpoint you want to register with Amazon Bedrock Marketplace.
iv_modelsourceidentifier TYPE /AWS1/BDKMODELSOURCEIDENTIFIER /AWS1/BDKMODELSOURCEIDENTIFIER¶
The ARN of the model from Amazon Bedrock Marketplace that is deployed on the endpoint.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdkregmarketplacemd01 /AWS1/CL_BDKREGMARKETPLACEMD01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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->regmarketplacemodelendpt(
iv_endpointidentifier = |string|
iv_modelsourceidentifier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_marketplacemodelendpoin = lo_result->get_marketplacemodelendpoint( ).
IF lo_marketplacemodelendpoin IS NOT INITIAL.
lv_arn = lo_marketplacemodelendpoin->get_endpointarn( ).
lv_modelsourceidentifier = lo_marketplacemodelendpoin->get_modelsourceidentifier( ).
lv_status = lo_marketplacemodelendpoin->get_status( ).
lv_string = lo_marketplacemodelendpoin->get_statusmessage( ).
lv_timestamp = lo_marketplacemodelendpoin->get_createdat( ).
lv_timestamp = lo_marketplacemodelendpoin->get_updatedat( ).
lo_endpointconfig = lo_marketplacemodelendpoin->get_endpointconfig( ).
IF lo_endpointconfig IS NOT INITIAL.
lo_sagemakerendpoint = lo_endpointconfig->get_sagemaker( ).
IF lo_sagemakerendpoint IS NOT INITIAL.
lv_instancecount = lo_sagemakerendpoint->get_initialinstancecount( ).
lv_instancetype = lo_sagemakerendpoint->get_instancetype( ).
lv_rolearn = lo_sagemakerendpoint->get_executionrole( ).
lv_kmskeyid = lo_sagemakerendpoint->get_kmsencryptionkey( ).
lo_vpcconfig = lo_sagemakerendpoint->get_vpc( ).
IF lo_vpcconfig IS NOT INITIAL.
LOOP AT lo_vpcconfig->get_subnetids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_subnetid = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_vpcconfig->get_securitygroupids( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_securitygroupid = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
lv_string = lo_marketplacemodelendpoin->get_endpointstatus( ).
lv_string = lo_marketplacemodelendpoin->get_endpointstatusmessage( ).
ENDIF.
ENDIF.