/AWS1/IF_FDT=>PUTEXTERNALMODEL()¶
About PutExternalModel¶
Creates or updates an Amazon SageMaker model endpoint. You can also use this action to update the configuration of the model endpoint, including the IAM role and/or the mapped variables.
Method Signature¶
METHODS /AWS1/IF_FDT~PUTEXTERNALMODEL
IMPORTING
!IV_MODELENDPOINT TYPE /AWS1/FDTSAGEMAKERENDPOINTID OPTIONAL
!IV_MODELSOURCE TYPE /AWS1/FDTMODELSOURCE OPTIONAL
!IV_INVOKEMODELENDPTROLEARN TYPE /AWS1/FDTSTRING OPTIONAL
!IO_INPUTCONFIGURATION TYPE REF TO /AWS1/CL_FDTMODELINPUTCONF OPTIONAL
!IO_OUTPUTCONFIGURATION TYPE REF TO /AWS1/CL_FDTMODELOUTPUTCONF OPTIONAL
!IV_MODELENDPOINTSTATUS TYPE /AWS1/FDTMODELENDPOINTSTATUS OPTIONAL
!IT_TAGS TYPE /AWS1/CL_FDTTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fdtputxternalmdelrslt
RAISING
/AWS1/CX_FDTACCESSDENIEDEX
/AWS1/CX_FDTCONFLICTEXCEPTION
/AWS1/CX_FDTINTERNALSERVEREX
/AWS1/CX_FDTTHROTTLINGEX
/AWS1/CX_FDTVALIDATIONEX
/AWS1/CX_FDTCLIENTEXC
/AWS1/CX_FDTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_modelendpoint TYPE /AWS1/FDTSAGEMAKERENDPOINTID /AWS1/FDTSAGEMAKERENDPOINTID¶
The model endpoints name.
iv_modelsource TYPE /AWS1/FDTMODELSOURCE /AWS1/FDTMODELSOURCE¶
The source of the model.
iv_invokemodelendptrolearn TYPE /AWS1/FDTSTRING /AWS1/FDTSTRING¶
The IAM role used to invoke the model endpoint.
io_inputconfiguration TYPE REF TO /AWS1/CL_FDTMODELINPUTCONF /AWS1/CL_FDTMODELINPUTCONF¶
The model endpoint input configuration.
io_outputconfiguration TYPE REF TO /AWS1/CL_FDTMODELOUTPUTCONF /AWS1/CL_FDTMODELOUTPUTCONF¶
The model endpoint output configuration.
iv_modelendpointstatus TYPE /AWS1/FDTMODELENDPOINTSTATUS /AWS1/FDTMODELENDPOINTSTATUS¶
The model endpoint’s status in Amazon Fraud Detector.
Optional arguments:¶
it_tags TYPE /AWS1/CL_FDTTAG=>TT_TAGLIST TT_TAGLIST¶
A collection of key and value pairs.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_fdtputxternalmdelrslt /AWS1/CL_FDTPUTXTERNALMDELRSLT¶
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->putexternalmodel(
io_inputconfiguration = new /aws1/cl_fdtmodelinputconf(
iv_csvinputtemplate = |string|
iv_eventtypename = |string|
iv_format = |string|
iv_jsoninputtemplate = |string|
iv_useeventvariables = ABAP_TRUE
)
io_outputconfiguration = new /aws1/cl_fdtmodeloutputconf(
it_csvindextovariablemap = VALUE /aws1/cl_fdtcsvidxtovariable00=>tt_csvindextovariablemap(
(
VALUE /aws1/cl_fdtcsvidxtovariable00=>ts_csvidxtovariablemap_maprow(
key = |string|
value = new /aws1/cl_fdtcsvidxtovariable00( |string| )
)
)
)
it_jsonkeytovariablemap = VALUE /aws1/cl_fdtjsonkeytovariabl00=>tt_jsonkeytovariablemap(
(
VALUE /aws1/cl_fdtjsonkeytovariabl00=>ts_jsonkeytovariablemap_maprow(
key = |string|
value = new /aws1/cl_fdtjsonkeytovariabl00( |string| )
)
)
)
iv_format = |string|
)
it_tags = VALUE /aws1/cl_fdttag=>tt_taglist(
(
new /aws1/cl_fdttag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_invokemodelendptrolearn = |string|
iv_modelendpoint = |string|
iv_modelendpointstatus = |string|
iv_modelsource = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.