Skip to content

Create Detector Version

frauddetector_create_detector_version R Documentation

Creates a detector version

Description

Creates a detector version. The detector version starts in a DRAFT status.

Usage

frauddetector_create_detector_version(detectorId, description,
  externalModelEndpoints, rules, modelVersions, ruleExecutionMode, tags)

Arguments

detectorId

[required] The ID of the detector under which you want to create a new version.

description

The description of the detector version.

externalModelEndpoints

The Amazon Sagemaker model endpoints to include in the detector version.

rules

[required] The rules to include in the detector version.

modelVersions

The model versions to include in the detector version.

ruleExecutionMode

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.

tags

A collection of key and value pairs.

Value

A list with the following syntax:

list(
  detectorId = "string",
  detectorVersionId = "string",
  status = "DRAFT"|"ACTIVE"|"INACTIVE"
)

Request syntax

svc$create_detector_version(
  detectorId = "string",
  description = "string",
  externalModelEndpoints = list(
    "string"
  ),
  rules = list(
    list(
      detectorId = "string",
      ruleId = "string",
      ruleVersion = "string"
    )
  ),
  modelVersions = list(
    list(
      modelId = "string",
      modelType = "ONLINE_FRAUD_INSIGHTS"|"TRANSACTION_FRAUD_INSIGHTS"|"ACCOUNT_TAKEOVER_INSIGHTS",
      modelVersionNumber = "string",
      arn = "string"
    )
  ),
  ruleExecutionMode = "ALL_MATCHED"|"FIRST_MATCHED",
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  )
)