Skip to content

/AWS1/IF_BDK=>UPDATECUSTOMMODELDEPLOYMENT()

About UpdateCustomModelDeployment

Updates a custom model deployment with a new custom model. This allows you to deploy updated models without creating new deployment endpoints.

Method Signature

METHODS /AWS1/IF_BDK~UPDATECUSTOMMODELDEPLOYMENT
  IMPORTING
    !IV_MODELARN TYPE /AWS1/BDKCUSTOMMODELARN OPTIONAL
    !IV_CUSTOMMODELDEPLOYMENTID TYPE /AWS1/BDKCUSTMODELDEPLOYMENTID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdkupcustmdeldeploy01
  RAISING
    /AWS1/CX_BDKACCESSDENIEDEX
    /AWS1/CX_BDKINTERNALSERVEREX
    /AWS1/CX_BDKRESOURCENOTFOUNDEX
    /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_modelarn TYPE /AWS1/BDKCUSTOMMODELARN /AWS1/BDKCUSTOMMODELARN

ARN of the new custom model to deploy. This replaces the currently deployed model.

iv_custommodeldeploymentid TYPE /AWS1/BDKCUSTMODELDEPLOYMENTID /AWS1/BDKCUSTMODELDEPLOYMENTID

Identifier of the custom model deployment to update with the new custom model.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdkupcustmdeldeploy01 /AWS1/CL_BDKUPCUSTMDELDEPLOY01

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->updatecustommodeldeployment(
  iv_custommodeldeploymentid = |string|
  iv_modelarn = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_custommodeldeploymentar = lo_result->get_custommodeldeploymentarn( ).
ENDIF.