/AWS1/IF_FDT=>CREATEDETECTORVERSION()¶
About CreateDetectorVersion¶
Creates a detector version. The detector version starts in a DRAFT status.
Method Signature¶
METHODS /AWS1/IF_FDT~CREATEDETECTORVERSION
IMPORTING
!IV_DETECTORID TYPE /AWS1/FDTIDENTIFIER OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/FDTDESCRIPTION OPTIONAL
!IT_EXTERNALMODELENDPOINTS TYPE /AWS1/CL_FDTLISTOFSTRINGS_W=>TT_LISTOFSTRINGS OPTIONAL
!IT_RULES TYPE /AWS1/CL_FDTRULE=>TT_RULELIST OPTIONAL
!IT_MODELVERSIONS TYPE /AWS1/CL_FDTMODELVERSION=>TT_LISTOFMODELVERSIONS OPTIONAL
!IV_RULEEXECUTIONMODE TYPE /AWS1/FDTRULEEXECUTIONMODE OPTIONAL
!IT_TAGS TYPE /AWS1/CL_FDTTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fdtcredetectorvrsrslt
RAISING
/AWS1/CX_FDTACCESSDENIEDEX
/AWS1/CX_FDTINTERNALSERVEREX
/AWS1/CX_FDTRESOURCENOTFOUNDEX
/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_detectorid TYPE /AWS1/FDTIDENTIFIER /AWS1/FDTIDENTIFIER¶
The ID of the detector under which you want to create a new version.
it_rules TYPE /AWS1/CL_FDTRULE=>TT_RULELIST TT_RULELIST¶
The rules to include in the detector version.
Optional arguments:¶
iv_description TYPE /AWS1/FDTDESCRIPTION /AWS1/FDTDESCRIPTION¶
The description of the detector version.
it_externalmodelendpoints TYPE /AWS1/CL_FDTLISTOFSTRINGS_W=>TT_LISTOFSTRINGS TT_LISTOFSTRINGS¶
The Amazon Sagemaker model endpoints to include in the detector version.
it_modelversions TYPE /AWS1/CL_FDTMODELVERSION=>TT_LISTOFMODELVERSIONS TT_LISTOFMODELVERSIONS¶
The model versions to include in the detector version.
iv_ruleexecutionmode TYPE /AWS1/FDTRULEEXECUTIONMODE /AWS1/FDTRULEEXECUTIONMODE¶
The rule execution mode for the rules included in the detector version.
You can define and edit the rule mode at the detector version level, when it is in draft status.
If you specify
FIRST_MATCHED, Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule.If you specifiy
ALL_MATCHED, Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules.The default behavior is
FIRST_MATCHED.
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_fdtcredetectorvrsrslt /AWS1/CL_FDTCREDETECTORVRSRSLT¶
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->createdetectorversion(
it_externalmodelendpoints = VALUE /aws1/cl_fdtlistofstrings_w=>tt_listofstrings(
( new /aws1/cl_fdtlistofstrings_w( |string| ) )
)
it_modelversions = VALUE /aws1/cl_fdtmodelversion=>tt_listofmodelversions(
(
new /aws1/cl_fdtmodelversion(
iv_arn = |string|
iv_modelid = |string|
iv_modeltype = |string|
iv_modelversionnumber = |string|
)
)
)
it_rules = VALUE /aws1/cl_fdtrule=>tt_rulelist(
(
new /aws1/cl_fdtrule(
iv_detectorid = |string|
iv_ruleid = |string|
iv_ruleversion = |string|
)
)
)
it_tags = VALUE /aws1/cl_fdttag=>tt_taglist(
(
new /aws1/cl_fdttag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_description = |string|
iv_detectorid = |string|
iv_ruleexecutionmode = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_identifier = lo_result->get_detectorid( ).
lv_wholenumberversionstrin = lo_result->get_detectorversionid( ).
lv_detectorversionstatus = lo_result->get_status( ).
ENDIF.