Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Update rule

Focus mode
Update rule - Amazon Fraud Detector

You can update a rule anytime by adding or updating the rule description, updating the rule expression, or adding or removing the outcome for the rule. When you update a rule a new rule version is created.

You can update a rule in the Amazon Fraud Detector console, using the update-rule-version command, using the UpdateRuleVersion API, or using the using the AWS SDK.

After you have updated the rule, make sure to update your detector version to use the new rule version.

Update rule in the Amazon Fraud Detector console

To update a rule,
  1. Open the AWS Management Console and sign in to your account. Navigate to Amazon Fraud Detector.

  2. In the left navigation pane, choose Detectors.

  3. In the Detectors pane, select the detector that is associated with the rule you want to update.

  4. In your detector page, choose Associated rules tab and select the rule you want to update.

  5. In your rule page, choose Actions and select Create version.

  6. Note that the version has changed. Enter updated description, expression, or outcome.

  7. Choose Save new version

Update rule using the AWS SDK for Python (Boto3)

The following example code uses the UpdateRuleVersion API to update the threshold for the rule high_risk from 900 to 950. This rule is associated with the detector payments_detector.

fraudDetector.update_rule_version( rule = { 'detectorId' : 'payments_detector', 'ruleId' : 'high_risk', 'ruleVersion' : '1' }, expression = '$sample_fraud_detection_model_insightscore > 950', language = 'DETECTORPL', outcomes = ['verify_customer'] )
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.